正在显示
13 个修改的文件
包含
204 行增加
和
0 行删除
document/partner01/api/http/auth.yaml
0 → 100644
1 | +version: v1 | ||
2 | +kind: HttpApi | ||
3 | +metadata: | ||
4 | + service: auth | ||
5 | + path: /auths | ||
6 | + endpoints: | ||
7 | + - method: login | ||
8 | + route: | ||
9 | + post: /login | ||
10 | + - method: loginByCompany | ||
11 | + route: | ||
12 | + post: /loginByCompany | ||
13 | + - method: accessToken | ||
14 | + route: | ||
15 | + post: /accessToken | ||
16 | + - method: refreshToken | ||
17 | + route: | ||
18 | + post: /refreshToken | ||
19 | + - method: sendSmsCode | ||
20 | + route: | ||
21 | + post: /sendSmsCode | ||
22 | + - method: rovoke | ||
23 | + route: | ||
24 | + post: /rovoke | ||
25 | + - method: changePassword | ||
26 | + route: | ||
27 | + post: /changePhonePassword |
document/partner01/api/http/statistics.yaml
0 → 100644
1 | +version: v1 | ||
2 | +kind: HttpApi | ||
3 | +metadata: | ||
4 | + service: statistics | ||
5 | + path: /statisticss | ||
6 | + endpoints: | ||
7 | + - method: companyProfile | ||
8 | + route: | ||
9 | + post: /companyProfile | ||
10 | + - method: orderProfile | ||
11 | + route: | ||
12 | + post: /orderProfile | ||
13 | + - method: orderDividend | ||
14 | + route: | ||
15 | + post: /orderDividend | ||
16 | + - method: partnersProfile | ||
17 | + route: | ||
18 | + post: /partnersProfile |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: changePassword | ||
5 | + type: command | ||
6 | + description: 修改手机号密码 | ||
7 | + payload: | ||
8 | + - name: oldPwd | ||
9 | + description: 旧密码 | ||
10 | + type: | ||
11 | + primitive: string | ||
12 | + - name: newPwd | ||
13 | + description: 新密码 | ||
14 | + type: | ||
15 | + primitive: string | ||
16 | + - name: confirmPwd | ||
17 | + description: 确认密码 | ||
18 | + type: | ||
19 | + primitive: string | ||
20 | + - name: phone | ||
21 | + description: 手机号 | ||
22 | + type: | ||
23 | + primitive: string | ||
24 | + result: | ||
25 | + - name: code | ||
26 | + type: | ||
27 | + primitive: int | ||
28 | + - name: msg | ||
29 | + type: | ||
30 | + primitive: string |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: sendSmsCode | ||
5 | + type: command | ||
6 | + description: 发送验证码 | ||
7 | + payload: | ||
8 | + - name: phone | ||
9 | + description: Attribute描述 | ||
10 | + type: | ||
11 | + primitive: string | ||
12 | + result: | ||
13 | + - name: code | ||
14 | + type: | ||
15 | + primitive: int | ||
16 | + - name: msg | ||
17 | + type: | ||
18 | + primitive: string |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: convertUserStatus | ||
5 | + type: command | ||
6 | + description: 用户状态转换(禁用、启用) | ||
7 | + payload: | ||
8 | + - name: userId | ||
9 | + description: 用户id | ||
10 | + type: | ||
11 | + primitive: int64 | ||
12 | + - ref: status | ||
13 | + required: true | ||
14 | + result: | ||
15 | + - name: code | ||
16 | + type: | ||
17 | + primitive: int | ||
18 | + - name: msg | ||
19 | + type: | ||
20 | + primitive: string |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: setPermisson | ||
5 | + type: command | ||
6 | + description: 设置权限 | ||
7 | + payload: | ||
8 | + - ref: userId | ||
9 | + required: true | ||
10 | + - name: permissons | ||
11 | + description: 权限编码列表 | ||
12 | + type: | ||
13 | + array: int | ||
14 | + result: | ||
15 | + - name: code | ||
16 | + type: | ||
17 | + primitive: int | ||
18 | + - name: msg | ||
19 | + type: | ||
20 | + primitive: string |
-
请 注册 或 登录 后发表评论