作者 yangfu
正在显示 85 个修改的文件 包含 753 行增加105 行删除
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: cooperationContractByUndertaker
  5 + description: 根据承接人返回共创项目合约
  6 + attributes:
  7 + - ref: cooperationContractId
  8 + required: true
  9 + - ref: cooperationContractDescription
  10 + required: true
  11 + - ref: cooperationContractNumber
  12 + required: true
  13 + - ref: cooperationContractName
  14 + required: true
  15 + - ref: cooperationMode
  16 + required: true
  17 + - ref: cooperationContractSponsor
  18 + required: true
  19 + - ref: status
  20 + required: true
  21 + - ref: contractUndertaker
  22 + required: true
@@ -13,19 +13,7 @@ metadata: @@ -13,19 +13,7 @@ metadata:
13 primitive: string 13 primitive: string
14 required: false 14 required: false
15 result: 15 result:
16 - - ref: cooperationContractDescription  
17 - required: true  
18 - - ref: cooperationContractId  
19 - required: true  
20 - - ref: contractUndertaker  
21 - required: true  
22 - - ref: cooperationContractNumber  
23 - required: true  
24 - - ref: cooperationContractName  
25 - required: true  
26 - - ref: cooperationMode  
27 - required: true  
28 - - ref: cooperationContractSponsor  
29 - required: true  
30 - - ref: status  
31 - required: true 16 + - name: cooperationContractByUndertaker
  17 + description: 根据承接人返回的共创项目合约
  18 + type:
  19 + array: cooperationContractByUndertaker
@@ -12,7 +12,7 @@ metadata: @@ -12,7 +12,7 @@ metadata:
12 type: 12 type:
13 primitive: string 13 primitive: string
14 result: 14 result:
15 - - name: creditAccount 15 + - name: creditAccounts
16 type: 16 type:
17 - schema: creditAccount 17 + array: creditAccount
18 required: true 18 required: true
@@ -14,5 +14,5 @@ metadata: @@ -14,5 +14,5 @@ metadata:
14 result: 14 result:
15 - name: moneyIncentives 15 - name: moneyIncentives
16 type: 16 type:
17 - schema: moneyIncentives 17 + array: moneyIncentives
18 required: true 18 required: true
  1 +version: v1
  2 +kind: HttpApi
  3 +metadata:
  4 + service: appCooperationApplication
  5 + path: /app/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: /search
  19 + - method: auditCooperationApplication
  20 + route:
  21 + put: /audit
  1 +version: v1
  2 +kind: HttpApi
  3 +metadata:
  4 + service: appCooperationProject
  5 + path: /app/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 + post: /search
  19 + - method: endCooperationProject
  20 + route:
  21 + put: /end
@@ -16,3 +16,9 @@ metadata: @@ -16,3 +16,9 @@ metadata:
16 - method: setNewPassword 16 - method: setNewPassword
17 route: 17 route:
18 post: /set-password 18 post: /set-password
  19 + - method: editPersonalData
  20 + route:
  21 + put: /personal
  22 + - method: getPersonalData
  23 + route:
  24 + get: /personal
  1 +version: v1
  2 +kind: HttpApi
  3 +metadata:
  4 + service: dividendsEstimate
  5 + path: /web/dividends-estimate
  6 + endpoints:
  7 + - method: createDividendsEstimate
  8 + route:
  9 + post: /
  10 + - method: updateDividendsEstimate
  11 + route:
  12 + put: /{estimateId}
  13 + - method: cancelDividendsEstimate
  14 + route:
  15 + post: /cancel
  16 + - method: getDividendsEstimate
  17 + route:
  18 + get: /{estimateId}
  19 + - method: searchDividendsEstimate
  20 + route:
  21 + post: /search
  22 + - method: searchDividendsIncentives
  23 + route:
  24 + post: /dividends-incentives/search
  25 + - method: searchMoneyIncentives
  26 + route:
  27 + post: /money-incentives/search
  28 + - method: estimateMoneyIncentives
  29 + route:
  30 + post: /money-incentives/estimate
  31 + - method: estimateDividendsIncentives
  32 + route:
  33 + post: /dividends-incentives/estimate
  1 +version: v1
  2 +kind: HttpApi
  3 +metadata:
  4 + service: dividendsOrder
  5 + path: /web/dividends-order
  6 + endpoints:
  7 + - method: createDividendsOrder
  8 + route:
  9 + post: /
  10 + - method: updateDividendsOrder
  11 + route:
  12 + put: /{orderId}
  13 + - method: removeDividendsOrder
  14 + route:
  15 + delete: /{orderId}
  16 + - method: getDividendsOrder
  17 + route:
  18 + get: /{orderId}
  19 + - method: searchDividendsOrder
  20 + route:
  21 + post: /search
  1 +version: v1
  2 +kind: HttpApi
  3 +metadata:
  4 + service: dividendsReturnedOrder
  5 + path: /web/dividends-returned-order
  6 + endpoints:
  7 + - method: createDividendsReturnedOrder
  8 + route:
  9 + post: /
  10 + - method: updateDividendsReturnedOrder
  11 + route:
  12 + put: /{projectId}
  13 + - method: removeDividendsReturnedOrder
  14 + route:
  15 + delete: /{projectId}
  16 + - method: getDividendsReturnedOrder
  17 + route:
  18 + get: /{projectId}
  19 + - method: listDividendsReturnedOrder
  20 + route:
  21 + post: /search
