作者 yangfu

微调

... ... @@ -2,17 +2,20 @@ version: v1
kind: HttpApi
metadata:
service: auth
path: /auths
path: /auth
endpoints:
- method: companySignUp
route:
post: /company-sign-up
- method: phoneAuthCheck
route:
post: /phone-auth/check
post: /check-password
- method: phoneAuthResetPassword
route:
post: /phone-auth/reset-password
post: /reset-password
- method: phoneAuthResetPhone
route:
post: /reset-phone
- method: destoryAccount
route:
post: /destory-account
... ...
... ... @@ -26,12 +26,7 @@ metadata:
- name: menuCategory
- method: getUsersProfile
route:
get: /profile
params:
- name: usersId
- name: phone
- name: usersBaseId
- name: usersCode
get: /{usersId}/profile
- method: batchAdd
route:
post: /batch-add
... ... @@ -41,9 +36,6 @@ metadata:
- method: batchResetPassword
route:
post: /batch-reset-password
- method: updateUsersPhoneAuth
route:
put: /{usersId}/phone-auth
- method: updateUsersBase
route:
put: /{usersId}/base-info
... ...
... ... @@ -39,7 +39,7 @@ metadata:
type:
schema: cooperationInfo
- name: enableStatus
description: 启用状态(启用:1 禁用:2)
description: 状态(1:启用 2:禁用 3:注销)
type:
primitive: int
- name: ext
... ...
... ... @@ -2,7 +2,7 @@ version: v1
kind: Schema
metadata:
name: usersBase
description: 用户(base)
description: 用户基础
attributes:
- ref: usersBaseId
required: true
... ...
... ... @@ -12,3 +12,7 @@ metadata:
required: true
- ref: avator
required: true
- ref: phone
required: true
- ref: email
required: true
... ...
version: v1
kind: Method
metadata:
name: updateUsersPhoneAuth
name: phoneAuthResetPhone
type: command
description: 手机认证,更新手机号、密码
description: 重置手机号
payload:
- ref: usersId
required: true
- ref: phone
required: false
- ref: password
required: false
result:
- name: code
- name: oldPhone
type:
primitive: int
required: true
- name: msg
- name: newPhone
type:
primitive: string
primitive: int
required: true
result:
- ref: code
required: true
- ref: msg
required: true
... ...
... ... @@ -17,6 +17,8 @@ metadata:
required: false
- ref: depName
required: false
- ref: phone
required: false
result:
- ref: count
required: true
... ...
... ... @@ -11,6 +11,10 @@ metadata:
required: true
- ref: avator
required: true
- ref: phone
required: true
- ref: email
required: true
result:
- ref: code
required: true
... ...
... ... @@ -3,7 +3,7 @@ kind: Method
metadata:
name: createUsersBase
type: command
description: 创建
description: 创建用户基础数据
payload:
- ref: usersBaseId
required: true
... ...
... ... @@ -3,7 +3,7 @@ kind: Method
metadata:
name: getUsersBase
type: query
description: 返回
description: 返回用户基础数据
payload:
- ref: usersBaseId
required: true
... ...
... ... @@ -3,7 +3,7 @@ kind: Method
metadata:
name: listUsersBase
type: query
description: 返回列表
description: 返回用户基础数据列表
payload:
- ref: offset
required: true
... ...
... ... @@ -3,7 +3,7 @@ kind: Method
metadata:
name: removeUsersBase
type: command
description: 移除
description: 移除用户基础数据
payload:
- ref: usersBaseId
required: true
... ...
... ... @@ -3,7 +3,7 @@ kind: Method
metadata:
name: updateUsersBase
type: command
description: 更新
description: 更新用户基础数据
payload:
- ref: usersBaseId
required: true
... ...