作者 陈志颖

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

version: v1
kind: HttpApi
metadata:
service: dividendsEstimate
path: /dividends-estimates
endpoints:
- method: createDividendsEstimate
route:
post: /
- method: updateDividendsEstimate
route:
put: /{dividendsEstimateId}
- method: getDividendsEstimate
route:
get: /{dividendsEstimateId}
- method: removeDividendsEstimate
route:
delete: /{dividendsEstimateId}
- method: cancelDividendsEstimate
route:
post: /{dividendsEstimateId}/cancel
- method: searchDividendsEstimate
route:
post: /search
- method: estimateDividendsIncentives
route:
post: /estimate-dividends-incentives
- method: estimateMoneyIncentives
route:
post: /estimate-money-incentives
- method: listDividendsEstimate
route:
get: /
params:
- name: offset
- name: limit
... ...
... ... @@ -20,14 +20,14 @@ metadata:
required: true
- ref: orderOrReturnedOrderNum
required: true
- ref: operator
required: true
- ref: operateTime
required: true
- ref: cooperationProjectNumber
required: true
- ref: dividendsUser
required: true
- ref: operator
required: true
- ref: operateTime
required: true
- ref: createdAt
required: true
- ref: deletedAt
... ...
... ... @@ -2,7 +2,7 @@ version: v1
kind: Schema
metadata:
name: dividendsIncentivesRule
description: 金额激励规则实体
description: 金额激励规则DTO
attributes:
- ref: referrerPercentage
required: true
... ...
... ... @@ -2,7 +2,7 @@ version: v1
kind: Schema
metadata:
name: moneyIncentivesRule
description: 金额激励规则实体
description: 金额激励规则DTO
attributes:
- ref: moneyIncentivesAmount
required: true
... ...
version: v1
kind: Method
metadata:
name: cancelDividendsEstimate
type: command
description: 取消分红预算
result:
- name: dividendsEstimate
type:
schema: dividendsEstimate
required: true
... ...
version: v1
kind: Method
metadata:
name: createDividendsEstimate
type: command
description: 创建分红预算服务
result:
- name: dividendsEstimate
type:
schema: dividendsEstimate
required: true
... ...
version: v1
kind: Method
metadata:
name: estimateDividendsIncentives
type: command
description: 预算分红激励
payload:
- ref: orderOrReturnedOrderNum
description: 分红订单号/退货单号
required: true
- ref: cooperationContractNumber
description: 合约编号
required: true
result:
- name: dividendsEstimate
type:
schema: dividendsEstimate
required: true
... ...
version: v1
kind: Method
metadata:
name: estimateMoneyIncentives
type: command
description: 预算金额激励分红
payload:
- ref: cooperationContractNumber
description: 共创项目合约编号
required: true
- ref: dividendsIncentivesStage
description: 分红阶段
required: true
- name: undertakerUid
decription: 承接人UID
type:
primitive: string
required: true
result:
- name: dividendsEstimate
type:
schema: dividendsEstimate
required: true
... ...
version: v1
kind: Method
metadata:
name: getDividendsEstimate
type: query
description: 返回分红预算服务
payload:
- ref: dividendsEstimateId
required: true
result:
- name: dividendsEstimate
type:
schema: dividendsEstimate
required: true
... ...
version: v1
kind: Method
metadata:
name: listDividendsEstimate
type: query
description: 返回分红预算服务列表
payload:
- ref: offset
required: true
- ref: limit
required: true
result:
- ref: count
required: true
- name: dividendsEstimates
type:
array: dividendsEstimate
required: true
... ...
version: v1
kind: Method
metadata:
name: removeDividendsEstimate
type: command
description: 移除分红预算服务
payload:
- ref: dividendsEstimateId
required: true
result:
- name: dividendsEstimate
type:
schema: dividendsEstimate
required: true
... ...
version: v1
kind: Method
metadata:
name: searchDividendsEstimate
type: query
description: 查询分红预算单
payload:
- ref: dividendsEstimateOrderNumber
required: true
- ref: dividendsType
required: true
result:
- name: dividendsEstimate
type:
schema: dividendsEstimate
required: true
... ...
version: v1
kind: Method
metadata:
name: updateDividendsEstimate
type: command
description: 更新分红预算服务
payload:
- ref: dividendsEstimateId
required: true
result:
- name: dividendsEstimate
type:
schema: dividendsEstimate
required: true
... ...
version: v1
kind: Service
metadata:
name: dividendsEstimate
description: 分红预算服务
... ...