@@ -9,4 +9,7 @@ metadata: @@ -9,4 +9,7 @@ metadata:
9 post: /search 9 post: /search
10 - method: menuUpdate 10 - method: menuUpdate
11 route: 11 route:
12 - put: /{menuId} 12 + put: /
  13 + - method: menuFavorite
  14 + route:
  15 + put: /favorite
@@ -4,4 +4,4 @@ metadata: @@ -4,4 +4,4 @@ metadata:
4 name: contractUndertaker 4 name: contractUndertaker
5 description: 共创合约承接人 5 description: 共创合约承接人
6 type: 6 type:
7 - schema: users 7 + schema: usersBase
@@ -4,4 +4,4 @@ metadata: @@ -4,4 +4,4 @@ metadata:
4 name: cooperationApplicationApplicant 4 name: cooperationApplicationApplicant
5 description: 共创申请人 5 description: 共创申请人
6 type: 6 type:
7 - schema: users 7 + schema: usersBase
@@ -4,4 +4,4 @@ metadata: @@ -4,4 +4,4 @@ metadata:
4 name: cooperationApplicationVerifier 4 name: cooperationApplicationVerifier
5 description: 共创申请审核人 5 description: 共创申请审核人
6 type: 6 type:
7 - schema: users 7 + schema: usersBase
@@ -4,4 +4,4 @@ metadata: @@ -4,4 +4,4 @@ metadata:
4 name: cooperationContractSponsor 4 name: cooperationContractSponsor
5 description: 共创合约发起人 5 description: 共创合约发起人
6 type: 6 type:
7 - schema: users 7 + schema: usersBase
@@ -4,4 +4,4 @@ metadata: @@ -4,4 +4,4 @@ metadata:
4 name: cooperationProjectSponsor 4 name: cooperationProjectSponsor
5 description: 共创项目发起人 5 description: 共创项目发起人
6 type: 6 type:
7 - schema: users 7 + schema: usersBase
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: actuallyPaidAmount
  5 + description: 账期结算实付金额
  6 + type:
  7 + primitive: float64
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: creditAccountId
  5 + description: 账期结算单ID
  6 + type:
  7 + primitive: int64
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: creditAccountOrderNum
  5 + description: 账期结算单号
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: paymentDocumentAttachment
  5 + description: 支付凭证附件
  6 + type:
  7 + schema: attachment
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: paymentStatus
  5 + description: 共创账期结算支付状态,1待支付,2已支付
  6 + type:
  7 + primitive: int32
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: paymentTime
  5 + description: 共创账期结算支付时间
  6 + type:
  7 + primitive: datetime
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: settlementAmount
  5 + description: 账期结算金额
  6 + type:
  7 + primitive: float64
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: settlementTime
  5 + description: 共创账期结算时间
  6 + type:
  7 + primitive: datetime
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: dividendsAccountStatus
  5 + description: 分红结算状态,1待结算,2已结算
  6 + type:
  7 + primitive: int32
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: dividendsAmount
  5 + description: 分红金额
  6 + type:
  7 + primitive: float64
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: dividendsEstimateId
  5 + description: 承接人分红预算记录ID
  6 + type:
  7 + primitive: int64
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: dividendsEstimateOrderNumber
  5 + description: 承接人分红预算单号
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: dividendsEstimateTime
  5 + description: 分红预算时间
  6 + type:
  7 + primitive: datetime
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: dividendsParticipateType
  5 + description: 参与分红类型,1承接人,2推荐人,3关联业务员
  6 + type:
  7 + primitive: int32
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: dividendsType
  5 + description: 分红类型,1订单分红,2退货冲销,3金额激励
  6 + type:
  7 + primitive: int32
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: dividendsUser
  5 + description: 分红用户
  6 + type:
  7 + schema: usersBase
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: orderOrReturnedOrderNum
  5 + description: 分红订单号或退货单号
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: dividendsIncentivesAmount
  5 + description: 业绩激励分红金额
  6 + type:
  7 + primitive: float64
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: avator
  5 + description: 头像
  6 + type:
  7 + primitive: string
  1 +swagger: "2.0"
  2 +info:
  3 + title: ""
  4 + description: 数据聚合、转发,权限校验
  5 + contact:
  6 + name: ""
  7 + email: ""
  8 + home: ""
  9 + version: 0.0.1
  10 +paths: {}
