作者 tangxuhui

更新: 共创用户管理

正在显示 18 个修改的文件 包含 261 行增加14 行删除
... ... @@ -4,21 +4,39 @@ metadata:
service: users
path: /users
endpoints:
- method: adddCompanyUsers
- method: companyUserAdd
route:
post: /company-user
- method: updateCompanyUsers
- method: companyUserUpdate
route:
put: /company-user
- method: listCompanyUsers
- method: companyUserList
route:
post: /company-user/search
- method: getCompanyUsers
- method: companyUserGet
route:
get: /company-user/{Id}
- method: enableCompanyUsers
- method: companyUserEnable
route:
put: /company-user/enable
- method: companyUserResetPassword
route:
put: /company-user/reset-password
- method: cooperationUserAdd
route:
post: /cooperation-user
- method: cooperationUserUpdate
route:
put: /cooperation-user
- method: cooperationUserList
route:
post: /cooperation-user/search
- method: cooperationUserGet
route:
get: /cooperation-user/{Id}
- method: cooperationUserEnable
route:
put: /cooperation-user/enable
- method: cooperationUserResetPassword
route:
put: /cooperation-user/reset-password
... ...
version: v1
kind: Schema
metadata:
name: companyUser
description: web页面上公司用户数据展示
attributes:
- name: usersId
description: 用户的id
type:
primitive: int64
- name: usersCode
description: 用户编号
type:
primitive: string
- name: usersName
description: 用户名称
type:
primitive: string
- name: organizationId
description: 组织机构id
type:
primitive: int64
- name: departmentId
description: 部门id
type:
primitive: int64
- name: enableStatus
description: 启用状态(启用:1 禁用:2)
type:
primitive: int
- name: phone
description: 手机号
type:
primitive: string
- name: email
description: 邮箱
type:
primitive: string
- name: usersOrg
description: 关联的组织机构
type:
array: org
- name: usersRole
description: 关联的组织结构
type:
array: role
- name: avator
description: 头像
type:
primitive: string
... ...
version: v1
kind: Schema
metadata:
name: companyUserListItem
description: 用户列表
attributes:
- ref: usersId
required: true
- ref: usersCode
required: true
- name: phone
description: 手机号
type:
primitive: string
- name: departmentName
description: 部门名称
type:
primitive: string
- name: orgName
description: 组织名称
type:
primitive: string
- name: enableStatus
description: 启用状态(启用:1 禁用:2)
type:
primitive: int
- name: enableStatusMsg
description: 启用状态名称
type:
primitive: string
... ...
version: v1
kind: Schema
metadata:
name: cooperationInfo
description: 共创信息
attributes:
- name: cooperationCompany
description: 共创公司
type:
primitive: string
- name: cooperationDeadline
description: 共创到期时间 (yyyy-MM-dd)
type:
primitive: datetime
... ...
version: v1
kind: Schema
metadata:
name: cooperationUser
description: web页面上共创用户数据展示
attributes:
- name: usersId
description: 用户的id
type:
primitive: int64
- name: usersCode
description: 用户编号
type:
primitive: string
- name: usersName
description: 用户名称
type:
primitive: string
- name: cooperationCompany
description: 共创公司
type:
primitive: string
- name: cooperationDeadline
description: 共创到期时间 (yyyy-MM-dd)
type:
primitive: datetime
- name: enableStatus
description: 启用状态(启用:1 禁用:2)
type:
primitive: int
- name: email
description: 邮箱
type:
primitive: string
... ...
... ... @@ -9,7 +9,7 @@ metadata:
type:
primitive: string
- name: platform
description: 对应平台,[web,mobile]
description: 对应平台
type:
primitive: string
- name: companyId
... ...
version: v1
kind: Method
metadata:
name: getCompanyUsers
name: companyUserGet
type: query
description: 获取公司用户信息
payload:
- ref: usersId
required: true
result:
- name: usersId
description: 用户id
type:
primitive: int64
- name: usersCode
description: 用户编号
type:
... ...
version: v1
kind: Method
metadata:
name: adddCompanyUsers
name: companyUserAdd
type: command
description: 创建公司用户信息
payload:
... ...
version: v1
kind: Method
metadata:
name: enableCompanyUsers
name: companyUserEnable
type: command
description: 启用禁用用户信息
payload:
... ...
version: v1
kind: Method
metadata:
name: listCompanyUsers
name: companyUserList
type: query
description: 返回公司用户信息列表
payload:
... ... @@ -14,5 +14,5 @@ metadata:
required: true
- name: userList
type:
array: userListItem
array: companyUserListItem
required: true
... ...
... ... @@ -9,8 +9,6 @@ metadata:
type:
array: int64
required: true
- ref: password
required: true
result:
- name: usersId
type:
... ...
version: v1
kind: Method
metadata:
name: updateCompanyUsers
name: companyUserUpdate
type: command
description: 更新公司用户信息
payload:
... ...
version: v1
kind: Method
metadata:
name: cooperationUserAdd
type: command
description: 创建共创用户信息
payload:
- name: userinfo
description: 共创用户信息
type:
schema: cooperationUser
result:
- name: usersId
type:
primitive: int64
required: true
... ...
version: v1
kind: Method
metadata:
name: cooperationUserEnable
type: command
description: 启用禁用用户信息
payload:
- name: usersIds
type:
array: int64
- name: enableStatus
description: 启用状态(启用:1 禁用:2)
type:
primitive: int
result:
- name: users
type:
schema: users
required: true
... ...
version: v1
kind: Method
metadata:
name: cooperationUserGet
type: query
description: 获取共创用户信息
payload:
- ref: usersId
required: true
result:
- name: userinfo
description: 共创用户信息
type:
schema: cooperationUser
... ...
version: v1
kind: Method
metadata:
name: CooperationUserResetPassword
type: command
description: 批量重置密码
payload:
- name: usersIds
type:
array: int64
required: true
result:
- name: usersId
type:
primitive: int64
required: true
... ...
version: v1
kind: Method
metadata:
name: cooperationUserUpdate
type: command
description: 编辑共创用户信息
payload:
- name: userinfo
description: 共创用户信息
type:
schema: cooperationUser
result:
- name: usersId
type:
primitive: int64
required: true
... ...
version: v1
kind: Method
metadata:
name: cooperationUsersList
type: query
description: 返回共创用户信息列表
payload:
- ref: offset
required: true
- ref: limit
required: true
result:
- ref: count
required: true
- name: userList
type:
array: cooperationUser
required: true
... ...