作者 yangfu
正在显示 134 个修改的文件 包含 1751 行增加73 行删除
@@ -23,4 +23,5 @@ _testmain.go @@ -23,4 +23,5 @@ _testmain.go
23 *.test 23 *.test
24 .log 24 .log
25 .idea 25 .idea
26 -*.tmp  
  26 +*.tmp
  27 +.DS_Store
  1 +version: v1
  2 +kind: HttpApi
  3 +metadata:
  4 + service: contractUndertakerFeedback
  5 + path: /contract-undertaker-feedbacks
  6 + endpoints:
  7 + - method: createContractUndertakerFeedback
  8 + route:
  9 + post: /
  10 + - method: updateContractUndertakerFeedback
  11 + route:
  12 + put: /{contractUndertakerFeedbackId}
  13 + - method: getContractUndertakerFeedback
  14 + route:
  15 + get: /{contractUndertakerFeedbackId}
  16 + - method: removeContractUndertakerFeedback
  17 + route:
  18 + delete: /{contractUndertakerFeedbackId}
  19 + - method: searchContractUndertakerFeedback
  20 + route:
  21 + post: /search
  22 + - method: listContractUndertakerFeedback
  23 + route:
  24 + get: /
  25 + params:
  26 + - name: offset
  27 + - name: limit
@@ -25,6 +25,9 @@ metadata: @@ -25,6 +25,9 @@ metadata:
25 - method: removeCooperationApplication 25 - method: removeCooperationApplication
26 route: 26 route:
27 delete: /{cooperationApplicationId} 27 delete: /{cooperationApplicationId}
  28 + - method: searchCooperationApplication
  29 + route:
  30 + post: /search
28 - method: listCooperationApplication 31 - method: listCooperationApplication
29 route: 32 route:
30 get: / 33 get: /
  1 +version: v1
  2 +kind: HttpApi
  3 +metadata:
  4 + service: cooperationContractChangeLog
  5 + path: /cooperation-contract-change-logs
  6 + endpoints:
  7 + - method: createCooperationContractChangeLog
  8 + route:
  9 + post: /
  10 + - method: updateCooperationContractChangeLog
  11 + route:
  12 + put: /{cooperationContractChangeLogId}
  13 + - method: getCooperationContractChangeLog
  14 + route:
  15 + get: /{cooperationContractChangeLogId}
  16 + - method: removeCooperationContractChangeLog
  17 + route:
  18 + delete: /{cooperationContractChangeLogId}
  19 + - method: listCooperationContractChangeLog
  20 + route:
  21 + get: /
  22 + params:
  23 + - name: offset
  24 + - name: limit
  25 + - method: searchCooperationContractChangeLog
  26 + route:
  27 + post: /search
  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: searchCooperationContract
  20 + route:
  21 + post: /search
  22 + - method: listCooperationContract
  23 + route:
  24 + get: /
  25 + params:
  26 + - name: offset
  27 + - name: limit
@@ -16,6 +16,9 @@ metadata: @@ -16,6 +16,9 @@ metadata:
16 - method: removeCooperationMode 16 - method: removeCooperationMode
17 route: 17 route:
18 delete: /{cooperationModeId} 18 delete: /{cooperationModeId}
  19 + - method: searchCooperationMode
  20 + route:
  21 + post: /search
19 - method: listCooperationMode 22 - method: listCooperationMode
20 route: 23 route:
21 get: / 24 get: /
@@ -19,6 +19,9 @@ metadata: @@ -19,6 +19,9 @@ metadata:
19 - method: removeCooperationProject 19 - method: removeCooperationProject
20 route: 20 route:
21 delete: /{cooperationProjectId} 21 delete: /{cooperationProjectId}
  22 + - method: searchCooperationProject
  23 + route:
  24 + post: /search
22 - method: listCooperationProject 25 - method: listCooperationProject
23 route: 26 route:
24 get: / 27 get: /
  1 +version: v1
  2 +kind: HttpApi
  3 +metadata:
  4 + service: dividendsOrder
  5 + path: /dividends-orders
  6 + endpoints:
  7 + - method: createDividendsOrder
  8 + route:
  9 + post: /
  10 + - method: updateDividendsOrder
  11 + route:
  12 + put: /{dividendsOrderId}
  13 + - method: getDividendsOrder
  14 + route:
  15 + get: /{dividendsOrderId}
  16 + - method: removeDividendsOrder
  17 + route:
  18 + delete: /{dividendsOrderId}
  19 + - method: searchDividendsOrder
  20 + route:
  21 + post: /search
  22 + - method: listDividendsOrder
  23 + route:
  24 + get: /
  25 + params:
  26 + - name: offset
  27 + - name: limit
1 version: v1 1 version: v1
2 kind: Attribute 2 kind: Attribute
3 metadata: 3 metadata:
4 - name: regionId  
5 - description: 区域ID 4 + name: fileSize
  5 + description: 附件文件大小
6 type: 6 type:
7 primitive: int64 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
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: pageNumber
  5 + description: 页面大小
  6 + type:
  7 + primitive: int32
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: pageSize
  5 + description: 页面大小
  6 + type:
  7 + primitive: int32
@@ -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 1 version: v1
2 kind: Attribute 2 kind: Attribute
3 metadata: 3 metadata:
4 - name: undertaker 4 + name: undertakers
5 description: 承接人 5 description: 承接人
6 type: 6 type:
7 - schema: datetime 7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: customerName
  5 + description: 客户名称
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: dividendStatus
  5 + description: 分红订单分红状态,1待分红,2已分红,3部分分红
  6 + type:
  7 + primitive: int32
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: dividendTime
  5 + description: 分红订单分红时间
  6 + type:
  7 + primitive: datetime
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: dividendsOrderAmount
  5 + description: 分红订单金额
  6 + type:
  7 + primitive: float64
