正在显示
14 个修改的文件
包含
186 行增加
和
6 行删除
1 | +version: v1 | ||
2 | +kind: HttpApi | ||
3 | +metadata: | ||
4 | + service: dividendsEstimate | ||
5 | + path: /dividends-estimates | ||
6 | + endpoints: | ||
7 | + - method: createDividendsEstimate | ||
8 | + route: | ||
9 | + post: / | ||
10 | + - method: updateDividendsEstimate | ||
11 | + route: | ||
12 | + put: /{dividendsEstimateId} | ||
13 | + - method: getDividendsEstimate | ||
14 | + route: | ||
15 | + get: /{dividendsEstimateId} | ||
16 | + - method: removeDividendsEstimate | ||
17 | + route: | ||
18 | + delete: /{dividendsEstimateId} | ||
19 | + - method: cancelDividendsEstimate | ||
20 | + route: | ||
21 | + post: /{dividendsEstimateId}/cancel | ||
22 | + - method: searchDividendsEstimate | ||
23 | + route: | ||
24 | + post: /search | ||
25 | + - method: estimateDividendsIncentives | ||
26 | + route: | ||
27 | + post: /estimate-dividends-incentives | ||
28 | + - method: estimateMoneyIncentives | ||
29 | + route: | ||
30 | + post: /estimate-money-incentives | ||
31 | + - method: listDividendsEstimate | ||
32 | + route: | ||
33 | + get: / | ||
34 | + params: | ||
35 | + - name: offset | ||
36 | + - name: limit |
@@ -20,14 +20,14 @@ metadata: | @@ -20,14 +20,14 @@ metadata: | ||
20 | required: true | 20 | required: true |
21 | - ref: orderOrReturnedOrderNum | 21 | - ref: orderOrReturnedOrderNum |
22 | required: true | 22 | required: true |
23 | - - ref: operator | ||
24 | - required: true | ||
25 | - - ref: operateTime | ||
26 | - required: true | ||
27 | - ref: cooperationProjectNumber | 23 | - ref: cooperationProjectNumber |
28 | required: true | 24 | required: true |
29 | - ref: dividendsUser | 25 | - ref: dividendsUser |
30 | required: true | 26 | required: true |
27 | + - ref: operator | ||
28 | + required: true | ||
29 | + - ref: operateTime | ||
30 | + required: true | ||
31 | - ref: createdAt | 31 | - ref: createdAt |
32 | required: true | 32 | required: true |
33 | - ref: deletedAt | 33 | - ref: deletedAt |
@@ -2,7 +2,7 @@ version: v1 | @@ -2,7 +2,7 @@ version: v1 | ||
2 | kind: Schema | 2 | kind: Schema |
3 | metadata: | 3 | metadata: |
4 | name: dividendsIncentivesRule | 4 | name: dividendsIncentivesRule |
5 | - description: 金额激励规则实体 | 5 | + description: 金额激励规则DTO |
6 | attributes: | 6 | attributes: |
7 | - ref: referrerPercentage | 7 | - ref: referrerPercentage |
8 | required: true | 8 | required: true |
@@ -2,7 +2,7 @@ version: v1 | @@ -2,7 +2,7 @@ version: v1 | ||
2 | kind: Schema | 2 | kind: Schema |
3 | metadata: | 3 | metadata: |
4 | name: moneyIncentivesRule | 4 | name: moneyIncentivesRule |
5 | - description: 金额激励规则实体 | 5 | + description: 金额激励规则DTO |
6 | attributes: | 6 | attributes: |
7 | - ref: moneyIncentivesAmount | 7 | - ref: moneyIncentivesAmount |
8 | required: true | 8 | required: true |
allied-creation-cooperation/services/dividendsEstimate/methods/estimateDividendsIncentives.yaml
0 → 100644
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: estimateDividendsIncentives | ||
5 | + type: command | ||
6 | + description: 预算分红激励 | ||
7 | + payload: | ||
8 | + - ref: orderOrReturnedOrderNum | ||
9 | + description: 分红订单号/退货单号 | ||
10 | + required: true | ||
11 | + - ref: cooperationContractNumber | ||
12 | + description: 合约编号 | ||
13 | + required: true | ||
14 | + result: | ||
15 | + - name: dividendsEstimate | ||
16 | + type: | ||
17 | + schema: dividendsEstimate | ||
18 | + required: true |
allied-creation-cooperation/services/dividendsEstimate/methods/estimateMoneyIncentives.yaml
0 → 100644
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: estimateMoneyIncentives | ||
5 | + type: command | ||
6 | + description: 预算金额激励分红 | ||
7 | + payload: | ||
8 | + - ref: cooperationContractNumber | ||
9 | + description: 共创项目合约编号 | ||
10 | + required: true | ||
11 | + - ref: dividendsIncentivesStage | ||
12 | + description: 分红阶段 | ||
13 | + required: true | ||
14 | + - name: undertakerUid | ||
15 | + decription: 承接人UID | ||
16 | + type: | ||
17 | + primitive: string | ||
18 | + required: true | ||
19 | + result: | ||
20 | + - name: dividendsEstimate | ||
21 | + type: | ||
22 | + schema: dividendsEstimate | ||
23 | + required: true |
allied-creation-cooperation/services/dividendsEstimate/methods/listDividendsEstimate.yaml
0 → 100644
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: listDividendsEstimate | ||
5 | + type: query | ||
6 | + description: 返回分红预算服务列表 | ||
7 | + payload: | ||
8 | + - ref: offset | ||
9 | + required: true | ||
10 | + - ref: limit | ||
11 | + required: true | ||
12 | + result: | ||
13 | + - ref: count | ||
14 | + required: true | ||
15 | + - name: dividendsEstimates | ||
16 | + type: | ||
17 | + array: dividendsEstimate | ||
18 | + required: true |
allied-creation-cooperation/services/dividendsEstimate/methods/searchDividendsEstimate.yaml
0 → 100644
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: searchDividendsEstimate | ||
5 | + type: query | ||
6 | + description: 查询分红预算单 | ||
7 | + payload: | ||
8 | + - ref: dividendsEstimateOrderNumber | ||
9 | + required: true | ||
10 | + - ref: dividendsType | ||
11 | + required: true | ||
12 | + result: | ||
13 | + - name: dividendsEstimate | ||
14 | + type: | ||
15 | + schema: dividendsEstimate | ||
16 | + required: true |
-
请 注册 或 登录 后发表评论