正在显示
76 个修改的文件
包含
711 行增加
和
78 行删除
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 |
@@ -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: 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 |
@@ -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 |
@@ -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 |
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,6 +10,10 @@ metadata: | @@ -10,6 +10,10 @@ metadata: | ||
10 | type: | 10 | type: |
11 | primitive: int64 | 11 | primitive: int64 |
12 | result: | 12 | result: |
13 | + - name: userId | ||
14 | + description: 用户id | ||
15 | + type: | ||
16 | + primitive: int64 | ||
13 | - name: avator | 17 | - name: avator |
14 | description: 头像地址 | 18 | description: 头像地址 |
15 | type: | 19 | type: |
allied-creation-gateway/services/dividendsEstimate/methods/estimateDividendsIncentives.yaml
0 → 100644
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: 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: 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 |
allied-creation-gateway/services/dividendsEstimate/methods/searchDividendsIncentives.yaml
0 → 100644
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 | 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: |
@@ -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 |
@@ -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: |
-
请 注册 或 登录 后发表评论