@@ -2,6 +2,6 @@ version: v1 @@ -2,6 +2,6 @@ version: v1
2 kind: Attribute 2 kind: Attribute
3 metadata: 3 metadata:
4 name: dividendsOrderNumber 4 name: dividendsOrderNumber
5 - description: 分红订单源单 5 + description: 分红订单号
6 type: 6 type:
7 primitive: int64 7 primitive: int64
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: dividendsOriginalOrderNum
  5 + description: 分红订单原单号
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: orderSalesman
  5 + description: 订单业务员
  6 + type:
  7 + schema: user
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: orderTime
  5 + description: 订单产生时间
  6 + type:
  7 + primitive: datetime
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: region
  5 + description: 区域
  6 + type:
  7 + schema: regionInfo
1 version: v1 1 version: v1
2 kind: Attribute 2 kind: Attribute
3 metadata: 3 metadata:
4 - name: orderNum 4 + name: dividendsOriginalReturnedOrderNum
5 description: 来源单号,源单号,订单号 5 description: 来源单号,源单号,订单号
6 type: 6 type:
7 primitive: string 7 primitive: string
1 version: v1 1 version: v1
2 kind: Attribute 2 kind: Attribute
3 metadata: 3 metadata:
4 - name: dividendsReturnedId 4 + name: dividendsReturnedOrderId
5 description: 分红退货单记录ID 5 description: 分红退货单记录ID
6 type: 6 type:
7 primitive: string 7 primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: orderGoodAmount
  5 + description: 订单产品金额
  6 + type:
  7 + primitive: float64
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: orderGoodExpense
  5 + description: 订单产品费用
  6 + type:
  7 + primitive: float64
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: orderGoodId
  5 + description: 订单产品
  6 + type:
  7 + primitive: int64
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: orderGoodName
  5 + description: 订单产品名称
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: orderGoodPrice
  5 + description: 订单产品单价
  6 + type:
  7 + primitive: float64
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: orderGoodQuantity
  5 + description: 订单产品数量
  6 + type:
  7 + primitive: int64
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: regionNumber
  5 + description: 区域编号
  6 + type:
  7 + primitive: string
  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
@@ -14,6 +14,8 @@ metadata: @@ -14,6 +14,8 @@ metadata:
14 required: true 14 required: true
15 - ref: contractUndertaker 15 - ref: contractUndertaker
16 required: true 16 required: true
  17 + - ref: cooperationMode
  18 + required: true
17 - ref: organization 19 - ref: organization
18 required: true 20 required: true
19 - ref: updatedAt 21 - ref: updatedAt
@@ -21,4 +23,5 @@ metadata: @@ -21,4 +23,5 @@ metadata:
21 - ref: deletedAt 23 - ref: deletedAt
22 required: true 24 required: true
23 - ref: createdAt 25 - ref: createdAt
  26 + description: 反馈创建时间,同时也作为反馈时间
24 required: true 27 required: true
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: cooperationContractChangeLog
  5 + description: 共创合约变更日志
  6 + attributes:
  7 + - ref: incentivesRule
  8 + required: true
  9 + - ref: incentivesRuleDetail
  10 + required: true
  11 + - ref: operationType
  12 + required: true
  13 + - ref: cooperationContractNumber
  14 + required: true
  15 + - ref: undertakers
  16 + required: true
  17 + - ref: operator
  18 + required: true
  19 + - ref: updatedAt
  20 + required: true
  21 + - ref: deletedAt
  22 + required: true
  23 + - ref: createdAt
  24 + 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: dividendsOrder
  5 + description: 分红订单实体
  6 + attributes:
  7 + - ref: dividendsOrderId
  8 + required: true
  9 + - ref: dividendsOrderNumber
  10 + required: true
  11 + - ref: dividendsOriginalOrderNum
  12 + required: true
  13 + - ref: dividendsOrderAmount
  14 + required: true
  15 + - ref: orderSalesman
  16 + required: true
  17 + - ref: orderTime
  18 + required: true
  19 + - ref: dividendTime
  20 + required: true
  21 + - ref: dividendStatus
  22 + required: true
  23 + - ref: region
  24 + required: true
  25 + - ref: customerName
  26 + description: 客户姓名
  27 + required: true
  28 + - ref: createdAt
  29 + required: true
  30 + - ref: deletedAt
  31 + required: true
  32 + - ref: updatedAt
  33 + required: true
  34 + - ref: operateTime
  35 + required: true
  36 + - ref: operator
  37 + 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: orderGood
  5 + description: 订单产品领域实体
  6 + attributes:
  7 + - ref: orderGoodId
  8 + required: true
  9 + - ref: orderGoodAmount
  10 + required: true
  11 + - ref: orderGoodName
  12 + required: true
  13 + - ref: orderGoodPrice
  14 + required: true
  15 + - ref: orderGoodQuantity
  16 + required: true
  17 + - ref: dividendsOrderNumber
  18 + description: 关联分红订单号
  19 + required: true
  20 + - ref: cooperationContractNumber
  21 + description: 关联的共创合约编号
  22 + required: true
  23 + - ref: orderGoodExpense
  24 + description: 订单产品费用
  25 + required: true
  26 + - ref: createdAt
  27 + required: true
  28 + - ref: deletedAt
  29 + required: true
  30 + - ref: updatedAt
  31 + required: true
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: orderGood
  5 + description: 订单产品对象
  6 + attributes:
  7 + - ref: orderGoodAmount
  8 + required: true
  9 + - ref: orderGoodName
  10 + required: true
  11 + - ref: orderGoodPrice
  12 + required: true
  13 + - ref: orderGoodQuantity
  14 + required: true
  15 + - ref: dividendsOrderNumber
  16 + description: 关联分红订单号
  17 + required: true
  18 + - ref: cooperationContractNumber
  19 + description: 关联的共创合约编号
  20 + required: true
  21 + - ref: orderGoodExpense
  22 + description: 订单产品费用
  23 + required: true
  24 + - ref: createdAt
  25 + required: true
  26 + - ref: deletedAt
  27 + required: true
  28 + - ref: updatedAt
  29 + required: true