@@ -33,7 +33,7 @@ metadata: @@ -33,7 +33,7 @@ metadata:
33 - name: referrerUser 33 - name: referrerUser
34 description: 推荐人信息 34 description: 推荐人信息
35 type: 35 type:
36 - schema: users 36 + schema: usersBase
37 - name: hasSalesman 37 - name: hasSalesman
38 description: 是否有关联业务员 38 description: 是否有关联业务员
39 type: 39 type:
@@ -26,7 +26,7 @@ metadata: @@ -26,7 +26,7 @@ metadata:
26 - name: undertaker 26 - name: undertaker
27 description: 承接人信息 27 description: 承接人信息
28 type: 28 type:
29 - schema: users 29 + schema: contractUndertaker
30 - ref: orgId 30 - ref: orgId
31 required: true 31 required: true
32 - ref: orgName 32 - ref: orgName
@@ -2,33 +2,29 @@ version: v1 @@ -2,33 +2,29 @@ version: v1
2 kind: Schema 2 kind: Schema
3 metadata: 3 metadata:
4 name: cooperationUser 4 name: cooperationUser
5 - description: web页面上共创用户数据展示 5 + description: 共创用户信息
6 attributes: 6 attributes:
7 - - name: usersId  
8 - description: 用户的id  
9 - type:  
10 - primitive: int64  
11 - - name: usersCode  
12 - description: 用户编号  
13 - type:  
14 - primitive: string  
15 - - name: usersName  
16 - description: 用户名称  
17 - type:  
18 - primitive: string  
19 - - name: cooperationCompany  
20 - description: 共创公司 7 + - ref: phone
  8 + required: true
  9 + - ref: status
  10 + required: true
  11 + - name: statusName
  12 + description: 状态描述
21 type: 13 type:
22 primitive: string 14 primitive: string
23 - - name: cooperationDeadline  
24 - description: 共创到期时间 (yyyy-MM-dd)  
25 - type:  
26 - primitive: datetime  
27 - - name: enableStatus  
28 - description: 启用状态(启用:1 禁用:2) 15 + - ref: usersCode
  16 + required: true
  17 + - ref: usersId
  18 + required: true
  19 + - ref: usersName
  20 + required: true
  21 + - name: org
  22 + description: 用户的组织
