作者 陈志颖

feat:完善分红预算服务和接口

  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
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: cancelDividendsEstimate
  5 + type: command
  6 + description: 取消分红预算
  7 + result:
  8 + - name: dividendsEstimate
  9 + type:
  10 + schema: dividendsEstimate
  11 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: createDividendsEstimate
  5 + type: command
  6 + description: 创建分红预算服务
  7 + result:
  8 + - name: dividendsEstimate
  9 + type:
  10 + schema: dividendsEstimate
  11 + required: true
  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
  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
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: getDividendsEstimate
  5 + type: query
  6 + description: 返回分红预算服务
  7 + payload:
  8 + - ref: dividendsEstimateId
  9 + required: true
  10 + result:
  11 + - name: dividendsEstimate
  12 + type:
  13 + schema: dividendsEstimate
  14 + required: true
  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
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: removeDividendsEstimate
  5 + type: command
  6 + description: 移除分红预算服务
  7 + payload:
  8 + - ref: dividendsEstimateId
  9 + required: true
  10 + result:
  11 + - name: dividendsEstimate
  12 + type:
  13 + schema: dividendsEstimate
  14 + required: true
  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
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: updateDividendsEstimate
  5 + type: command
  6 + description: 更新分红预算服务
  7 + payload:
  8 + - ref: dividendsEstimateId
  9 + required: true
  10 + result:
  11 + - name: dividendsEstimate
  12 + type:
  13 + schema: dividendsEstimate
  14 + required: true
  1 +version: v1
  2 +kind: Service
  3 +metadata:
  4 + name: dividendsEstimate
  5 + description: 分红预算服务