@@ -4,7 +4,7 @@ metadata: @@ -4,7 +4,7 @@ metadata:
4 name: regionInfo 4 name: regionInfo
5 description: 区域信息值对象 5 description: 区域信息值对象
6 attributes: 6 attributes:
7 - - ref: regionId 7 + - ref: regionNumber
8 required: true 8 required: true
9 - ref: regionName 9 - ref: regionName
10 required: true 10 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: createContractUndertakerFeedback
  5 + type: command
  6 + description: 创建共创合约反馈服务
  7 + payload:
  8 + - ref: feedbackAttachment
  9 + required: true
  10 + - ref: feedbackContent
  11 + required: true
  12 + - ref: cooperationContractNumber
  13 + required: true
  14 + - name: underTakerUid
  15 + description: 承接人uid
  16 + type:
  17 + primitive: string
  18 + result:
  19 + - name: contractUndertakerFeedback
  20 + type:
  21 + schema: contractUndertakerFeedback
  22 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: getContractUndertakerFeedback
  5 + type: query
  6 + description: 返回共创合约反馈服务
  7 + payload:
  8 + - ref: contractUndertakerFeedbackId
  9 + required: true
  10 + - name: underTakerUid
  11 + description: Attribute描述
  12 + type:
  13 + primitive: string
  14 + result:
  15 + - name: contractUndertakerFeedback
  16 + type:
  17 + schema: contractUndertakerFeedback
  18 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: listContractUndertakerFeedback
  5 + type: query
  6 + description: 返回共创合约反馈服务列表
  7 + payload:
  8 + - ref: offset
  9 + required: true
  10 + - ref: limit
  11 + required: true
  12 + - name: underTakerUid
  13 + description: Attribute描述
  14 + type:
  15 + primitive: string
  16 + result:
  17 + - ref: count
  18 + required: true
  19 + - name: contractUndertakerFeedbacks
  20 + type:
  21 + array: contractUndertakerFeedback
  22 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: removeContractUndertakerFeedback
  5 + type: command
  6 + description: 移除共创合约反馈服务
  7 + payload:
  8 + - ref: contractUndertakerFeedbackId
  9 + required: true
  10 + - name: underTakerUid
  11 + description: Attribute描述
  12 + type:
  13 + primitive: string
  14 + result:
  15 + - name: contractUndertakerFeedback
  16 + type:
  17 + schema: contractUndertakerFeedback
  18 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: searchContractUndertakerFeedback
  5 + type: query
  6 + description: 查询共创承接方反馈信息
  7 + payload:
  8 + - ref: pageNumber
  9 + required: true
  10 + - ref: pageSize
  11 + required: true
  12 + - ref: cooperationContractName
  13 + required: true
  14 + - name: undertakerName
  15 + description: 承接人姓名
  16 + type:
  17 + primitive: string
  18 + result:
  19 + - name: contractUndertakerFeedbacks
  20 + type:
  21 + array: contractUndertakerFeedback
  22 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: updateContractUndertakerFeedback
  5 + type: command
  6 + description: 更新共创合约反馈服务
  7 + payload:
  8 + - ref: feedbackAttachment
  9 + required: true
  10 + - ref: feedbackContent
  11 + required: true
  12 + - ref: cooperationContractNumber
  13 + required: true
  14 + - name: underTakerUid
  15 + description: 承接人用户uid
  16 + type:
  17 + primitive: string
  18 + result:
  19 + - name: contractUndertakerFeedback
  20 + type:
  21 + schema: contractUndertakerFeedback
  22 + required: true
  1 +version: v1
  2 +kind: Service
  3 +metadata:
  4 + name: contractUndertakerFeedback
  5 + description: 共创合约反馈服务
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: searchCooperationApplication
  5 + type: query
  6 + description: 查询共创申请
  7 + payload:
  8 + - ref: cooperationProjectName
  9 + required: true
  10 + - name: applicantName
  11 + description: 申请人姓名
  12 + type:
  13 + primitive: string
  14 + - ref: pageSize
  15 + required: false
  16 + - ref: pageNumber
  17 + required: false
  18 + result:
  19 + - name: cooperationApplications
  20 + type:
  21 + array: cooperationApplication
  22 + required: true
@@ -5,7 +5,17 @@ metadata: @@ -5,7 +5,17 @@ metadata:
5 type: command 5 type: command
6 description: 更新共创申请服务 6 description: 更新共创申请服务
7 payload: 7 payload:
8 - - ref: cooperationApplicationId 8 + - name: applicantUid
  9 + description: 共创申请人uid
  10 + type:
  11 + primitive: string
  12 + required: true
  13 + - ref: cooperationApplicationDescription
  14 + required: false
  15 + - ref: cooperationApplicationAttachment
  16 + required: false
  17 + - ref: cooperationProjectNumber
  18 + description: 关联的共创项目编号
