正在显示
30 个修改的文件
包含
367 行增加
和
6 行删除
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 | ||
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: 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: 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: 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: 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 |
-
请 注册 或 登录 后发表评论