正在显示
6 个修改的文件
包含
35 行增加
和
14 行删除
| @@ -13,6 +13,9 @@ metadata: | @@ -13,6 +13,9 @@ metadata: | ||
| 13 | - method: phoneAuthResetPassword | 13 | - method: phoneAuthResetPassword |
| 14 | route: | 14 | route: |
| 15 | post: /reset-password | 15 | post: /reset-password |
| 16 | + - method: phoneAuthChangePassword | ||
| 17 | + route: | ||
| 18 | + post: /change-password | ||
| 16 | - method: phoneAuthResetPhone | 19 | - method: phoneAuthResetPhone |
| 17 | route: | 20 | route: |
| 18 | post: /reset-phone | 21 | post: /reset-phone |
| @@ -10,10 +10,10 @@ metadata: | @@ -10,10 +10,10 @@ metadata: | ||
| 10 | description: 用户信息 | 10 | description: 用户信息 |
| 11 | type: | 11 | type: |
| 12 | schema: usersInfo | 12 | schema: usersInfo |
| 13 | - - name: phoneAuth | ||
| 14 | - description: 手机认证 | ||
| 15 | - type: | ||
| 16 | - schema: phoneAuth | 13 | + - ref: phone |
| 14 | + required: true | ||
| 15 | + - ref: password | ||
| 16 | + required: true | ||
| 17 | - name: im | 17 | - name: im |
| 18 | description: IM信息 | 18 | description: IM信息 |
| 19 | type: | 19 | type: |
| 1 | +version: v1 | ||
| 2 | +kind: Method | ||
| 3 | +metadata: | ||
| 4 | + name: phoneAuthChangePassword | ||
| 5 | + type: command | ||
| 6 | + description: 修改密码 | ||
| 7 | + payload: | ||
| 8 | + - ref: usersId | ||
| 9 | + required: true | ||
| 10 | + - name: oldPassword | ||
| 11 | + description: 旧密码 | ||
| 12 | + type: | ||
| 13 | + primitive: string | ||
| 14 | + required: true | ||
| 15 | + - name: newPassword | ||
| 16 | + description: 新密码 | ||
| 17 | + type: | ||
| 18 | + primitive: string | ||
| 19 | + required: true | ||
| 20 | + result: | ||
| 21 | + - ref: code | ||
| 22 | + required: true | ||
| 23 | + - ref: msg | ||
| 24 | + required: true |
-
请 注册 或 登录 后发表评论