9 required: true 19 required: true
10 result: 20 result:
11 - name: cooperationApplication 21 - name: cooperationApplication
  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: searchCooperationContract
  5 + type: query
  6 + description: 查询共创合约
  7 + payload:
  8 + - ref: pageSize
  9 + required: true
  10 + - ref: pageNumber
  11 + required: true
  12 + - ref: cooperationContractNumber
  13 + required: true
  14 + - name: sponsorName
  15 + description: 发起人姓名
  16 + type:
  17 + primitive: string
  18 + result:
  19 + - name: cooperationContracts
  20 + type:
  21 + array: cooperationContract
  22 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: updateCooperationContract
  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 + required: true
  16 + - ref: cooperationContractUndertakerType
  17 + required: true
  18 + - ref: cooperationContractName
  19 + required: true
  20 + - ref: cooperationModeNumber
  21 + required: true
  22 + - name: sponsorUid
  23 + description: 共创合约发起人uid
  24 + type:
  25 + primitive: string
  26 + result:
  27 + - name: cooperationContract
  28 + type:
  29 + schema: cooperationContract
  30 + required: true
  1 +version: v1
  2 +kind: Service
  3 +metadata:
  4 + name: cooperationContract
  5 + description: 共创合约服务
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: createCooperationContractChangeLog
  5 + type: command
  6 + description: 创建共创合约变更日志
  7 + payload:
  8 + - ref: incentivesRule
  9 + required: true
  10 + - ref: incentivesRuleDetail
  11 + required: true
  12 + - ref: operationType
  13 + required: true
  14 + - ref: undertakers
  15 + required: true
  16 + - ref: cooperationContractNumber
  17 + required: true
  18 + result:
  19 + - name: cooperationContractChangeLog
  20 + type:
  21 + schema: cooperationContractChangeLog
  22 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: getCooperationContractChangeLog
  5 + type: query
  6 + description: 返回共创合约变更日志
  7 + payload:
  8 + - ref: cooperationContractChangeLogId
  9 + required: true
  10 + result:
  11 + - name: cooperationContractChangeLog
  12 + type:
  13 + schema: cooperationContractChangeLog
  14 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: listCooperationContractChangeLog
  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: cooperationContractChangeLogs
  16 + type:
  17 + array: cooperationContractChangeLog
  18 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: removeCooperationContractChangeLog
  5 + type: command
  6 + description: 移除共创合约变更日志
  7 + payload:
  8 + - ref: cooperationContractChangeLogId
  9 + required: true
  10 + result:
  11 + - name: cooperationContractChangeLog
  12 + type:
  13 + schema: cooperationContractChangeLog
  14 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: searchCooperationContractChangeLog
  5 + type: query
  6 + description: 共创合约变更记录搜索
  7 + payload:
  8 + - ref: operationType
  9 + required: false
  10 + - ref: cooperationContractNumber
  11 + required: false
  12 + - ref: pageSize
  13 + required: false
  14 + - ref: pageNumber
  15 + required: false
  16 + result:
  17 + - name: cooperationContractChangeLogs
  18 + type:
  19 + array: cooperationContractChangeLog
  20 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: updateCooperationContractChangeLog
  5 + type: command
  6 + description: 更新共创合约变更日志
  7 + payload:
  8 + - ref: incentivesRule
  9 + required: true
  10 + - ref: incentivesRuleDetail
  11 + required: true
  12 + - ref: operationType
  13 + required: true
  14 + - ref: undertakers
  15 + required: true
  16 + - ref: cooperationContractNumber
  17 + required: true
  18 + result:
  19 + - name: cooperationContractChangeLog
  20 + type:
  21 + schema: cooperationContractChangeLog
  22 + required: true
  1 +version: v1
  2 +kind: Service
  3 +metadata:
  4 + name: cooperationContractChangeLog
  5 + description: 共创合约变更日志
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: searchCooperationContract
  5 + type: query
  6 + description: 查询共创模式
  7 + payload:
  8 + - ref: pageNumber
  9 + required: true
  10 + - ref: pageSize
  11 + required: true
  12 + - ref: cooperationModeName
  13 + required: true
  14 + - name: organizationName
  15 + description: 组织机构名称
  16 + type:
  17 + primitive: string
  18 + result:
  19 + - name: cooperationModes
  20 + type:
  21 + array: cooperationMode
  22 + required: true
@@ -5,7 +5,11 @@ metadata: @@ -5,7 +5,11 @@ metadata:
5 type: command 5 type: command
6 description: 更新共创模式服务 6 description: 更新共创模式服务
7 payload: 7 payload:
8 - - ref: cooperationModeId 8 + - ref: cooperationModeName
  9 + required: true
  10 + - ref: cooperationModeNumber
  11 + required: true
  12 + - ref: remarks
9 required: true 13 required: true
10 result: 14 result:
11 - name: cooperationMode 15 - name: cooperationMode
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: searchCooperationProject
  5 + type: query
  6 + description: 查询共创项目
  7 + payload:
  8 + - ref: pageNumber
  9 + required: true
  10 + - ref: pageSize
  11 + required: true
  12 + - ref: cooperationProjectName
  13 + required: true
  14 + - ref: departmentName
  15 + required: true
  16 + result:
  17 + - name: cooperationProjects
  18 + type:
  19 + array: cooperationProject
  20 + required: true
@@ -5,8 +5,23 @@ metadata: @@ -5,8 +5,23 @@ metadata:
5 type: command 5 type: command
6 description: 更新共创项目服务 6 description: 更新共创项目服务
7 payload: 7 payload:
8 - - ref: cooperationProjectId 8 + - ref: cooperationProjectName
9 required: true 9 required: true
  10 + - ref: coopeartionProjectUndertakerType
  11 + description: 承接对象,1员工,2共创用户,3公开,可以多选
  12 + required: true
  13 + - name: sponsorUid
  14 + description: 共创项目发起人uid
  15 + type:
  16 + primitive: string
  17 + required: true
  18 + - name: publisherUid
  19 + description: 共创项目发布人uid
  20 + type:
  21 + primitive: string
  22 + required: true
  23 + - ref: cooperationProjectDescription
  24 + required: false
