作者 yangfu

重置密码 、移除phoneAuth

@@ -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
1 -version: v1  
2 -kind: Schema  
3 -metadata:  
4 - name: phoneAuth  
5 - description: 手机认证  
6 - attributes:  
7 - - ref: phone  
8 - required: true  
9 - - ref: password  
10 - required: true  
@@ -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
@@ -11,6 +11,8 @@ metadata: @@ -11,6 +11,8 @@ metadata:
11 description: 用户列表 11 description: 用户列表
12 type: 12 type:
13 array: users 13 array: users
  14 + - ref: password
  15 + required: true
14 result: 16 result:
15 - name: code 17 - name: code
16 type: 18 type:
@@ -35,6 +35,8 @@ metadata: @@ -35,6 +35,8 @@ metadata:
35 description: 启用状态(启用:1 禁用:2) 35 description: 启用状态(启用:1 禁用:2)
36 type: 36 type:
37 primitive: int 37 primitive: int
  38 + - ref: password
  39 + required: true
38 result: 40 result:
39 - name: users 41 - name: users
40 type: 42 type: