feat: initialize project backend structure and document system specifications across all modules

This commit is contained in:
SonPhung
2026-07-24 09:05:41 +07:00
parent 506008c69f
commit 4534e4ecb8
74 changed files with 7989 additions and 44 deletions

View File

@@ -0,0 +1,27 @@
---
title: "Campaign Rule Formula"
type: OpenSpec
status: Draft
domain: Reward Campaign Management
---
# Campaign Rule Formula
## Requirement Definition
Configures the mathematical formula used to calculate the reward, redemption value, or counter increment for a given Rule.
## Process Flow
### Pre-Conditions
- Rule must be created.
## Business Rules
### Execution
- Formulas act on the "Amount to Use (A)" defined in the Rule Header.
- Support mathematical operations (e.g., A * 0.05, A + 10).
- Formulas can be assigned to different tiers based on criteria.
- Formulas can be used to update Pool Balances, or simply update a Counter / Attribute without impacting a Pool.
## Exception Flow
- N/A