29 type: 23 type:
30 - primitive: int  
31 - - name: email  
32 - description: 邮箱  
33 - type:  
34 - primitive: string 24 + schema: orgsBase
  25 + - ref: cooperationCompany
  26 + required: true
  27 + - ref: cooperationDeadline
  28 + required: true
  29 + - ref: email
  30 + required: true
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: creditAccount
  5 + description: 账期结算单实体
  6 + attributes:
  7 + - ref: creditAccountId
  8 + required: true
  9 + - ref: actuallyPaidAmount
  10 + required: true
  11 + - ref: creditAccountOrderNum
  12 + required: true
  13 + - ref: paymentStatus
  14 + description: 账期结算支付状态,1待支付,2已支付
  15 + required: true
  16 + - ref: paymentTime
  17 + required: true
  18 + - ref: settlementAmount
  19 + required: true
  20 + - ref: settlementTime
  21 + required: true
  22 + - ref: cooperationContractNumber
  23 + required: true
  24 + - name: participator
  25 + description: 参与人uid,包括承接人、推荐人、关联业务员
  26 + required: true
  27 + type:
  28 + array: int64
  29 + - ref: paymentDocumentAttachment
  30 + description: 支付凭证附件
  31 + required: true
  32 + - name: organization
  33 + description: 数据关联组织机构
  34 + type:
  35 + schema: orgsBase
  36 + - ref: companyId
  37 + required: true
  38 + - ref: operator
  39 + required: true
  40 + - ref: operateTime
  41 + required: true
  42 + - ref: createdAt
  43 + required: true
  44 + - ref: deletedAt
  45 + required: true
  46 + - ref: updatedAt
  47 + required: true
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: department
  5 + description: 部门
  6 + attributes:
  7 + - ref: orgId
  8 + required: true
  9 + - ref: orgName
  10 + required: true
  11 + - ref: orgCode
  12 + required: true
  13 + - ref: parentId
  14 + required: true
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: dividendsEstimate
  5 + description: 分红预算实体
  6 + attributes:
  7 + - ref: dividendsEstimateId
  8 + required: true
  9 + - ref: dividendsAccountStatus
  10 + description: 分红结算状态
  11 + required: true
  12 + - ref: dividendsAmount
  13 + required: true
  14 + - ref: dividendsEstimateOrderNumber
  15 + required: true
  16 + - ref: dividendsEstimateTime
  17 + required: true
  18 + - ref: dividendsParticipateType
  19 + required: true
  20 + - ref: dividendsType
  21 + required: true
  22 + - ref: orderOrReturnedOrderNum
  23 + required: true
  24 + - ref: cooperationProjectNumber
  25 + required: true
  26 + - ref: dividendsUser
  27 + required: true
  28 + - name: organization
  29 + description: 数据关联组织机构
  30 + type:
  31 + schema: orgsBase
  32 + - ref: companyId
  33 + required: true
  34 + - ref: operator
  35 + required: true
  36 + - ref: operateTime
  37 + required: true
  38 + - ref: createdAt
  39 + required: true
  40 + - ref: deletedAt
  41 + required: true
  42 + - ref: updatedAt
  43 + required: true
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: dividendsIncentives
  5 + description: 业绩分红DTO
  6 + attributes:
  7 + - ref: cooperationContractNumber
  8 + required: true
  9 + - ref: orderOrReturnedOrderNum
  10 + required: true
  11 + - ref: originalOrderNum
  12 + required: true
  13 + - ref: customerName
  14 + required: true
  15 + - ref: region
  16 + required: true
  17 + - ref: dividendsIncentivesAmount
  18 + required: true
  19 + - ref: orderTime
  20 + description: 订单/退货单日期
  21 + required: true
@@ -10,6 +10,8 @@ metadata: @@ -10,6 +10,8 @@ metadata:
10 required: true 10 required: true
11 - ref: menuName 11 - ref: menuName
12 required: true 12 required: true
  13 + - ref: menuAlias
  14 + required: true
13 - ref: code 15 - ref: code
14 required: true 16 required: true
15 - ref: accessCode 17 - ref: accessCode
@@ -26,10 +28,6 @@ metadata: @@ -26,10 +28,6 @@ metadata:
26 description: 菜单类别 (web:1、app:2) 28 description: 菜单类别 (web:1、app:2)
27 type: 29 type:
28 primitive: string 30 primitive: string
29 - - name: parentPath  
30 - description: 父级节点路径("0,11,12,")  
31 - type:  
32 - primitive: string  
33 - ref: enableStatus 31 - ref: enableStatus
34 description: 启用状态(启用:1 禁用:0) 32 description: 启用状态(启用:1 禁用:0)
35 required: true 33 required: true
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: menuBase
  5 + description: 系统菜单基础信息
  6 + attributes:
  7 + - ref: menuId
  8 + required: true
  9 + - ref: parentId
  10 + required: true
  11 + - ref: menuName
  12 + required: true
  13 + - ref: menuType
  14 + required: true
  15 + - ref: sort
  16 + required: true
  17 + description: 菜单类别 (web:1、app:2)
  18 + type:
  19 + primitive: string
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: moneyIncentives
  5 + description: 金额激励分红DTO
  6 + attributes:
  7 + - ref: cooperationContractNumber
  8 + required: true
  9 + - ref: cooperationContractName
  10 + required: true
  11 + - ref: cooperationMode
  12 + required: true
  13 + - ref: cooperationContractSponsor
  14 + required: true
  15 + - ref: createdAt
  16 + description: 共创合约建立时间
  17 + required: true
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: orgsBase
  5 + description: 组织organization基础值对象
  6 + attributes:
  7 + - ref: orgId
  8 + required: true
  9 + - ref: orgCode
  10 + required: true
  11 + - ref: orgName
  12 + required: true
