作者 yangfu

fix struct

正在显示 45 个修改的文件 包含 633 行增加636 行删除
... ... @@ -3,47 +3,47 @@ kind: HttpApi
metadata:
service: users
path: /users
endpoints:
- method: createUsers
route:
post: /
- method: updateUsers
route:
put: /{usersId}
- method: getUsers
route:
get: /{usersId}
- method: removeUsers
route:
delete: /{usersId}
- method: listUsers
route:
get: /
params:
- name: offset
- name: limit
- method: getUsersAccessMenus
endpoints:
- method: createUsers
route:
post: /
- method: updateUsers
route:
put: /{usersId}
- method: getUsers
route:
get: /{usersId}
- method: removeUsers
route:
delete: /{usersId}
- method: listUsers
route:
get: /
params:
- name: offset
- name: limit
- method: getUsersAccessMenus
route:
get: /access-menus
params:
- name: usersId
- name: menuCategory
- method: getUsersBaseInfo
- method: getUsersBaseInfo
route:
get: /base-info
params:
- name: usersId
- name: phone
- name: usersBaseId
- method: batchAdd
route:
post: /batch-add
- method: batchEnable
route:
post: /batch-enable
- method: batchResetPassword
route:
post: /batch-reset-password
- method: phoneAuth
route:
put: /{usersId}/phone-auth
\ No newline at end of file
- method: batchAdd
route:
post: /batch-add
- method: batchEnable
route:
post: /batch-enable
- method: batchResetPassword
route:
post: /batch-reset-password
- method: phoneAuth
route:
put: /{usersId}/phone-auth
... ...
... ... @@ -5,6 +5,6 @@ metadata:
description: 天联企业管理系统
version: 0.0.1
repository: gitlab.fjmaimaimai.com/allied-creation/allied-creation-user
contact:
name:
email:
\ No newline at end of file
contact:
name:
email:
... ...
... ... @@ -4,29 +4,29 @@ metadata:
name: app
description: app项目管理
attributes:
- name: appId
description: appId
type:
primitive: int64
- name: project
description: 项目标识 ability
type:
primitive: string
- name: app
description: 应用标识 ability.boss.pad
type:
primitive: string
- name: icon
description: 图标地址
type:
primitive: string
- name: remark
description: 备注信息
type:
primitive: string
- ref: createAt
required: true
- ref: updateAt
required: true
- ref: deleteAt
required: true
\ No newline at end of file
- name: appId
description: appId
type:
primitive: int64
- name: project
description: 项目标识 ability
type:
primitive: string
- name: app
description: 应用标识 ability.boss.pad
type:
primitive: string
- name: icon
description: 图标地址
type:
primitive: string
- name: remark
description: 备注信息
type:
primitive: string
- ref: createAt
required: true
- ref: updateAt
required: true
- ref: deleteAt
required: true
... ...
... ... @@ -4,29 +4,29 @@ metadata:
name: appVersion
description: App版本管理
attributes:
- name: appVersionId
description: app版本id
type:
primitive: int64
- name: app
description: 应用
type:
schema: app
- name: os
description: 设备类型 0:IOS 1:安卓
type:
primitive: int
- name: version
description: 版本信息
type:
schema: appVersionInfo
- name: remark
description: 备注信息
type:
primitive: string
- ref: createAt
required: true
- ref: updateAt
required: true
- ref: deleteAt
required: true
- name: appVersionId
description: app版本id
type:
primitive: int64
- name: app
description: 应用
type:
schema: app
- name: os
description: 设备类型 0:IOS 1:安卓
type:
primitive: int
- name: version
description: 版本信息
type:
schema: appVersionInfo
- name: remark
description: 备注信息
type:
primitive: string
- ref: createAt
required: true
- ref: updateAt
required: true
- ref: deleteAt
required: true
... ...
... ... @@ -4,43 +4,43 @@ metadata:
name: appVersionInfo
description: app 版本信息
attributes:
- name: versionNo
description: 版本号
type:
primitive: string
- name: versionName
description: 版本名称
type:
primitive: string
- name: title
description: 标题
type:
primitive: string
- name: summary
description: 版本概要
type:
primitive: string
- name: content
description: 版本内容
type:
primitive: string
- name: deviceType
description: 设备类型 0:ios , 1:android
type:
primitive: int
- name: downloadPage
description: 下载页面
type:
primitive: string
- name: downloadFile
description: 文件下载地址
type:
primitive: string
- name: updateType
description: 更新类型 0不需要更新 1是引导更新 2是强制更新
type:
primitive: int
- name: channel
description: 更新的渠道 当前渠道 0_AppStore、1_fir平台、2_华为、3_小米、4_魅族、5_oppo、6_vivo、7_360、8_百度、9_应用宝、10_其他(使用应用宝地址)
type:
array: int
\ No newline at end of file
- name: versionNo
description: 版本号
type:
primitive: string
- name: versionName
description: 版本名称
type:
primitive: string
- name: title
description: 标题
type:
primitive: string
- name: summary
description: 版本概要
type:
primitive: string
- name: content
description: 版本内容
type:
primitive: string
- name: deviceType
description: 设备类型 0:ios , 1:android
type:
primitive: int
- name: downloadPage
description: 下载页面
type:
primitive: string
- name: downloadFile
description: 文件下载地址
type:
primitive: string
- name: updateType
description: 更新类型 0不需要更新 1是引导更新 2是强制更新
type:
primitive: int
- name: channel
description: 更新的渠道 当前渠道 0_AppStore、1_fir平台、2_华为、3_小米、4_魅族、5_oppo、6_vivo、7_360、8_百度、9_应用宝、10_其他(使用应用宝地址)
type:
array: int
... ...
... ... @@ -4,22 +4,21 @@ metadata:
name: company
description: 企业信息 (base)
attributes:
- ref: companyId
required: true
- name: companyConfig
description: 企业配置信息
type:
schema: companyConfig
- name: companyInfo
description: 企业基本信息
type:
schema: companyInfo
- name: status
description: 公司状态
type:
primitive: int
- ref: createAt
required: false
- ref: updateAt
required: false
- ref: companyId
required: true
- name: companyConfig
description: 企业配置信息
type:
schema: companyConfig
- name: companyInfo
description: 企业基本信息
type:
schema: companyInfo
- name: status
description: 公司状态
type:
primitive: int
- ref: createAt
required: false
- ref: updateAt
required: false
... ...
... ... @@ -4,11 +4,11 @@ metadata:
name: companyConfig
description: 公司配置信息
attributes:
- name: systemName
description: 系统名称
type:
primitive: string
- name: theme
description: 主题
type:
primitive: string
- name: systemName
description: 系统名称
type:
primitive: string
- name: theme
description: 主题
type:
primitive: string
... ...
... ... @@ -4,23 +4,23 @@ metadata:
name: companyInfo
description: 公司信息
attributes:
- ref: companyName
required: true
- ref: scale
required: true
- ref: logo
required: true
- ref: address
required: true
- ref: industryCategory
required: true
- ref: contacts
required: true
- name: registTime
description: 注册时间
type:
primitive: datetime
- name: registStatus
description: 注册状态 1:已注册 2:待认证 3:已认证
type:
primitive: int
\ No newline at end of file
- ref: companyName
required: true
- ref: scale
required: true
- ref: logo
required: true
- ref: address
required: true
- ref: industryCategory
required: true
- ref: contacts
required: true
- name: registTime
description: 注册时间
type:
primitive: datetime
- name: registStatus
description: 注册状态 1:已注册 2:待认证 3:已认证
type:
primitive: int
... ...
... ... @@ -4,11 +4,11 @@ metadata:
name: cooperationInfo
description: 共创信息
attributes:
- name: cooperationCompany
description: 共创公司
type:
primitive: string
- name: cooperationDeadline
description: 共创到期时间 (yyyy-MM-dd)
type:
primitive: datetime
- name: cooperationCompany
description: 共创公司
type:
primitive: string
- name: cooperationDeadline
description: 共创到期时间 (yyyy-MM-dd)
type:
primitive: datetime
... ...
... ... @@ -4,16 +4,16 @@ metadata:
name: ext
description: 冗余附加数据
attributes:
- ref: usersName
required: true
- ref: orgName
required: true
- ref: phone
required: true
- ref: depName
required: true
- name: parentDepName
description: 父级部门名称
type:
primitive: string
required: true
- ref: usersName
required: true
- ref: orgName
required: true
- ref: phone
required: true
- ref: depName
required: true
- name: parentDepName
description: 父级部门名称
type:
primitive: string
required: true
... ...
... ... @@ -4,15 +4,15 @@ metadata:
name: im
description: 冗余附加数据
attributes:
- name: accid
description: 网易云信ID
type:
primitive: string
- name: imToken
description: 网易云信Token
type:
primitive: string
- name: csAccountId
description: 系统分配客服ID
type:
primitive: string
- name: accid
description: 网易云信ID
type:
primitive: string
- name: imToken
description: 网易云信Token
type:
primitive: string
- name: csAccountId
description: 系统分配客服ID
type:
primitive: string
... ...
... ... @@ -5,24 +5,24 @@ metadata:
type: command
description: 企业注册
payload:
- ref: companyName
required: true
- ref: contacts
required: true
- ref: phone
required: true
- ref: scale
required: true
- ref: industryCategory
required: true
- ref: password
required: true
- ref: companyName
required: true
- ref: contacts
required: true
- ref: phone
required: true
- ref: scale
required: true
- ref: industryCategory
required: true
- ref: password
required: true
result:
- name: code
type:
primitive: int
required: true
- name: msg
type:
primitive: string
required: true
- name: code
type:
primitive: int
required: true
- name: msg
type:
primitive: string
required: true
... ...
... ... @@ -5,14 +5,14 @@ metadata:
type: command
description: 注销账号 (添加用户时重新激活)
payload:
- ref: userId
required: true
- ref: usersId
required: true
result:
- name: code
type:
primitive: int
required: true
- name: msg
type:
primitive: string
required: true
- name: code
type:
primitive: int
required: true
- name: msg
type:
primitive: string
required: true
... ...
... ... @@ -5,16 +5,16 @@ metadata:
type: command
description: 手机账号密码检查
payload:
- ref: phone
required: true
- ref: password
required: true
- ref: phone
required: true
- ref: password
required: true
result:
- name: code
type:
primitive: int
required: true
- name: msg
type:
primitive: string
required: true
- name: code
type:
primitive: int
required: true
- name: msg
type:
primitive: string
required: true
... ...
... ... @@ -5,12 +5,12 @@ metadata:
type: command
description: 重置密码(忘记密码)
payload:
- ref: phone
required: true
- ref: password
required: true
- ref: phone
required: true
- ref: password
required: true
result:
- name: msg
description: 消息
type:
primitive: string
\ No newline at end of file
- name: msg
description: 消息
type:
primitive: string
... ...
... ... @@ -5,18 +5,18 @@ metadata:
type: command
description: 创建组织管理
payload:
- ref: companyId
required: true
- ref: orgCode
required: true
- ref: orgName
required: true
- name: isOrg
required: true
- ref: parentId
required: true
- ref: companyId
required: true
- ref: orgCode
required: true
- ref: orgName
required: true
- name: isOrg
required: true
- ref: parentId
required: true
result:
- name: org
type:
schema: org
required: true
- name: org
type:
schema: org
required: true
... ...
... ... @@ -5,10 +5,10 @@ metadata:
type: query
description: 返回组织管理
payload:
- ref: orgId
required: true
- ref: orgId
required: true
result:
- name: org
type:
schema: org
required: true
- name: org
type:
schema: org
required: true
... ...
... ... @@ -5,14 +5,14 @@ metadata:
type: query
description: 获取组织的子部门(通用部门列表使用)
payload:
- ref: orgId
required: true
- name: childFlag
description: 获取所有子节点 (1:获取当前下级子节点 2:获取当前下级所有子节点)
type:
primitive: int
- ref: orgId
required: true
- name: childFlag
description: 获取所有子节点 (1:获取当前下级子节点 2:获取当前下级所有子节点)
type:
primitive: int
result:
- name: org
type:
schema: org
required: true
- name: org
type:
array: org
required: true
... ...
... ... @@ -5,24 +5,24 @@ metadata:
type: query
description: 返回组织管理列表
payload:
- ref: offset
required: false
- ref: limit
required: false
- ref: companyId
required: true
- ref: orgCode
required: false
- ref: depName
required: false
- ref: parentId
required: false
- ref: isOrg
required: false
- ref: offset
required: false
- ref: limit
required: false
- ref: companyId
required: true
- ref: orgCode
required: false
- ref: depName
required: false
- ref: parentId
required: false
- ref: isOrg
required: false
result:
- ref: count
required: true
- name: orgs
type:
array: org
required: true
- ref: count
required: true
- name: orgs
type:
array: org
required: true
... ...
... ... @@ -5,10 +5,10 @@ metadata:
type: command
description: 移除组织管理
payload:
- ref: orgId
required: true
- ref: orgId
required: true
result:
- name: org
type:
schema: org
required: true
- name: org
type:
schema: org
required: true
... ...
... ... @@ -5,18 +5,18 @@ metadata:
type: command
description: 更新组织管理
payload:
- ref: orgId
required: true
- ref: orgCode
required: true
- ref: orgName
required: true
- name: isOrg
required: true
- ref: parentId
required: true
- ref: orgId
required: true
- ref: orgCode
required: true
- ref: orgName
required: true
- name: isOrg
required: true
- ref: parentId
required: true
result:
- name: org
type:
schema: org
required: true
- name: org
type:
schema: org
required: true
... ...
... ... @@ -5,18 +5,18 @@ metadata:
type: command
description: 分配角色给多个用户
payload:
- ref: roleId
required: true
- name: usersIds
description: 用户列表
type:
array: int64
- ref: roleId
required: true
- name: usersIds
description: 用户列表
type:
array: int64
result:
- name: code
type:
primitive: int
required: true
- name: msg
type:
primitive: string
required: true
- name: code
type:
primitive: int
required: true
- name: msg
type:
primitive: string
required: true
... ...
... ... @@ -5,12 +5,12 @@ metadata:
type: command
description: 创建角色管理
payload:
- ref: roleName
required: true
- ref: desc
required: false
- ref: roleName
required: true
- ref: desc
required: false
result:
- name: role
type:
schema: role
required: true
- name: role
type:
schema: role
required: true
... ...
... ... @@ -5,10 +5,10 @@ metadata:
type: query
description: 返回角色管理
payload:
- ref: roleId
required: true
- ref: roleId
required: true
result:
- name: role
type:
schema: role
required: true
- name: role
type:
schema: role
required: true
... ...
... ... @@ -5,10 +5,10 @@ metadata:
type: query
description: 获取角色菜单
payload:
- ref: roleId
required: true
- ref: roleId
required: true
result:
- name: accessMenus
type:
array: int64
required: true
- name: accessMenus
type:
array: int64
required: true
... ...
... ... @@ -5,14 +5,14 @@ metadata:
type: query
description: 获取角色相关联的用户
payload:
- ref: roleId
required: true
- ref: orgId
required: false
- ref: departmentId
required: false
- ref: roleId
required: true
- ref: orgId
required: false
- ref: departmentId
required: false
result:
- name: role
type:
schema: role
required: true
- name: role
type:
schema: role
required: true
... ...
... ... @@ -5,25 +5,25 @@ metadata:
type: query
description: 返回角色管理列表
payload:
- ref: offset
required: true
- ref: limit
required: true
- ref: roleName
required: false
- ref: orgName
required: false
- ref: orgId
required: false
- name: inOrgIds
description: 匹配多个组织 1,2,3 逗号分割 inOrgIds
required: false
type:
primitive: string
- ref: offset
required: true
- ref: limit
required: true
- ref: roleName
required: false
- ref: orgName
required: false
- ref: orgId
required: false
- name: inOrgIds
description: 匹配多个组织 1,2,3 逗号分割 inOrgIds
required: false
type:
primitive: string
result:
- ref: count
required: true
- name: roles
type:
array: role
required: true
- ref: count
required: true
- name: roles
type:
array: role
required: true
... ...
... ... @@ -5,10 +5,10 @@ metadata:
type: command
description: 移除角色管理
payload:
- ref: roleId
required: true
- ref: roleId
required: true
result:
- name: role
type:
schema: role
required: true
- name: role
type:
schema: role
required: true
... ...
... ... @@ -5,18 +5,18 @@ metadata:
type: command
description: 取消用户分配的角色
payload:
- ref: roleId
required: true
- name: usersIds
description: 用户列表
type:
array: int64
- ref: roleId
required: true
- name: usersIds
description: 用户列表
type:
array: int64
result:
- name: code
type:
primitive: int
required: true
- name: msg
type:
primitive: string
required: true
- name: code
type:
primitive: int
required: true
- name: msg
type:
primitive: string
required: true
... ...
... ... @@ -5,14 +5,14 @@ metadata:
type: command
description: 更新角色管理
payload:
- ref: roleId
required: true
- ref: roleName
required: true
- ref: desc
required: false
- ref: roleId
required: true
- ref: roleName
required: true
- ref: desc
required: false
result:
- name: role
type:
schema: role
required: true
- name: role
type:
schema: role
required: true
... ...
... ... @@ -5,14 +5,14 @@ metadata:
type: command
description: 角色设置菜单
payload:
- ref: roleId
required: true
- name: accessMenus
description: 菜单编号列表
type:
array: int64
- ref: roleId
required: true
- name: accessMenus
description: 菜单编号列表
type:
array: int64
result:
- name: role
type:
schema: role
required: true
- name: role
type:
schema: role
required: true
... ...
... ... @@ -5,18 +5,18 @@ metadata:
type: command
description: 批量添加
payload:
- ref: usersType
required: true
- name: users
description: 用户列表
type:
array: users
- ref: usersType
required: true
- name: users
description: 用户列表
type:
array: users
result:
- name: code
type:
primitive: int
required: true
- name: msg
type:
primitive: string
required: true
- name: code
type:
primitive: int
required: true
- name: msg
type:
primitive: string
required: true
... ...
... ... @@ -5,18 +5,18 @@ metadata:
type: command
description: 批量修改启用状态
payload:
- name: usersIds
type:
array: int64
required: true
- ref: enableStatus
required: true
- name: usersIds
type:
array: int64
required: true
- ref: enableStatus
required: true
result:
- name: code
type:
primitive: int
required: true
- name: msg
type:
primitive: string
required: true
- name: code
type:
primitive: int
required: true
- name: msg
type:
primitive: string
required: true
... ...
... ... @@ -5,18 +5,18 @@ metadata:
type: command
description: 批量重置密码
payload:
- name: usersIds
type:
array: int64
required: true
- ref: password
required: true
- name: usersIds
type:
array: int64
required: true
- ref: password
required: true
result:
- name: code
type:
primitive: int
required: true
- name: msg
type:
primitive: string
required: true
- name: code
type:
primitive: int
required: true
- name: msg
type:
primitive: string
required: true
... ...
... ... @@ -5,38 +5,38 @@ metadata:
type: command
description: 创建
payload:
- ref: companyId
required: true
- ref: usersType
required: true
- ref: usersCode
required: true
- name: organizationId
description: 组织机构
type:
primitive: int64
- name: departmentId
description: 所属部门
type:
primitive: int64
- name: usersOrg
description: 用户关联的组织
type:
array: org
- name: usersRole
description: 用户关联的角色
type:
array: role
- name: cooperationInfo
description: 共创信息 (共创用户有效)
type:
schema: cooperationInfo
- name: enableStatus
description: 启用状态(启用:1 禁用:2)
type:
primitive: int
- ref: companyId
required: true
- ref: usersType
required: true
- ref: usersCode
required: true
- name: organizationId
description: 组织机构
type:
primitive: int64
- name: departmentId
description: 所属部门
type:
primitive: int64
- name: usersOrg
description: 用户关联的组织
type:
array: org
- name: usersRole
description: 用户关联的角色
type:
array: role
- name: cooperationInfo
description: 共创信息 (共创用户有效)
type:
schema: cooperationInfo
- name: enableStatus
description: 启用状态(启用:1 禁用:2)
type:
primitive: int
result:
- name: users
type:
schema: users
required: true
\ No newline at end of file
- name: users
type:
schema: users
required: true
... ...
... ... @@ -5,16 +5,16 @@ metadata:
type: command
description: 移除我收藏的菜单
payload:
- ref: code
required: true
- ref: usersId
required: true
- ref: code
required: true
- ref: usersId
required: true
result:
- name: code
type:
primitive: int
required: true
- name: msg
type:
primitive: string
required: true
- name: code
type:
primitive: int
required: true
- name: msg
type:
primitive: string
required: true
... ...
... ... @@ -5,10 +5,10 @@ metadata:
type: query
description: 获取我收藏的菜单
payload:
- ref: usersId
required: true
- ref: usersId
required: true
result:
- name: users
type:
schema: users
required: true
- name: users
type:
schema: users
required: true
... ...
... ... @@ -5,10 +5,10 @@ metadata:
type: query
description: 返回
payload:
- ref: usersId
required: true
- ref: usersId
required: true
result:
- name: users
type:
schema: users
required: true
- name: users
type:
schema: users
required: true
... ...
... ... @@ -5,15 +5,15 @@ metadata:
type: query
description: 返回用户有权限的菜单
payload:
- ref: userId
required: true
- name: menuCategory
description: 菜单类别 web app
required: false
type:
primitive: string
- ref: userId
required: true
- name: menuCategory
description: 菜单类别 web app
required: false
type:
primitive: string
result:
- name: menus
type:
array: menu
required: true
- name: menus
type:
array: menu
required: true
... ...
... ... @@ -5,14 +5,14 @@ metadata:
type: query
description: 获取用户基础信息数据
payload:
- ref: usersId
required: false
- ref: phone
required: false
- ref: usersBaseId
required: false
- ref: usersId
required: false
- ref: phone
required: false
- ref: usersBaseId
required: false
result:
- name: users
type:
schema: users
required: true
- name: users
type:
schema: users
required: true
... ...
... ... @@ -5,20 +5,18 @@ metadata:
type: query
description: 返回列表
payload:
- ref: offset
required: true
- ref: limit
required: true
- ref: usersName
required: false
- ref: usersName
required: false
- ref: depName
required: false
- ref: offset
required: true
- ref: limit
required: true
- ref: usersName
required: false
- ref: depName
required: false
result:
- ref: count
required: true
- name: users
type:
array: users
required: true
- ref: count
required: true
- name: users
type:
array: users
required: true
... ...
... ... @@ -5,10 +5,10 @@ metadata:
type: command
description: 移除
payload:
- ref: usersId
required: true
- ref: usersId
required: true
result:
- name: users
type:
schema: users
required: true
- name: users
type:
schema: users
required: true
... ...
... ... @@ -5,18 +5,18 @@ metadata:
type: command
description: 更新我喜欢菜单列表
payload:
- name: favoriteMenus
description: 菜单编码列表
type:
array: string
- ref: usersId
required: true
- name: favoriteMenus
description: 菜单编码列表
type:
array: string
- ref: usersId
required: true
result:
- name: code
type:
primitive: int
required: true
- name: msg
type:
primitive: string
required: true
- name: code
type:
primitive: int
required: true
- name: msg
type:
primitive: string
required: true
... ...
... ... @@ -5,18 +5,18 @@ metadata:
type: command
description: 手机认证,更新手机号、密码
payload:
- ref: usersId
required: true
- ref: phone
required: false
- ref: password
required: false
- ref: usersId
required: true
- ref: phone
required: false
- ref: password
required: false
result:
- name: code
type:
primitive: int
required: true
- name: msg
type:
primitive: string
required: true
- name: code
type:
primitive: int
required: true
- name: msg
type:
primitive: string
required: true
... ...
... ... @@ -5,36 +5,36 @@ metadata:
type: command
description: 更新
payload:
- ref: usersId
required: true
- ref: usersCode
required: true
- name: organizationId
description: 组织机构
type:
primitive: int64
- name: departmentId
description: 所属部门
type:
primitive: int64
- name: usersOrg
description: 用户关联的组织
type:
array: org
- name: usersRole
description: 用户关联的角色
type:
array: role
- name: cooperationInfo
description: 共创信息 (共创用户有效)
type:
schema: cooperationInfo
- name: enableStatus
description: 启用状态(启用:1 禁用:2)
type:
primitive: int
- ref: usersId
required: true
- ref: usersCode
required: true
- name: organizationId
description: 组织机构
type:
primitive: int64
- name: departmentId
description: 所属部门
type:
primitive: int64
- name: usersOrg
description: 用户关联的组织
type:
array: org
- name: usersRole
description: 用户关联的角色
type:
array: role
- name: cooperationInfo
description: 共创信息 (共创用户有效)
type:
schema: cooperationInfo
- name: enableStatus
description: 启用状态(启用:1 禁用:2)
type:
primitive: int
result:
- name: users
type:
schema: users
required: true
- name: users
type:
schema: users
required: true
... ...