10 result: 25 result:
11 - name: cooperationProject 26 - name: cooperationProject
12 type: 27 type:
@@ -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
@@ -5,7 +5,19 @@ metadata: @@ -5,7 +5,19 @@ metadata:
5 type: command 5 type: command
6 description: 更新业绩分红激励规则服务 6 description: 更新业绩分红激励规则服务
7 payload: 7 payload:
8 - - ref: dividendsIncentivesRuleId 8 + - ref: cooperationContractNumber
  9 + required: true
  10 + - ref: dividendsIncentivesPercentage
  11 + required: true
  12 + - ref: dividendsIncentivesStage
  13 + required: true
  14 + - ref: dividendsIncentivesStageStart
  15 + required: true
  16 + - ref: dividendsIncentivesStageEnd
  17 + requried: true
  18 + - ref: referrerPercentage
  19 + required: true
  20 + - ref: salesmanPercentage
9 required: true 21 required: true
10 result: 22 result:
11 - name: dividendsIncentivesRule 23 - name: dividendsIncentivesRule
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: createDividendsOrder
  5 + type: command
  6 + description: 创建分红订单实体对象
  7 + payload:
  8 + - ref: customerName
  9 + required: true
  10 + - ref: dividendsOrderAmount
  11 + required: true
  12 + - ref: dividendsOrderNumber
  13 + required: true
  14 + - ref: dividendsOriginalOrderNum
  15 + required: true
  16 + - ref: orderTime
  17 + required: true
  18 + - ref: remarks
  19 + required: true
  20 + - name: salesmanUid
  21 + description: 订单业务员uid
  22 + type:
  23 + primitive: string
  24 + - name: operatorUid
  25 + description: 订单操作人uid
  26 + type:
  27 + primitive: string
  28 + - name: orderGoods
  29 + description: 订单产品列表
  30 + type:
  31 + array: orderGoods
  32 + result:
  33 + - name: dividendsOrder
  34 + type:
  35 + schema: dividendsOrder
  36 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: getDividendsOrder
  5 + type: query
  6 + description: 返回分红订单实体对象
  7 + payload:
  8 + - ref: dividendsOrderId
  9 + required: true
  10 + result:
  11 + - name: dividendsOrder
  12 + type:
  13 + schema: dividendsOrder
  14 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: listDividendsOrders
  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: dividendsOrders
  16 + type:
  17 + array: dividendsOrder
  18 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: removeDividendsOrder
  5 + type: command
  6 + description: 移除分红订单实体对象
  7 + payload:
  8 + - ref: dividendsOrderId
  9 + required: true
  10 + result:
  11 + - name: dividendsOrder
  12 + type:
  13 + schema: dividendsOrder
  14 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: searchDividendsOrder
  5 + type: query
  6 + description: 查询分红订单方法
  7 + payload:
  8 + - ref: dividendsOrderNumber
  9 + required: false
  10 + - ref: customerName
  11 + required: false
  12 + - ref: pageSize
  13 + required: false
  14 + - ref: pageNumber
  15 + required: false
  16 + result:
  17 + - name: dividendsOrders
  18 + type:
  19 + array: dividendsOrder
  20 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: updateDividendsOrder
  5 + type: command
  6 + description: 更新分红订单实体对象
  7 + payload:
  8 + - ref: customerName
  9 + required: true
  10 + - ref: dividendsOrderAmount
  11 + required: true
  12 + - ref: dividendsOrderNumber
  13 + required: true
  14 + - ref: dividendsOriginalOrderNum
  15 + required: true
  16 + - ref: orderTime
  17 + required: true
  18 + - ref: remarks
  19 + required: true
  20 + - name: salesmanUid
  21 + description: Attribute描述
  22 + type:
  23 + primitive: string
  24 + - name: operatorUid
  25 + description: Attribute描述
  26 + type:
  27 + primitive: string
  28 + result:
  29 + - name: dividendsOrder
  30 + type:
  31 + schema: dividendsOrder
  32 + required: true
  1 +version: v1
  2 +kind: Service
  3 +metadata:
  4 + name: dividendsOrder
  5 + description: 分红订单实体对象
@@ -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
@@ -15,8 +15,6 @@ metadata: @@ -15,8 +15,6 @@ metadata:
15 required: true 15 required: true
16 - ref: cooperationContractNumber 16 - ref: cooperationContractNumber
17 required: true 17 required: true
18 - - ref: moneyIncentivesRulesId  
19 - required: true  
20 result: 18 result:
21 - name: moneyIncentivesRule 19 - name: moneyIncentivesRule
22 type: 20 type:
  1 +version: v1
  2 +kind: HttpApi
  3 +metadata:
  4 + service: cooperationApplication
  5 + path: /cooperation-applications
  6 + endpoints:
  7 + - method: createCooperationApplication
  8 + route:
  9 + post: /
  10 + - method: updateCooperationApplication
  11 + route:
  12 + put: /{applicationId}
  13 + - method: getCooperationApplication
  14 + route:
  15 + get: /{applicationId}
  16 + - method: listCooperationApplication
  17 + route:
  18 + get: /
  19 + params:
  20 + - name: offset
  21 + - name: limit
  22 + - method: auditCooperationApplication
  23 + route:
  24 + put: /audit
  1 +version: v1
  2 +kind: HttpApi
  3 +metadata:
  4 + service: cooperationMode
  5 + path: /cooperation-modes
  6 + endpoints:
  7 + - method: createCooperationMode
  8 + route:
  9 + post: /
  10 + - method: updateCooperationMode
  11 + route:
  12 + put: /{modeId}
  13 + - method: getCooperationMode
  14 + route:
  15 + get: /{modeId}
  16 + - method: removeCooperationMode
  17 + route:
  18 + delete: /{modeId}
  19 + - method: listCooperationMode
  20 + route:
  21 + get: /
  22 + params:
  23 + - name: offset
  24 + - name: limit
  1 +version: v1
  2 +kind: HttpApi
  3 +metadata:
  4 + service: cooperationProject
  5 + path: /cooperation-projects
  6 + endpoints:
  7 + - method: createCooperationProject
  8 + route:
  9 + post: /
  10 + - method: updateCooperationProject
  11 + route:
  12 + put: /{projectId}
  13 + - method: getCooperationProject
  14 + route:
  15 + get: /{projectId}
  16 + - method: listCooperationProject
  17 + route:
  18 + get: /
  19 + params:
  20 + - name: offset
  21 + - name: limit
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: attachmentName
  5 + description: 附件名称
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: attachmentType
  5 + description: 附件类型
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: attachmentUrl
  5 + description: 附件下载地址
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: fileSize
  5 + description: 文件大小
  6 + type:
  7 + primitive: string