@@ -14,11 +14,5 @@ metadata: @@ -14,11 +14,5 @@ metadata:
14 required: true 14 required: true
15 - ref: roleName 15 - ref: roleName
16 required: true 16 required: true
17 - - ref: accessMenus  
18 - required: true  
19 - ref: desc 17 - ref: desc
20 required: true 18 required: true
21 - - ref: createdAt  
22 - required: true  
23 - - ref: updatedAt  
24 - required: true  
@@ -10,7 +10,7 @@ metadata: @@ -10,7 +10,7 @@ metadata:
10 required: true 10 required: true
11 - ref: updatedAt 11 - ref: updatedAt
12 required: true 12 required: true
13 - - ref: avatar 13 + - ref: avator
14 required: true 14 required: true
15 - ref: cooperationCompany 15 - ref: cooperationCompany
16 required: true 16 required: true
@@ -36,10 +36,8 @@ metadata: @@ -36,10 +36,8 @@ metadata:
36 required: true 36 required: true
37 - ref: companyId 37 - ref: companyId
38 required: true 38 required: true
39 - - ref: companyName  
40 - ref: orgId 39 - ref: orgId
41 required: true 40 required: true
42 - - ref: orgName  
43 - ref: usersName 41 - ref: usersName
44 required: true 42 required: true
45 - ref: usersOrg 43 - ref: usersOrg
@@ -18,12 +18,11 @@ metadata: @@ -18,12 +18,11 @@ metadata:
18 required: true 18 required: true
19 - ref: usersName 19 - ref: usersName
20 required: true 20 required: true
21 - - ref: email  
22 - required: true  
23 - - ref: companyId  
24 - required: true  
25 - - ref: companyName  
26 - required: true  
27 - - ref: orgId  
28 - required: true  
29 - - ref: orgName 21 + - name: org
  22 + description: 用户的组织
  23 + type:
  24 + schema: orgsBase
  25 + - name: department
  26 + description: 用户的部门
  27 + type:
  28 + schema: department
@@ -29,7 +29,7 @@ metadata: @@ -29,7 +29,7 @@ metadata:
29 - name: user 29 - name: user
30 description: 用户信息 30 description: 用户信息
31 type: 31 type:
32 - schema: users 32 + schema: usersBase
33 - name: orgs 33 - name: orgs
34 description: 可选组织列表 34 description: 可选组织列表
35 type: 35 type:
@@ -33,7 +33,7 @@ metadata: @@ -33,7 +33,7 @@ metadata:
33 - name: user 33 - name: user
34 description: 用户信息 34 description: 用户信息
35 type: 35 type:
36 - schema: users 36 + schema: usersBase
37 - name: orgs 37 - name: orgs
38 description: 可选组织列表 38 description: 可选组织列表
39 type: 39 type:
@@ -5,7 +5,7 @@ metadata: @@ -5,7 +5,7 @@ metadata:
5 type: command 5 type: command
6 description: 编辑个人资料 6 description: 编辑个人资料
7 payload: 7 payload:
8 - - name: avatar 8 + - name: avator
9 description: 头像地址 9 description: 头像地址
10 type: 10 type:
11 primitive: string 11 primitive: string
@@ -14,7 +14,7 @@ metadata: @@ -14,7 +14,7 @@ metadata:
14 type: 14 type:
15 primitive: string 15 primitive: string
16 result: 16 result:
17 - - name: avatar 17 + - name: avator
18 description: 头像地址 18 description: 头像地址
19 type: 19 type:
20 primitive: string 20 primitive: string
1 version: v1 1 version: v1
2 kind: Method 2 kind: Method
3 metadata: 3 metadata:
4 - name: editPersonalData 4 + name: getPersonalData
5 type: query 5 type: query
6 description: 获取个人资料 6 description: 获取个人资料
7 payload: 7 payload:
@@ -10,7 +10,11 @@ metadata: @@ -10,7 +10,11 @@ metadata:
10 type: 10 type:
11 primitive: int64 11 primitive: int64
12 result: 12 result:
13 - - name: avatar 13 + - name: userId
  14 + description: 用户id
  15 + type:
  16 + primitive: int64
  17 + - name: avator
