正在显示
15 个修改的文件
包含
171 行增加
和
9 行删除
document/partner01/api/http/user.yaml
0 → 100644
1 | +version: v1 | ||
2 | +kind: HttpApi | ||
3 | +metadata: | ||
4 | + service: user | ||
5 | + path: /users | ||
6 | + endpoints: | ||
7 | + - method: createUser | ||
8 | + route: | ||
9 | + post: / | ||
10 | + - method: updateUser | ||
11 | + route: | ||
12 | + put: /{userId} | ||
13 | + - method: getUser | ||
14 | + route: | ||
15 | + get: /{userId} | ||
16 | + - method: removeUser | ||
17 | + route: | ||
18 | + delete: /{userId} | ||
19 | + - method: listUser | ||
20 | + route: | ||
21 | + get: / | ||
22 | + params: | ||
23 | + - name: offset | ||
24 | + - name: limit |
@@ -14,10 +14,16 @@ metadata: | @@ -14,10 +14,16 @@ metadata: | ||
14 | required: true | 14 | required: true |
15 | - ref: userInfo | 15 | - ref: userInfo |
16 | required: true | 16 | required: true |
17 | + - name: partnerInfo | ||
18 | + description: 合伙人信息 | ||
19 | + type: | ||
20 | + schema: partnerInfo | ||
17 | - ref: status | 21 | - ref: status |
18 | required: true | 22 | required: true |
19 | - - ref: isSenior | 23 | + - ref: adminType |
20 | required: true | 24 | required: true |
25 | + - ref: status | ||
26 | + required: true | ||
21 | - ref: accessPartners | 27 | - ref: accessPartners |
22 | required: true | 28 | required: true |
23 | - ref: createAt | 29 | - ref: createAt |
@@ -27,7 +27,7 @@ metadata: | @@ -27,7 +27,7 @@ metadata: | ||
27 | primitive: string | 27 | primitive: string |
28 | result: | 28 | result: |
29 | - name: users | 29 | - name: users |
30 | - description: Attribute描述 | 30 | + description: 用户信息列表 |
31 | type: | 31 | type: |
32 | array: user | 32 | array: user |
33 | - name: credentials | 33 | - name: credentials |
1 | version: v1 | 1 | version: v1 |
2 | kind: Method | 2 | kind: Method |
3 | metadata: | 3 | metadata: |
4 | - name: company | 4 | + name: companyProfile |
5 | type: query | 5 | type: query |
6 | - description: 查询公司基础统计数据 | 6 | + description: 公司基础统计数据 |
7 | payload: | 7 | payload: |
8 | - ref: companyId | 8 | - ref: companyId |
9 | required: true | 9 | required: true |
@@ -5,6 +5,8 @@ metadata: | @@ -5,6 +5,8 @@ metadata: | ||
5 | type: query | 5 | type: query |
6 | description: 订单分红统计 | 6 | description: 订单分红统计 |
7 | payload: | 7 | payload: |
8 | + - ref: userId | ||
9 | + required: true | ||
8 | - name: startTime | 10 | - name: startTime |
9 | description: 开始时间 | 11 | description: 开始时间 |
10 | type: | 12 | type: |
@@ -13,6 +15,10 @@ metadata: | @@ -13,6 +15,10 @@ metadata: | ||
13 | description: 结束时间 | 15 | description: 结束时间 |
14 | type: | 16 | type: |
15 | primitive: int | 17 | primitive: int |
18 | + - name: partnerCategoryId | ||
19 | + description: 订单合伙类型 | ||
20 | + type: | ||
21 | + primitive: int | ||
16 | result: | 22 | result: |
17 | - name: statistics | 23 | - name: statistics |
18 | description: 统计数据 | 24 | description: 统计数据 |
1 | version: v1 | 1 | version: v1 |
2 | kind: Method | 2 | kind: Method |
3 | metadata: | 3 | metadata: |
4 | - name: order | 4 | + name: orderProfile |
5 | type: query | 5 | type: query |
6 | description: 订单统计 | 6 | description: 订单统计 |
7 | payload: | 7 | payload: |
8 | + - ref: userId | ||
9 | + required: true | ||
8 | result: | 10 | result: |
9 | - name: statistics | 11 | - name: statistics |
10 | description: 统计数据 | 12 | description: 统计数据 |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: createUser | ||
5 | + type: command | ||
6 | + description: 创建 | ||
7 | + payload: | ||
8 | + - ref: userTypes | ||
9 | + required: true | ||
10 | + - ref: adminType | ||
11 | + required: true | ||
12 | + - ref: status | ||
13 | + required: true | ||
14 | + - name: userInfo | ||
15 | + description: 用户信息 | ||
16 | + type: | ||
17 | + schema: userInfo | ||
18 | + required: true | ||
19 | + - name: partnerInfo | ||
20 | + description: 合伙人信息 | ||
21 | + type: | ||
22 | + schema: partnerInfo | ||
23 | + required: false | ||
24 | + - name: accessPartners | ||
25 | + description: 可查看合伙人列表 | ||
26 | + type: | ||
27 | + array: int64 | ||
28 | + required: false | ||
29 | + result: | ||
30 | + - name: user | ||
31 | + type: | ||
32 | + schema: user |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: updateUser | ||
5 | + type: command | ||
6 | + description: 更新 | ||
7 | + payload: | ||
8 | + - ref: userId | ||
9 | + required: true | ||
10 | + - ref: userTypes | ||
11 | + required: false | ||
12 | + - ref: adminType | ||
13 | + required: false | ||
14 | + - ref: status | ||
15 | + required: false | ||
16 | + - name: userInfo | ||
17 | + description: 用户信息 | ||
18 | + type: | ||
19 | + schema: userInfo | ||
20 | + required: false | ||
21 | + - name: partnerInfo | ||
22 | + description: 合伙人信息 | ||
23 | + type: | ||
24 | + schema: partnerInfo | ||
25 | + required: false | ||
26 | + - name: accessPartners | ||
27 | + description: 可查看合伙人列表 | ||
28 | + type: | ||
29 | + array: int64 | ||
30 | + required: false | ||
31 | + result: | ||
32 | + - name: user | ||
33 | + type: | ||
34 | + schema: user |
-
请 注册 或 登录 后发表评论