@@ -3,5 +3,5 @@ kind: Attribute @@ -3,5 +3,5 @@ kind: Attribute
3 metadata: 3 metadata:
4 name: cooperationApplicationAttachment 4 name: cooperationApplicationAttachment
5 description: 共创申请描述附件 5 description: 共创申请描述附件
6 - type:  
7 - array: string 6 + type:
  7 + array: attachment
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: cooperationContractDescription
  5 + description: 共创合约描述
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: cooperationContractId
  5 + description: 共创合约ID
  6 + type:
  7 + primitive: int64
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: cooperationContractIncentivesRules
  5 + description: 共创合约激励规则列表
  6 + type:
  7 + array: dividendsIncentivesRules
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: cooperationContractName
  5 + description: 共创合约名称
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: cooperationContractNumber
  5 + description: 共创合约编号
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: cooperationContractSponsor
  5 + description: 共创合约发起人
  6 + type:
  7 + schema: user
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: cooperationContractUndertakerType
  5 + description: 共创合约承接对象,1员工,2共创用户,3公开
  6 + type:
  7 + array: int32
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: cooperationMode
  5 + description: 共创模式
  6 + type:
  7 + schema: cooperationMode
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: cooperationProjectDepartment
  5 + description: 发起部门
  6 + type:
  7 + schema: orgs
@@ -3,5 +3,5 @@ kind: Attribute @@ -3,5 +3,5 @@ kind: Attribute
3 metadata: 3 metadata:
4 name: cooperationProjectPublisher 4 name: cooperationProjectPublisher
5 description: 共创项目发布人 5 description: 共创项目发布人
6 - type:  
7 - schema: user 6 + type:
  7 + schema: users
@@ -3,5 +3,5 @@ kind: Attribute @@ -3,5 +3,5 @@ kind: Attribute
3 metadata: 3 metadata:
4 name: cooperationProjectSponsor 4 name: cooperationProjectSponsor
5 description: 共创项目发起人 5 description: 共创项目发起人
6 - type:  
7 - schema: user 6 + type:
  7 + schema: users
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: dividendsPercentage
  5 + description: 分红规则激励百分点
  6 + type:
  7 + primitive: float64
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: dividendsRuleId
  5 + description: 分红规则ID
  6 + type:
  7 + primitive: int64
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: dividendsStage
  5 + description: 分红规则激励阶段,阶段返回时需要转换为中文数字
  6 + type:
  7 + primitive: int64
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: dividendsStageEnd
  5 + description: 分红规则激励阶段结束
  6 + type:
  7 + primitive: datetime
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: dividendsStageStart
  5 + description: 分红规则激励阶段开始
  6 + type:
  7 + primitive: datetime
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: referrerPercentage
  5 + description: 推荐人抽成比例
  6 + type:
  7 + primitive: float64
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: salesmanPercentage
  5 + description: 业务员抽成比例
  6 + type:
  7 + primitive: float64
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: attachment
  5 + description: 附件信息
  6 + attributes:
  7 + - ref: attachmentUrl
  8 + required: true
  9 + - ref: attachmentType
  10 + required: true
  11 + - ref: attachmentName
  12 + required: true
  13 + - ref: fileSize
  14 + required: true
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: cooperationApplication
  5 + description: 共创申请
  6 + attributes:
  7 + - ref: cooperationApplicationApplicant
  8 + required: true
  9 + - ref: cooperationApplicationAttachment
  10 + required: true
  11 + - ref: cooperationApplicationDescription
  12 + required: true
  13 + - ref: cooperationApplicationId
  14 + required: true
  15 + - ref: cooperationApplicationStatus
  16 + required: true
  17 + - ref: cooperationApplicationVerifier
  18 + required: true
  19 + - ref: cooperationApplicationVerifyDescription
  20 + required: true
  21 + - ref: cooperationApplicationVerifyTime
  22 + required: true
  23 + - ref: cooperationApplyTime
  24 + required: true
  25 + - ref: cooperationProjectId
  26 + required: true
  27 + - ref: cooperationProjectNumber
  28 + required: true
  29 + - ref: companyId
  30 + required: true
  31 + - ref: orgName
  32 + required: true
  33 + - ref: orgId
  34 + required: true
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: cooperationInfo
  5 + description: 共创信息
  6 + attributes:
  7 + - ref: usersCode
  8 + required: true
  9 + - ref: usersId
  10 + required: true
  11 + - ref: orgId
  12 + required: true
  13 + - ref: orgName
  14 + required: true
  15 + - ref: usersName
  16 + required: true
  17 + - ref: phone
  18 + required: true
  19 + - ref: status
  20 + required: true
  21 + - name: statusName
  22 + description: 状态描述
  23 + type:
  24 + primitive: string
  25 + - name: referrer
  26 + type:
  27 + schema: users
