This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
套餐系列的数据模型SHALL支持一次性佣金配置,包括固定佣金、梯度佣金、强制充值、时效类型等高级功能。
|
||||
|
||||
**字段定义**:
|
||||
|
||||
- `id` (number) - 系列ID
|
||||
- `series_code` (string) - 系列编码,唯一标识
|
||||
- `series_name` (string) - 系列名称
|
||||
@@ -18,6 +19,7 @@
|
||||
- `updated_at` (string) - 更新时间
|
||||
|
||||
**一次性佣金配置结构** (`SeriesOneTimeCommissionConfig`):
|
||||
|
||||
- `enable` (boolean) - 是否启用一次性佣金
|
||||
- `commission_type` (string) - 佣金类型: "fixed"(固定) | "tiered"(梯度)
|
||||
- `commission_amount` (number, optional) - 固定佣金金额(分),commission_type=fixed时使用
|
||||
@@ -31,6 +33,7 @@
|
||||
- `validity_value` (string, optional) - 时效值(日期字符串或月数)
|
||||
|
||||
**梯度档位结构** (`OneTimeCommissionTier`):
|
||||
|
||||
- `threshold` (number) - 达标阈值
|
||||
- `dimension` (string) - 统计维度: "sales_count"(销量) | "sales_amount"(销售额)
|
||||
- `amount` (number) - 佣金金额(分)
|
||||
@@ -64,10 +67,7 @@
|
||||
- `commission_type`: "tiered"
|
||||
- `threshold`: 5000
|
||||
- `trigger_type`: "accumulated_recharge"
|
||||
- `tiers`: [
|
||||
{ threshold: 10, dimension: "sales_count", amount: 3000 },
|
||||
{ threshold: 50, dimension: "sales_count", amount: 8000 }
|
||||
]
|
||||
- `tiers`: [ { threshold: 10, dimension: "sales_count", amount: 3000 }, { threshold: 50, dimension: "sales_count", amount: 8000 } ]
|
||||
- `validity_type`: "relative"
|
||||
- `validity_value`: "12" (12个月)
|
||||
- **THEN** 系统SHALL创建套餐系列,并保存梯度佣金配置
|
||||
|
||||
Reference in New Issue
Block a user