正在显示
13 个修改的文件
包含
40 行增加
和
35 行删除
@@ -2,17 +2,20 @@ version: v1 | @@ -2,17 +2,20 @@ version: v1 | ||
2 | kind: HttpApi | 2 | kind: HttpApi |
3 | metadata: | 3 | metadata: |
4 | service: auth | 4 | service: auth |
5 | - path: /auths | 5 | + path: /auth |
6 | endpoints: | 6 | endpoints: |
7 | - method: companySignUp | 7 | - method: companySignUp |
8 | route: | 8 | route: |
9 | post: /company-sign-up | 9 | post: /company-sign-up |
10 | - method: phoneAuthCheck | 10 | - method: phoneAuthCheck |
11 | route: | 11 | route: |
12 | - post: /phone-auth/check | 12 | + post: /check-password |
13 | - method: phoneAuthResetPassword | 13 | - method: phoneAuthResetPassword |
14 | route: | 14 | route: |
15 | - post: /phone-auth/reset-password | 15 | + post: /reset-password |
16 | + - method: phoneAuthResetPhone | ||
17 | + route: | ||
18 | + post: /reset-phone | ||
16 | - method: destoryAccount | 19 | - method: destoryAccount |
17 | route: | 20 | route: |
18 | post: /destory-account | 21 | post: /destory-account |
@@ -26,12 +26,7 @@ metadata: | @@ -26,12 +26,7 @@ metadata: | ||
26 | - name: menuCategory | 26 | - name: menuCategory |
27 | - method: getUsersProfile | 27 | - method: getUsersProfile |
28 | route: | 28 | route: |
29 | - get: /profile | ||
30 | - params: | ||
31 | - - name: usersId | ||
32 | - - name: phone | ||
33 | - - name: usersBaseId | ||
34 | - - name: usersCode | 29 | + get: /{usersId}/profile |
35 | - method: batchAdd | 30 | - method: batchAdd |
36 | route: | 31 | route: |
37 | post: /batch-add | 32 | post: /batch-add |
@@ -41,9 +36,6 @@ metadata: | @@ -41,9 +36,6 @@ metadata: | ||
41 | - method: batchResetPassword | 36 | - method: batchResetPassword |
42 | route: | 37 | route: |
43 | post: /batch-reset-password | 38 | post: /batch-reset-password |
44 | - - method: updateUsersPhoneAuth | ||
45 | - route: | ||
46 | - put: /{usersId}/phone-auth | ||
47 | - method: updateUsersBase | 39 | - method: updateUsersBase |
48 | route: | 40 | route: |
49 | put: /{usersId}/base-info | 41 | put: /{usersId}/base-info |
@@ -39,7 +39,7 @@ metadata: | @@ -39,7 +39,7 @@ metadata: | ||
39 | type: | 39 | type: |
40 | schema: cooperationInfo | 40 | schema: cooperationInfo |
41 | - name: enableStatus | 41 | - name: enableStatus |
42 | - description: 启用状态(启用:1 禁用:2) | 42 | + description: 状态(1:启用 2:禁用 3:注销) |
43 | type: | 43 | type: |
44 | primitive: int | 44 | primitive: int |
45 | - name: ext | 45 | - name: ext |
1 | version: v1 | 1 | version: v1 |
2 | kind: Method | 2 | kind: Method |
3 | metadata: | 3 | metadata: |
4 | - name: updateUsersPhoneAuth | 4 | + name: phoneAuthResetPhone |
5 | type: command | 5 | type: command |
6 | - description: 手机认证,更新手机号、密码 | 6 | + description: 重置手机号 |
7 | payload: | 7 | payload: |
8 | - - ref: usersId | ||
9 | - required: true | ||
10 | - - ref: phone | ||
11 | - required: false | ||
12 | - - ref: password | ||
13 | - required: false | 8 | + - ref: usersId |
9 | + required: true | ||
10 | + - name: oldPhone | ||
11 | + type: | ||
12 | + primitive: int | ||
13 | + required: true | ||
14 | + - name: newPhone | ||
15 | + type: | ||
16 | + primitive: int | ||
17 | + required: true | ||
14 | result: | 18 | result: |
15 | - - name: code | ||
16 | - type: | ||
17 | - primitive: int | ||
18 | - required: true | ||
19 | - - name: msg | ||
20 | - type: | ||
21 | - primitive: string | ||
22 | - required: true | 19 | + - ref: code |
20 | + required: true | ||
21 | + - ref: msg | ||
22 | + required: true |
@@ -11,6 +11,10 @@ metadata: | @@ -11,6 +11,10 @@ metadata: | ||
11 | required: true | 11 | required: true |
12 | - ref: avator | 12 | - ref: avator |
13 | required: true | 13 | required: true |
14 | + - ref: phone | ||
15 | + required: true | ||
16 | + - ref: email | ||
17 | + required: true | ||
14 | result: | 18 | result: |
15 | - ref: code | 19 | - ref: code |
16 | required: true | 20 | required: true |
@@ -3,7 +3,7 @@ kind: Method | @@ -3,7 +3,7 @@ kind: Method | ||
3 | metadata: | 3 | metadata: |
4 | name: createUsersBase | 4 | name: createUsersBase |
5 | type: command | 5 | type: command |
6 | - description: 创建 | 6 | + description: 创建用户基础数据 |
7 | payload: | 7 | payload: |
8 | - ref: usersBaseId | 8 | - ref: usersBaseId |
9 | required: true | 9 | required: true |
@@ -3,7 +3,7 @@ kind: Method | @@ -3,7 +3,7 @@ kind: Method | ||
3 | metadata: | 3 | metadata: |
4 | name: removeUsersBase | 4 | name: removeUsersBase |
5 | type: command | 5 | type: command |
6 | - description: 移除 | 6 | + description: 移除用户基础数据 |
7 | payload: | 7 | payload: |
8 | - ref: usersBaseId | 8 | - ref: usersBaseId |
9 | required: true | 9 | required: true |
@@ -3,7 +3,7 @@ kind: Method | @@ -3,7 +3,7 @@ kind: Method | ||
3 | metadata: | 3 | metadata: |
4 | name: updateUsersBase | 4 | name: updateUsersBase |
5 | type: command | 5 | type: command |
6 | - description: 更新 | 6 | + description: 更新用户基础数据 |
7 | payload: | 7 | payload: |
8 | - ref: usersBaseId | 8 | - ref: usersBaseId |
9 | required: true | 9 | required: true |
-
请 注册 或 登录 后发表评论