@@ -4,26 +4,35 @@ metadata: @@ -4,26 +4,35 @@ metadata:
4 name: cooperationMode 4 name: cooperationMode
5 description: 共创模式实体 5 description: 共创模式实体
6 attributes: 6 attributes:
7 - - ref: cooperationModeId  
8 - required: true  
9 - - ref: cooperationModeNumber  
10 - description: 模式编码,唯一确定  
11 - required: true  
12 - - ref: cooperationModeName  
13 - description: 模式名称,唯一确定  
14 - required: true  
15 - - ref: status  
16 - description: 共创模式状态,1启用,2禁用  
17 - required: true  
18 - - ref: remarks  
19 - required: true  
20 - - ref: operator  
21 - required: true  
22 - - ref: operateTime  
23 - required: true  
24 - - ref: updatedAt  
25 - required: true  
26 - - ref: deletedAt  
27 - required: true  
28 - - ref: createdAt  
29 - required: true 7 + - ref: cooperationModeId
  8 + required: true
  9 + - ref: companyId
  10 + required: true
  11 + - ref: orgId
  12 + required: true
  13 + - ref: orgName
  14 + - ref: cooperationModeNumber
  15 + description: 模式编码,唯一确定
  16 + required: true
  17 + - ref: cooperationModeName
  18 + description: 模式名称,唯一确定
  19 + required: true
  20 + - ref: status
  21 + description: 共创模式状态,1启用,2禁用
  22 + required: true
  23 + - name: statusName
  24 + description: 状态描述
  25 + type:
  26 + primitive: string
  27 + - ref: remarks
  28 + required: true
  29 + - ref: operator
  30 + required: true
  31 + - ref: operateTime
  32 + required: true
  33 + - ref: updatedAt
  34 + required: true
  35 + - ref: deletedAt
  36 + required: true
  37 + - ref: createdAt
  38 + required: true
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: cooperationProject
  5 + description: 共创项目
  6 + attributes:
  7 + - ref: cooperationProjectDescription
  8 + required: true
  9 + - ref: cooperationProjectId
  10 + required: true
  11 + - ref: cooperationProjectName
  12 + required: true
  13 + - ref: cooperationProjectNumber
  14 + required: true
  15 + - ref: cooperationProjectPublishTime
  16 + required: true
  17 + - ref: cooperationProjectPublisher
  18 + required: true
  19 + - ref: cooperationProjectSponsor
  20 + required: true
  21 + - ref: cooperationProjectUndertakerType
  22 + required: true
  23 + - ref: companyId
  24 + required: true
  25 + - ref: orgName
  26 + required: true
  27 + - ref: orgId
  28 + required: true
  29 + - ref: cooperationModeName
  30 + - ref: cooperationModeNumber
  31 + description: 模式编码,唯一确定
  32 + - ref: cooperationProjectDepartment
  33 + - name: cooperationMode
  34 + description: 共创模式
  35 + type:
  36 + schema: cooperationMode
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: dividendsIncentivesRules
  5 + description: 金额激励规则实体
  6 + attributes:
  7 + - ref: dividendsIncentivesRuleId
  8 + required: true
  9 + - ref: referrerPercentage
  10 + required: true
  11 + - ref: salesmanPercentage
  12 + required: true
  13 + - ref: dividendsIncentivesPercentage
  14 + required: true
  15 + - ref: dividendsIncentivesStage
  16 + required: true
  17 + - ref: dividendsIncentivesStageEnd
  18 + required: true
  19 + - ref: dividendsIncentivesStageStart
  20 + required: true
  21 + - ref: updatedAt
  22 + required: true
  23 + - ref: deletedAt
  24 + required: true
  25 + - ref: createdAt
  26 + required: true
@@ -26,6 +26,10 @@ metadata: @@ -26,6 +26,10 @@ metadata:
26 required: true 26 required: true
27 - ref: status 27 - ref: status
28 required: true 28 required: true
  29 + - name: statusName
  30 + description: 状态描述
  31 + type:
  32 + primitive: string
29 - ref: usersCode 33 - ref: usersCode
30 required: true 34 required: true
31 - ref: usersId 35 - ref: usersId
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: auditCooperationApplication
  5 + type: command
  6 + description: 审核共创申请
  7 + payload:
  8 + - ref: cooperationApplicationId
  9 + required: true
  10 + - name: userId
  11 + description: 审核人id
  12 + type:
  13 + primitive: int64
  14 + - ref: cooperationApplicationStatus
  15 + required: true
  16 + - ref: cooperationApplicationVerifyDescription
  17 + required: true
  18 + result:
  19 + - ref: cooperationApplicationId
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: createCooperationApplication
  5 + type: command
  6 + description: 创建共创申请管理
  7 + payload:
  8 + - ref: cooperationApplicationDescription
  9 + required: true
  10 + - name: userId
  11 + description: 申请人的id
  12 + type:
  13 + primitive: int64
  14 + - name: attachment
  15 + description: 附件列表
  16 + type:
  17 + array: attachment
  18 + result:
  19 + - name: cooperationApplication
  20 + type:
  21 + schema: cooperationApplication
  22 + required: true
  23 + - name: cooperationProject
  24 + type:
  25 + schema: cooperationProject
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: getCooperationApplication
  5 + type: query
  6 + description: 返回共创申请管理
  7 + payload:
  8 + - ref: cooperationApplicationId
  9 + required: true
  10 + result:
  11 + - name: cooperationApplication
  12 + type:
  13 + schema: cooperationApplication
  14 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: listCooperationApplication
  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: cooperationApplications
  16 + type:
  17 + array: cooperationApplication
  18 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: updateCooperationApplication
  5 + type: command
  6 + description: 更新共创申请管理
  7 + payload:
  8 + - ref: cooperationApplicationId
  9 + required: true
  10 + result:
  11 + - name: cooperationApplication
  12 + type:
  13 + schema: cooperationApplication
  14 + required: true
  1 +version: v1
  2 +kind: Service
  3 +metadata:
  4 + name: cooperationApplication
  5 + description: 共创申请管理
