作者 tangxuhui

更新:公司用户管理

version: v1
kind: HttpApi
metadata:
service: users
path: /users
endpoints:
- method: adddCompanyUsers
route:
post: /company-user
- method: updateCompanyUsers
route:
put: /company-user
- method: listCompanyUsers
route:
post: /company-user/search
- method: getCompanyUsers
route:
get: /company-user/{Id}
- method: enableCompanyUsers
route:
put: /company-user/enable
- method: companyUserResetPassword
route:
put: /company-user/reset-password
... ...
version: v1
kind: Method
metadata:
name: createUsers
name: adddCompanyUsers
type: command
description: 创建用户信息
description: 创建公司用户信息
payload:
- name: usersCode
description: 用户编号
... ...
version: v1
kind: Method
metadata:
name: batchResetPassword
name: companyUserResetPassword
type: command
description: 批量重置密码
payload:
... ...
version: v1
kind: Method
metadata:
name: enableUsers
name: enableCompanyUsers
type: command
description: 启用禁用用户信息
payload:
- ref: usersId
required: true
- name: usersIds
type:
array: int64
- name: enableStatus
description: 启用状态(启用:1 禁用:2)
type:
... ...
version: v1
kind: Method
metadata:
name: getUsers
name: getCompanyUsers
type: query
description: 返回用户信息
description: 获取公司用户信息
payload:
- ref: usersId
required: true
... ...
version: v1
kind: Method
metadata:
name: listUsers
name: listCompanyUsers
type: query
description: 返回用户信息列表
description: 返回公司用户信息列表
payload:
- ref: offset
required: true
... ...
version: v1
kind: Method
metadata:
name: updateUsers
name: updateCompanyUsers
type: command
description: 更新用户信息
description: 更新公司用户信息
payload:
- name: usersId
type:
... ...