14 description: 头像地址 18 description: 头像地址
15 type: 19 type:
16 primitive: string 20 primitive: string
  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 + - name: undertakerUid
  12 + description: 承接人UID
  13 + type:
  14 + primitive: string
  15 + result:
  16 + - name: dividendsEstimate
  17 + type:
  18 + schema: dividendsEstimate
  19 + 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: listDividendsIncentives
  5 + type: query
  6 + description: 返回业绩激励分红
  7 + payload:
  8 + - ref: offset
  9 + required: true
  10 + - ref: limit
  11 + required: true
  12 + result:
  13 + - name: dividendsIncentives
  14 + type:
  15 + array: dividendsIncentives
  16 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: listMoneyIncentives
  5 + type: query
  6 + description: 返回金额激励分红
  7 + payload:
  8 + - ref: offset
  9 + required: true
  10 + - ref: limit
  11 + required: true
  12 + result:
  13 + - name: moneyIncentives
  14 + type:
  15 + schema: moneyIncentives
  16 + 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: searchDividendsIncentives
  5 + type: query
  6 + description: 查询业绩分红
  7 + payload:
  8 + - ref: cooperationContractNumber
  9 + description: 合约编号
  10 + required: false
  11 + - ref: orderOrReturnedOrderNum
  12 + description: 分红订单号/退货单号
  13 + required: false
  14 + result:
  15 + - name: dividendsIncentives
  16 + type:
  17 + schema: dividendsIncentives
  18 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: searchMoneyIncentives
  5 + type: query
  6 + description: 查询金额激励分红
  7 + payload:
  8 + - ref: cooperationContractName
  9 + description: 共创合约名称
  10 + required: false
  11 + result:
  12 + - name: moneyIncentives
  13 + type:
  14 + schema: moneyIncentives
  15 + 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: 分红预算管理
@@ -33,4 +33,4 @@ metadata: @@ -33,4 +33,4 @@ metadata:
33 - name: user 33 - name: user
34 description: 用户信息 34 description: 用户信息
35 type: 35 type:
36 - schema: users 36 + schema: usersBase
@@ -21,4 +21,4 @@ metadata: @@ -21,4 +21,4 @@ metadata:
21 - name: orgs 21 - name: orgs
22 description: 可选组织列表 22 description: 可选组织列表
23 type: 23 type:
24 - array: orgs 24 + array: orgsBase
1 version: v1 1 version: v1
2 kind: Method 2 kind: Method
3 metadata: 3 metadata:
4 - name: menuUpdate  
5 - type: query 4 + name: menuFavorite
  5 + type: command
6 description: 设置收藏菜单 6 description: 设置收藏菜单
7 payload: 7 payload:
8 - ref: companyId 8 - ref: companyId
9 required: true 9 required: true
10 - - ref: menuId  
11 - required: true 10 + - name: menuId
  11 + description: 对应菜单的id
  12 + type:
  13 + array: int64