@@ -3,10 +3,27 @@ kind: Method @@ -3,10 +3,27 @@ kind: Method
3 metadata: 3 metadata:
4 name: createCooperationProject 4 name: createCooperationProject
5 type: command 5 type: command
6 - description: 创建共创项目服务 6 + description: 创建共创项目管理
7 payload: 7 payload:
  8 + - ref: cooperationModeNumber
  9 + description: 模式编码,唯一确定
  10 + required: true
  11 + - ref: orgId
  12 + required: true
  13 + - ref: cooperationProjectName
  14 + required: true
  15 + - name: cooperationProjectSponsor
  16 + description: 共创发起人id
  17 + type:
  18 + primitive: int64
  19 + - name: cooperationProjectUndertakerType
  20 + description: 项目承接对象
  21 + type:
  22 + array: int32
  23 + - ref: cooperationProjectDescription
  24 + required: true
8 result: 25 result:
9 - - name: cooperationProject  
10 - type:  
11 - schema: cooperationProject  
12 - required: true 26 + - name: cooperationProject
  27 + type:
  28 + schema: cooperationProject
  29 + required: true
@@ -3,12 +3,15 @@ kind: Method @@ -3,12 +3,15 @@ kind: Method
3 metadata: 3 metadata:
4 name: getCooperationProject 4 name: getCooperationProject
5 type: query 5 type: query
6 - description: 返回共创项目服务 6 + description: 返回共创项目管理
7 payload: 7 payload:
8 - - ref: cooperationProjectId  
9 - required: true 8 + - ref: cooperationProjectId
  9 + required: true
10 result: 10 result:
11 - - name: cooperationProject  
12 - type:  
13 - schema: cooperationProject  
14 - required: true 11 + - name: cooperationProject
  12 + type:
  13 + schema: cooperationProject
  14 + required: true
  15 + - name: application
  16 + type:
  17 + array: cooperationApplication
@@ -3,7 +3,7 @@ kind: Method @@ -3,7 +3,7 @@ kind: Method
3 metadata: 3 metadata:
4 name: listCooperationProject 4 name: listCooperationProject
5 type: query 5 type: query
6 - description: 返回共创项目服务列表 6 + description: 返回共创项目管理列表
7 payload: 7 payload:
8 - ref: offset 8 - ref: offset
9 required: true 9 required: true
@@ -3,12 +3,29 @@ kind: Method @@ -3,12 +3,29 @@ kind: Method
3 metadata: 3 metadata:
4 name: updateCooperationProject 4 name: updateCooperationProject
5 type: command 5 type: command
6 - description: 更新共创项目服务 6 + description: 更新共创项目管理
7 payload: 7 payload:
8 - - ref: cooperationProjectId  
9 - required: true 8 + - ref: cooperationProjectId
  9 + required: true
  10 + - ref: cooperationModeNumber
  11 + description: 模式编码,唯一确定
  12 + required: true
  13 + - ref: orgId
  14 + required: true
  15 + - ref: cooperationProjectName
  16 + required: true
  17 + - name: cooperationProjectSponsor
  18 + description: 共创发起人id
  19 + type:
  20 + primitive: int64
  21 + - name: cooperationProjectUndertakerType
  22 + description: 项目承接对象
  23 + type:
  24 + array: int32
  25 + - ref: cooperationProjectDescription
  26 + required: true
10 result: 27 result:
11 - - name: cooperationProject  
12 - type:  
13 - schema: cooperationProject  
14 - required: true 28 + - name: cooperationProject
  29 + type:
  30 + schema: cooperationProject
  31 + required: true
@@ -2,4 +2,4 @@ version: v1 @@ -2,4 +2,4 @@ version: v1
2 kind: Service 2 kind: Service
3 metadata: 3 metadata:
4 name: cooperationProject 4 name: cooperationProject
5 - description: 共创项目服务 5 + description: 共创项目管理
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: AuthCodeToAccessToken
  5 + type: query
  6 + description: 获取具体的进入系统的凭证
  7 + payload:
  8 + - name: authCode
  9 + description: 登录认证的凭证
  10 + type:
  11 + primitive: string
  12 + - name: companyId
  13 + description: 公司id
  14 + type:
  15 + primitive: string
  16 + - name: organizationId
  17 + description: 组织id
  18 + type:
  19 + primitive: string
  20 + result:
  21 + - name: accessToken
  22 + description: 登录系统的凭证
  23 + type:
  24 + primitive: string
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: changeIdentity
  5 + type: query
  6 + description: 切换公司组织
  7 + payload:
  8 + - name: accessToken
  9 + description: 登录凭证
  10 + type:
  11 + primitive: string
  12 + - name: companyId
  13 + description: 公司id
  14 + type:
  15 + primitive: int64
  16 + result:
  17 + - name: accessToken
  18 + description: 登录系统的凭证
  19 + type:
  20 + primitive: string
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: menuUpdate
  5 + type: query
  6 + description: 设置收藏菜单
  7 + payload:
  8 + - ref: companyId
  9 + required: true
  10 + - ref: menuId
  11 + required: true
  12 + result:
  13 + - name: menusId
  14 + type:
  15 + array: int64
  16 + required: true
@@ -5,10 +5,20 @@ metadata: @@ -5,10 +5,20 @@ metadata:
5 type: command 5 type: command
6 description: 编辑共创用户信息 6 description: 编辑共创用户信息
7 payload: 7 payload:
8 - - name: userinfo  
9 - description: 共创用户信息  
10 - type:  
11 - schema: cooperationUser 8 + - ref: usersId
  9 + required: true
  10 + - ref: usersCode
  11 + required: true
  12 + - ref: usersName
  13 + required: true
  14 + - ref: cooperationCompany
  15 + required: true
  16 + - ref: cooperationDeadline
  17 + required: true
  18 + - ref: enableStatus
  19 + required: true
  20 + - ref: email
  21 + required: true
12 result: 22 result:
13 - name: usersId 23 - name: usersId
14 type: 24 type: