作者 yangfu

重置密码 、移除phoneAuth

... ... @@ -13,6 +13,9 @@ metadata:
- method: phoneAuthResetPassword
route:
post: /reset-password
- method: phoneAuthChangePassword
route:
post: /change-password
- method: phoneAuthResetPhone
route:
post: /reset-phone
... ...
version: v1
kind: Schema
metadata:
name: phoneAuth
description: 手机认证
attributes:
- ref: phone
required: true
- ref: password
required: true
... ... @@ -10,10 +10,10 @@ metadata:
description: 用户信息
type:
schema: usersInfo
- name: phoneAuth
description: 手机认证
type:
schema: phoneAuth
- ref: phone
required: true
- ref: password
required: true
- name: im
description: IM信息
type:
... ...
version: v1
kind: Method
metadata:
name: phoneAuthChangePassword
type: command
description: 修改密码
payload:
- ref: usersId
required: true
- name: oldPassword
description: 旧密码
type:
primitive: string
required: true
- name: newPassword
description: 新密码
type:
primitive: string
required: true
result:
- ref: code
required: true
- ref: msg
required: true
... ...
... ... @@ -11,6 +11,8 @@ metadata:
description: 用户列表
type:
array: users
- ref: password
required: true
result:
- name: code
type:
... ...
... ... @@ -35,6 +35,8 @@ metadata:
description: 启用状态(启用:1 禁用:2)
type:
primitive: int
- ref: password
required: true
result:
- name: users
type:
... ...