12 result: 14 result:
13 - name: menusId 15 - name: menusId
14 type: 16 type:
@@ -7,5 +7,5 @@ metadata: @@ -7,5 +7,5 @@ metadata:
7 result: 7 result:
8 - name: menus 8 - name: menus
9 type: 9 type:
10 - array: menu 10 + array: menuBase
11 required: true 11 required: true
@@ -16,5 +16,5 @@ metadata: @@ -16,5 +16,5 @@ metadata:
16 result: 16 result:
17 - name: menus 17 - name: menus
18 type: 18 type:
19 - schema: menu 19 + schema: menuBase
20 required: true 20 required: true
@@ -14,7 +14,7 @@ metadata: @@ -14,7 +14,7 @@ metadata:
14 required: true 14 required: true
15 - name: menus 15 - name: menus
16 type: 16 type:
17 - array: menu 17 + array: menuBase
18 - name: users 18 - name: users
19 type: 19 type:
20 - array: users 20 + array: usersBase
@@ -14,4 +14,4 @@ metadata: @@ -14,4 +14,4 @@ metadata:
14 required: true 14 required: true
15 - name: menus 15 - name: menus
16 type: 16 type:
17 - array: menu 17 + array: menuBase
@@ -11,4 +11,4 @@ metadata: @@ -11,4 +11,4 @@ metadata:
11 required: true 11 required: true
12 - name: orgs 12 - name: orgs
13 type: 13 type:
14 - array: orgs 14 + array: orgsBase
@@ -15,8 +15,8 @@ metadata: @@ -15,8 +15,8 @@ metadata:
15 - name: roleUser 15 - name: roleUser
16 description: 关联的用户 16 description: 关联的用户
17 type: 17 type:
18 - schema: users 18 + schema: usersBase
19 - name: notInRoleUser 19 - name: notInRoleUser
20 description: 未关联的用户列表 20 description: 未关联的用户列表
21 type: 21 type:
22 - array: users 22 + array: usersBase
@@ -10,13 +10,13 @@ metadata: @@ -10,13 +10,13 @@ metadata:
10 result: 10 result:
11 - name: user 11 - name: user
12 type: 12 type:
13 - schema: users 13 + schema: usersBase
14 - name: userOrg 14 - name: userOrg
15 type: 15 type:
16 - array: orgs 16 + array: orgsBase
17 - name: userRole 17 - name: userRole
18 type: 18 type:
19 array: roles 19 array: roles
20 - name: userMenu 20 - name: userMenu
21 type: 21 type:
22 - array: menu 22 + array: menuBase
@@ -27,7 +27,7 @@ metadata: @@ -27,7 +27,7 @@ metadata:
27 description: 关联的用户 27 description: 关联的用户
28 type: 28 type:
29 array: int64 29 array: int64
30 - - ref: avatar 30 + - ref: avator
31 required: true 31 required: true
32 result: 32 result:
33 - name: usersId 33 - name: usersId
@@ -3,7 +3,7 @@ kind: Method @@ -3,7 +3,7 @@ kind: Method
3 metadata: 3 metadata:
4 name: companyUserEnable 4 name: companyUserEnable
5 type: command 5 type: command
6 - description: 启用禁用用户信息 6 + description: 启用禁用公司用户信息
7 payload: 7 payload:
8 - name: usersIds 8 - name: usersIds
9 type: 9 type:
@@ -14,5 +14,5 @@ metadata: @@ -14,5 +14,5 @@ metadata:
14 required: true 14 required: true
15 - name: userList 15 - name: userList
16 type: 16 type:
17 - array: users 17 + array: usersBase
18 required: true 18 required: true
@@ -45,7 +45,7 @@ metadata: @@ -45,7 +45,7 @@ metadata:
45 description: 关联的组织结构 45 description: 关联的组织结构
46 type: 46 type:
47 array: int64 47 array: int64
48 - - name: avatar 48 + - name: avator
49 description: 头像 49 description: 头像
50 type: 50 type:
51 primitive: string 51 primitive: string
@@ -3,7 +3,7 @@ kind: Method @@ -3,7 +3,7 @@ kind: Method
3 metadata: 3 metadata:
4 name: cooperationUserEnable 4 name: cooperationUserEnable
5 type: command 5 type: command
6 - description: 启用禁用用户信息 6 + description: 启用禁用共创用户信息
7 payload: 7 payload:
8 - name: usersIds 8 - name: usersIds
9 type: 9 type:
@@ -11,4 +11,4 @@ metadata: @@ -11,4 +11,4 @@ metadata:
11 - name: user 11 - name: user
12 description: 共创用户信息 12 description: 共创用户信息
13 type: 13 type:
14 - schema: users 14 + schema: cooperationUser
@@ -14,5 +14,5 @@ metadata: @@ -14,5 +14,5 @@ metadata:
14 required: true 14 required: true
15 - name: userList 15 - name: userList
16 type: 16 type:
17 - array: users 17 + array: cooperationUser
18 required: true 18 required: true