作者 陈志颖

Merge branch 'dev'

正在显示 20 个修改的文件 包含 285 行增加4 行删除
  1 +version: v1
  2 +kind: HttpApi
  3 +metadata:
  4 + service: cooperationContract
  5 + path: /cooperation-contracts
  6 + endpoints:
  7 + - method: createCooperationContract
  8 + route:
  9 + post: /
  10 + - method: updateCooperationContract
  11 + route:
  12 + put: /{cooperationContractId}
  13 + - method: getCooperationContract
  14 + route:
  15 + get: /{cooperationContractId}
  16 + - method: removeCooperationContract
  17 + route:
  18 + delete: /{cooperationContractId}
  19 + - method: listCooperationContract
  20 + route:
  21 + get: /
  22 + params:
  23 + - name: offset
  24 + - name: limit
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: fileSize
  5 + description: 附件文件大小
  6 + type:
  7 + primitive: int64
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: fileType
  5 + description: 附件文件类型,jpg,pdf
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: name
  5 + description: 附件名称
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: url
  5 + description: 附件地址
  6 + type:
  7 + primitive: string
@@ -4,4 +4,4 @@ metadata: @@ -4,4 +4,4 @@ metadata:
4 name: feedbackAttachment 4 name: feedbackAttachment
5 description: 合约承接方反馈内容附件 5 description: 合约承接方反馈内容附件
6 type: 6 type:
7 - array: string 7 + array: attachment
@@ -4,4 +4,4 @@ metadata: @@ -4,4 +4,4 @@ metadata:
4 name: cooperationApplicationAttachment 4 name: cooperationApplicationAttachment
5 description: 共创申请描述附件 5 description: 共创申请描述附件
6 type: 6 type:
7 - array: string 7 + array: attachment
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: attachment
  5 + description: 附件对象
  6 + attributes:
  7 + - ref: fileType
  8 + required: true
  9 + - ref: name
  10 + required: true
  11 + - ref: url
  12 + required: true
  13 + - ref: fileSize
  14 + required: true
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: dividendsIncentivesRule
  5 + description: 金额激励规则实体
  6 + attributes:
  7 + - ref: referrerPercentage
  8 + required: true
  9 + - ref: salesmanPercentage
  10 + required: true
  11 + - ref: dividendsIncentivesPercentage
  12 + required: true
  13 + - ref: dividendsIncentivesStage
  14 + required: true
  15 + - ref: dividendsIncentivesStageEnd
  16 + required: true
  17 + - ref: dividendsIncentivesStageStart
  18 + required: true
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: moneyIncentivesRule
  5 + description: 金额激励规则实体
  6 + attributes:
  7 + - ref: moneyIncentivesAmount
  8 + required: true
  9 + - ref: moneyIncentivesStage
  10 + required: true
  11 + - ref: moneyIncentivesStageEnd
  12 + required: true
  13 + - ref: moneyIncentivesStageStart
  14 + required: true
  15 + - ref: referrerPercentage
  16 + required: true
  17 + - ref: salesmanPercentage
  18 + required: true
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: relevant
  5 + description: 共创合约相关人
  6 + attributes:
  7 + - ref: userId
  8 + required: true
  9 + - ref: orgnization
  10 + required: true
  11 + - ref: role
  12 + required: true
  13 + - ref: userInfo
  14 + required: true
  15 + - ref: userType
  16 + required: true
  17 + - ref: status
  18 + required: true
  19 + - ref: company
  20 + required: true
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: undertaker
  5 + description: 共创合约承接方
  6 + attributes:
  7 + - ref: userId
  8 + required: true
  9 + - ref: orgnization
  10 + required: true
  11 + - ref: role
  12 + required: true
  13 + - ref: userInfo
  14 + required: true
  15 + - ref: userType
  16 + required: true
  17 + - ref: status
  18 + required: true
  19 + - ref: company
  20 + required: true
  21 + - name: contractAttachment
  22 + description: 合同附件
  23 + type:
  24 + array: attachment
  25 +
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: createCooperationContract
  5 + type: command
  6 + description: 创建共创合约服务
  7 + payload:
  8 + - ref: cooperationContractDescription
  9 + required: true
  10 + - ref: cooperationContractNumber
  11 + required: true
  12 + - ref: cooperationProjectNumber
  13 + required: true
  14 + - ref: departmentNumber
  15 + description: 共创合约发起部门编码
  16 + required: true
  17 + - ref: cooperationContractUndertakerType
  18 + required: true
  19 + - ref: cooperationContractName
  20 + required: true
  21 + - ref: cooperationModeNumber
  22 + required: true
  23 + - name: sponsorUid
  24 + description: 共创合约发起人uid
  25 + type:
  26 + primitive: string
  27 + - name: dividendsIncentivesRules
  28 + description: 业绩分红激励规则列表
  29 + type:
  30 + array: dividendsIncentivesRules
  31 + - name: moneyIncentivesRules
  32 + description: 金额激励规则列表
  33 + type:
  34 + array: moneyIncentivesRules
  35 + - name: undertakers
  36 + description: 承接方列表
  37 + type:
  38 + array: undertaker
  39 + - name: relevants
  40 + description: 相关人列表
  41 + type:
  42 + array: relevant
  43 + result:
  44 + - name: cooperationContract
  45 + type:
  46 + schema: cooperationContract
  47 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: getCooperationContract
  5 + type: query
  6 + description: 返回共创合约服务
  7 + payload:
  8 + - ref: cooperationContractId
  9 + required: true
  10 + - name: sponsorUid
  11 + description: Attribute描述
  12 + type:
  13 + primitive: string
  14 + result:
  15 + - name: cooperationContract
  16 + type:
  17 + schema: cooperationContract
  18 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: listCooperationContract
  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: cooperationContracts
  16 + type:
  17 + array: cooperationContract
  18 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: removeCooperationContract
  5 + type: command
  6 + description: 移除共创合约服务
  7 + payload:
  8 + - ref: cooperationContractId
  9 + required: true
  10 + result:
  11 + - name: cooperationContract
  12 + type:
  13 + schema: cooperationContract
  14 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: updateCooperationContract
  5 + type: command
  6 + description: 更新共创合约服务
  7 + payload:
  8 + - ref: cooperationContractId
  9 + required: true
  10 + - ref: cooperationContractDescription
  11 + required: true
  12 + - ref: cooperationContractNumber
  13 + required: true
  14 + - ref: cooperationProjectNumber
  15 + required: true
  16 + - ref: departmentNumber
  17 + required: true
  18 + - ref: cooperationContractUndertakerType
  19 + required: true
  20 + - ref: cooperationContractName
  21 + required: true
  22 + - ref: cooperationModeNumber
  23 + required: true
  24 + - name: sponsorUid
  25 + description: 共创合约发起人uid
  26 + type:
  27 + primitive: string
  28 + result:
  29 + - name: cooperationContract
  30 + type:
  31 + schema: cooperationContract
  32 + required: true
  1 +version: v1
  2 +kind: Service
  3 +metadata:
  4 + name: cooperationContract
  5 + description: 共创合约服务
@@ -3,7 +3,7 @@ kind: Method @@ -3,7 +3,7 @@ kind: Method
3 metadata: 3 metadata:
4 name: createDividendsIncentivesRule 4 name: createDividendsIncentivesRule
5 type: command 5 type: command
6 - description: 创建业绩分红激励规则服务 6 + description: 创建业绩分红激励规则服务,聚合到共创项目合约
7 payload: 7 payload:
8 - ref: cooperationContractNumber 8 - ref: cooperationContractNumber
9 required: true 9 required: true
@@ -3,7 +3,7 @@ kind: Method @@ -3,7 +3,7 @@ kind: Method
3 metadata: 3 metadata:
4 name: createMoneyIncentivesRule 4 name: createMoneyIncentivesRule
5 type: command 5 type: command
6 - description: 创建项目金额激励规则服务 6 + description: 创建项目金额激励规则服务,聚合到共创合约
7 payload: 7 payload:
8 - ref: moneyIncentivesStageEnd 8 - ref: moneyIncentivesStageEnd
9 required: true 9 required: true