作者 tangxuhui
正在显示 92 个修改的文件 包含 2440 行增加666 行删除
version: v1
kind: HttpApi
metadata:
service: cooperationApplication
path: /cooperation-applications
endpoints:
- method: applyForCooperation
route:
post: /apply-for-cooperation
- method: agreeCooperationApplication
route:
post: /agree-cooperation-application
- method: rejectCooperationApplication
route:
post: /reject-cooperation-application
- method: createCooperationApplication
route:
post: /
- method: updateCooperationApplication
route:
put: /{cooperationApplicationId}
- method: getCooperationApplication
route:
get: /{cooperationApplicationId}
- method: removeCooperationApplication
route:
delete: /{cooperationApplicationId}
- method: listCooperationApplication
route:
get: /
params:
- name: offset
- name: limit
... ...
version: v1
kind: HttpApi
metadata:
service: cooperationProject
path: /cooperation-projects
endpoints:
- method: releaseCooperationProject
route:
post: /release-cooperation-project
- method: createCooperationProject
route:
post: /
- method: updateCooperationProject
route:
put: /{cooperationProjectId}
- method: getCooperationProject
route:
get: /{cooperationProjectId}
- method: removeCooperationProject
route:
delete: /{cooperationProjectId}
- method: listCooperationProject
route:
get: /
params:
- name: offset
- name: limit
... ...
... ... @@ -2,6 +2,6 @@ version: v1
kind: Attribute
metadata:
name: cooperationProjectUndertakerType
description: 共创项目承接对象,1员工,2共创用户,3公开
description: 共创项目承接对象,1员工,2共创用户,3公开,可以多选
type:
primitive: int32
array: int32
... ...
... ... @@ -22,7 +22,9 @@ metadata:
required: true
- ref: cooperationApplyTime
required: true
- ref: cooperationProjectId
- ref: cooperationProjectNumber
required: true
- ref: organization
required: true
- ref: createdAt
required: true
... ...
version: v1
kind: Method
metadata:
name: agreeCooperationApplication
type: command
description: 同意共创申请
payload:
- ref: cooperationApplicationId
required: true
- ref: cooperationApplicationVerifyDescription
required: true
result:
- name: cooperationApplication
type:
schema: cooperationApplication
required: true
... ...
version: v1
kind: Method
metadata:
name: applyForCooperation
type: command
description: 申请共创
payload:
- ref: cooperationApplicationAttachment
required: true
- ref: cooperationApplicationDescription
required: true
- ref: cooperationApplicationApplicant
required: true
- ref: cooperationApplicationId
required: true
- ref: cooperationProjectNumber
required: true
- ref: cooperationApplyTime
required: true
result:
- name: cooperationApplication
type:
schema: cooperationApplication
required: true
... ...
version: v1
kind: Method
metadata:
name: createCooperationApplication
type: command
description: 创建共创申请服务
payload:
result:
- name: cooperationApplication
type:
schema: cooperationApplication
required: true
... ...
version: v1
kind: Method
metadata:
name: getCooperationApplication
type: query
description: 返回共创申请服务
payload:
- ref: cooperationApplicationId
required: true
result:
- name: cooperationApplication
type:
schema: cooperationApplication
required: true
... ...
version: v1
kind: Method
metadata:
name: listCooperationApplication
type: query
description: 返回共创申请服务列表
payload:
- ref: offset
required: true
- ref: limit
required: true
result:
- ref: count
required: true
- name: cooperationApplications
type:
array: cooperationApplication
required: true
... ...
version: v1
kind: Method
metadata:
name: rejectCooperationApplication
type: command
description: 拒绝共创申请
payload:
- ref: cooperationApplicationId
required: true
- ref: cooperationApplicationVerifyDescription
required: true
result:
- name: cooperationApplication
type:
schema: cooperationApplication
required: true
... ...
version: v1
kind: Method
metadata:
name: removeCooperationApplication
type: command
description: 移除共创申请服务
payload:
- ref: cooperationApplicationId
required: true
result:
- name: cooperationApplication
type:
schema: cooperationApplication
required: true
... ...
version: v1
kind: Method
metadata:
name: updateCooperationApplication
type: command
description: 更新共创申请服务
payload:
- ref: cooperationApplicationId
required: true
result:
- name: cooperationApplication
type:
schema: cooperationApplication
required: true
... ...
version: v1
kind: Service
metadata:
name: cooperationApplication
description: 共创申请服务
... ...
version: v1
kind: Method
metadata:
name: createCooperationProject
type: command
description: 创建共创项目服务
payload:
result:
- name: cooperationProject
type:
schema: cooperationProject
required: true
... ...
version: v1
kind: Method
metadata:
name: getCooperationProject
type: query
description: 返回共创项目服务
payload:
- ref: cooperationProjectId
required: true
result:
- name: cooperationProject
type:
schema: cooperationProject
required: true
... ...
version: v1
kind: Method
metadata:
name: listCooperationProject
type: query
description: 返回共创项目服务列表
payload:
- ref: offset
required: true
- ref: limit
required: true
result:
- ref: count
required: true
- name: cooperationProjects
type:
array: cooperationProject
required: true
... ...
version: v1
kind: Method
metadata:
name: releaseCooperationProject
type: command
description: 发布共创项目
payload:
- ref: cooperationProjectName
required: true
- ref: cooperationModeId
required: true
- ref: cooperationProjectSponsor
required: true
- ref: cooperationProjectUndertakerType
required: true
- ref: cooperationProjectDescription
required: true
result:
- name: cooperationProject
type:
schema: cooperationProject
required: true
... ...
version: v1
kind: Method
metadata:
name: removeCooperationProject
type: command
description: 移除共创项目服务
payload:
- ref: cooperationProjectId
required: true
result:
- name: cooperationProject
type:
schema: cooperationProject
required: true
... ...
version: v1
kind: Method
metadata:
name: updateCooperationProject
type: command
description: 更新共创项目服务
payload:
- ref: cooperationProjectId
required: true
result:
- name: cooperationProject
type:
schema: cooperationProject
required: true
... ...
version: v1
kind: Service
metadata:
name: cooperationProject
description: 共创项目服务
... ...
... ... @@ -13,6 +13,6 @@ metadata:
- method: phoneAuthResetPassword
route:
post: /phone-auth/reset-password
- method: phoneAuthResetPassword
- method: destoryAccount
route:
post: /destory-account
... ...
version: v1
kind: HttpApi
metadata:
service: company
path: /companys
endpoints:
- method: createCompany
route:
post: /
- method: updateCompany
route:
put: /{companyId}
- method: getCompany
route:
get: /{companyId}
- method: removeCompany
route:
delete: /{companyId}
- method: listCompany
route:
get: /
params:
- name: offset
- name: limit
- method: listCompanyCustomizeMenus
route:
get: /{companyId}/customize-menus/
- method: updateCompanyCustomizeMenus
route:
put: /{companyId}/customize-menus
\ No newline at end of file
... ...
... ... @@ -22,6 +22,10 @@ metadata:
params:
- name: offset
- name: limit
- name: roleName
- name: orgName
- name: orgId
- name: inOrgIds
- method: getRoleRelatedUsers
route:
get: /{roleId}/related-users
... ... @@ -34,12 +38,12 @@ metadata:
get: /{roleId}/access-menus
params:
- name: roleId
- method: updateRoleAccessMenus
route:
put: /{roleId}/access-menus
- method: assginRoleToUsers
route:
post: /assgin
- method: unAssginRoleToUsers
route:
post: /unassgin
- method: updateRoleAccessMenus
route:
put: /{roleId}/access-menus
\ No newline at end of file
route:
post: /unassgin
\ No newline at end of file
... ...
... ... @@ -3,47 +3,51 @@ 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
- name: companyId
- name: orgId
- name: usersName
- name: depName
- 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: updateUsersPhoneAuth
route:
put: /{usersId}/phone-auth
... ...
version: v1
kind: Attribute
metadata:
name: code
description: 编码
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: msg
description: 应答消息
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: systemName
description: 系统名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: theme
description: 主题
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: menuAlias
description: 菜单别名
type:
primitive: string
... ...
swagger: "2.0"
info:
title: ""
description: 天联企业管理系统
contact:
name: ""
email: ""
home: ""
version: 0.0.1
paths: {}
definitions:
AuthCompanySignUpRequestBody:
title: AuthCompanySignUpRequestBody
type: object
properties:
companyName:
type: string
description: 企业名称
required:
- companyName
contacts:
type: string
description: 联系人
required:
- contacts
industryCategory:
type: string
description: 所属行业
required:
- industryCategory
password:
type: string
description: 密码
required:
- password
phone:
type: string
description: 手机号码
required:
- phone
scale:
type: string
description: 规模
required:
- scale
AuthCompanySignUpResponseBody:
title: 'Mediatype identifier: AuthCompanySignUpResponseBody'
type: object
properties:
code:
type: integer
required:
- code
msg:
type: string
required:
- msg
AuthDestoryAccountRequestBody:
title: AuthDestoryAccountRequestBody
type: object
properties:
usersId:
type: integer
description: 用户编号
required:
- usersId
AuthDestoryAccountResponseBody:
title: 'Mediatype identifier: AuthDestoryAccountResponseBody'
type: object
properties:
code:
type: integer
required:
- code
msg:
type: string
required:
- msg
AuthPhoneAuthCheckRequestBody:
title: AuthPhoneAuthCheckRequestBody
type: object
properties:
password:
type: string
description: 密码
required:
- password
phone:
type: string
description: 手机号码
required:
- phone
AuthPhoneAuthCheckResponseBody:
title: 'Mediatype identifier: AuthPhoneAuthCheckResponseBody'
type: object
properties:
code:
type: integer
required:
- code
msg:
type: string
required:
- msg
AuthPhoneAuthResetPasswordRequestBody:
title: AuthPhoneAuthResetPasswordRequestBody
type: object
properties:
password:
type: string
description: 密码
required:
- password
phone:
type: string
description: 手机号码
required:
- phone
AuthPhoneAuthResetPasswordResponseBody:
title: 'Mediatype identifier: AuthPhoneAuthResetPasswordResponseBody'
type: object
properties:
msg:
type: string
description: 消息
MenuCreateMenuRequestBody:
title: MenuCreateMenuRequestBody
type: object
properties:
accessCode:
type: string
description: 权限编码 users:edit
required:
- accessCode
code:
type: string
description: 菜单编码 SYSTEM_USER_EDIT / 100101 (字符编码)
required:
- code
enableStatus:
type: integer
description: 启用状态(启用:1 禁用:0)
required:
- enableStatus
icon:
type: string
description: 菜单图标
isPublish:
type: integer
description: 菜单是否公开状态,[0:隐藏],[1:显示],默认显示
required:
- isPublish
menuName:
type: string
description: 菜单名称
required:
- menuName
menuType:
type: string
description: 菜单类型 (目录catalog、菜单menu、按钮button)
required:
- menuType
parentId:
type: integer
description: 父级id
format: int64
remark:
type: string
description: 菜单说明
sort:
type: integer
description: 排序
required:
- sort
MenuCreateMenuResponseBody:
title: 'Mediatype identifier: MenuCreateMenuResponseBody'
type: object
properties:
menu:
$ref: '#/definitions/menuResponseBody'
MenuGetMenuResponseBody:
title: 'Mediatype identifier: MenuGetMenuResponseBody'
type: object
properties:
menu:
$ref: '#/definitions/menuResponseBody'
MenuListMenuResponseBody:
title: 'Mediatype identifier: MenuListMenuResponseBody'
type: object
properties:
count:
type: integer
description: 匹配数目
required:
- count
menus:
type: array
items:
$ref: '#/definitions/menuResponseBody'
required:
- menus
MenuRemoveMenuResponseBody:
title: 'Mediatype identifier: MenuRemoveMenuResponseBody'
type: object
properties:
menu:
$ref: '#/definitions/menuResponseBody'
MenuUpdateMenuRequestBody:
title: MenuUpdateMenuRequestBody
type: object
properties:
accessCode:
type: string
description: 权限编码 users:edit
code:
type: string
description: 菜单编码 SYSTEM_USER_EDIT / 100101 (字符编码)
required:
- code
enableStatus:
type: integer
description: 启用状态(启用:1 禁用:0)
required:
- enableStatus
icon:
type: string
description: 菜单图标
isPublish:
type: integer
description: 菜单是否公开状态,[0:隐藏],[1:显示],默认显示
format: int64
menuName:
type: string
description: 菜单名称
required:
- menuName
menuType:
type: string
description: 菜单类型 (目录catalog、菜单menu、按钮button)
required:
- menuType
remark:
type: string
description: 菜单说明
sort:
type: integer
description: 排序
required:
- sort
MenuUpdateMenuResponseBody:
title: 'Mediatype identifier: MenuUpdateMenuResponseBody'
type: object
properties:
menu:
$ref: '#/definitions/menuResponseBody'
OrgCreateOrgRequestBody:
title: OrgCreateOrgRequestBody
type: object
properties:
companyId:
type: integer
description: 企业id
required:
- companyId
isOrg:
type: string
required:
- isOrg
orgCode:
type: string
description: 组织编码
required:
- orgCode
orgName:
type: string
description: 组织名称
required:
- orgName
parentId:
type: integer
description: 父级ID
required:
- parentId
OrgCreateOrgResponseBody:
title: 'Mediatype identifier: OrgCreateOrgResponseBody'
type: object
properties:
org:
$ref: '#/definitions/orgResponseBody'
OrgGetOrgResponseBody:
title: 'Mediatype identifier: OrgGetOrgResponseBody'
type: object
properties:
org:
$ref: '#/definitions/orgResponseBody'
OrgGetOrgSubDepartmentResponseBody:
title: 'Mediatype identifier: OrgGetOrgSubDepartmentResponseBody'
type: object
properties:
org:
type: array
items:
$ref: '#/definitions/orgResponseBody'
required:
- org
OrgListOrgResponseBody:
title: 'Mediatype identifier: OrgListOrgResponseBody'
type: object
properties:
count:
type: integer
description: 匹配数目
required:
- count
orgs:
type: array
items:
$ref: '#/definitions/orgResponseBody'
required:
- orgs
OrgRemoveOrgResponseBody:
title: 'Mediatype identifier: OrgRemoveOrgResponseBody'
type: object
properties:
org:
$ref: '#/definitions/orgResponseBody'
OrgUpdateOrgRequestBody:
title: OrgUpdateOrgRequestBody
type: object
properties:
isOrg:
type: string
required:
- isOrg
orgCode:
type: string
description: 组织编码
required:
- orgCode
orgName:
type: string
description: 组织名称
required:
- orgName
parentId:
type: integer
description: 父级ID
required:
- parentId
OrgUpdateOrgResponseBody:
title: 'Mediatype identifier: OrgUpdateOrgResponseBody'
type: object
properties:
org:
$ref: '#/definitions/orgResponseBody'
RoleAssginRoleToUsersRequestBody:
title: RoleAssginRoleToUsersRequestBody
type: object
properties:
roleId:
type: integer
description: 角色ID
required:
- roleId
usersIds:
type: array
items:
type: integer
format: int64
description: 用户列表
RoleAssginRoleToUsersResponseBody:
title: 'Mediatype identifier: RoleAssginRoleToUsersResponseBody'
type: object
properties:
code:
type: integer
required:
- code
msg:
type: string
required:
- msg
RoleCreateRoleRequestBody:
title: RoleCreateRoleRequestBody
type: object
properties:
desc:
type: integer
description: 描述
format: int64
roleName:
type: string
description: 角色名称
required:
- roleName
RoleCreateRoleResponseBody:
title: 'Mediatype identifier: RoleCreateRoleResponseBody'
type: object
properties:
role:
$ref: '#/definitions/roleResponseBody'
RoleGetRoleAccessMenusResponseBody:
title: 'Mediatype identifier: RoleGetRoleAccessMenusResponseBody'
type: object
properties:
accessMenus:
type: array
items:
type: integer
format: int64
required:
- accessMenus
RoleGetRoleRelatedUsersResponseBody:
title: 'Mediatype identifier: RoleGetRoleRelatedUsersResponseBody'
type: object
properties:
role:
$ref: '#/definitions/roleResponseBody'
RoleGetRoleResponseBody:
title: 'Mediatype identifier: RoleGetRoleResponseBody'
type: object
properties:
role:
$ref: '#/definitions/roleResponseBody'
RoleListRoleResponseBody:
title: 'Mediatype identifier: RoleListRoleResponseBody'
type: object
properties:
count:
type: integer
description: 匹配数目
required:
- count
roles:
type: array
items:
$ref: '#/definitions/roleResponseBody'
required:
- roles
RoleRemoveRoleResponseBody:
title: 'Mediatype identifier: RoleRemoveRoleResponseBody'
type: object
properties:
role:
$ref: '#/definitions/roleResponseBody'
RoleUnAssginRoleToUsersRequestBody:
title: RoleUnAssginRoleToUsersRequestBody
type: object
properties:
roleId:
type: integer
description: 角色ID
required:
- roleId
usersIds:
type: array
items:
type: integer
format: int64
description: 用户列表
RoleUnAssginRoleToUsersResponseBody:
title: 'Mediatype identifier: RoleUnAssginRoleToUsersResponseBody'
type: object
properties:
code:
type: integer
required:
- code
msg:
type: string
required:
- msg
RoleUpdateRoleAccessMenusRequestBody:
title: RoleUpdateRoleAccessMenusRequestBody
type: object
properties:
accessMenus:
type: array
items:
type: integer
format: int64
description: 菜单编号列表
RoleUpdateRoleAccessMenusResponseBody:
title: 'Mediatype identifier: RoleUpdateRoleAccessMenusResponseBody'
type: object
properties:
role:
$ref: '#/definitions/roleResponseBody'
RoleUpdateRoleRequestBody:
title: RoleUpdateRoleRequestBody
type: object
properties:
desc:
type: integer
description: 描述
format: int64
roleName:
type: string
description: 角色名称
required:
- roleName
RoleUpdateRoleResponseBody:
title: 'Mediatype identifier: RoleUpdateRoleResponseBody'
type: object
properties:
role:
$ref: '#/definitions/roleResponseBody'
UsersBatchAddRequestBody:
title: UsersBatchAddRequestBody
type: object
properties:
users:
type: array
items:
$ref: '#/definitions/usersRequestBody'
description: 用户列表
usersType:
type: integer
description: 用户类型 1:企业内部用户(内部添加) 2:共创用户 1024:企业注册用户(注册添加)
required:
- usersType
UsersBatchAddResponseBody:
title: 'Mediatype identifier: UsersBatchAddResponseBody'
type: object
properties:
code:
type: integer
required:
- code
msg:
type: string
required:
- msg
UsersBatchEnableRequestBody:
title: UsersBatchEnableRequestBody
type: object
properties:
enableStatus:
type: integer
description: 启用状态(启用:1 禁用:2 注销:3)
required:
- enableStatus
usersIds:
type: array
items:
type: integer
format: int64
required:
- usersIds
UsersBatchEnableResponseBody:
title: 'Mediatype identifier: UsersBatchEnableResponseBody'
type: object
properties:
code:
type: integer
required:
- code
msg:
type: string
required:
- msg
UsersBatchResetPasswordRequestBody:
title: UsersBatchResetPasswordRequestBody
type: object
properties:
password:
type: string
description: 密码
required:
- password
usersIds:
type: array
items:
type: integer
format: int64
required:
- usersIds
UsersBatchResetPasswordResponseBody:
title: 'Mediatype identifier: UsersBatchResetPasswordResponseBody'
type: object
properties:
code:
type: integer
required:
- code
msg:
type: string
required:
- msg
UsersCreateUsersRequestBody:
title: UsersCreateUsersRequestBody
type: object
properties:
companyId:
type: integer
description: 企业id
required:
- companyId
cooperationInfo:
$ref: '#/definitions/cooperationInfoRequestBody'
departmentId:
type: integer
description: 所属部门
format: int64
enableStatus:
type: integer
description: 启用状态(启用:1 禁用:2)
format: int64
organizationId:
type: integer
description: 组织机构
format: int64
usersCode:
type: string
description: 用户编号
required:
- usersCode
usersOrg:
type: array
items:
$ref: '#/definitions/orgRequestBody'
description: 用户关联的组织
usersRole:
type: array
items:
$ref: '#/definitions/roleRequestBody'
description: 用户关联的角色
usersType:
type: integer
description: 用户类型 1:企业内部用户(内部添加) 2:共创用户 1024:企业注册用户(注册添加)
required:
- usersType
UsersCreateUsersResponseBody:
title: 'Mediatype identifier: UsersCreateUsersResponseBody'
type: object
properties:
users:
$ref: '#/definitions/usersResponseBody'
UsersFavoriteMenusDeleteFavoriteMenusResponseBody:
title: 'Mediatype identifier: UsersFavoriteMenusDeleteFavoriteMenusResponseBody'
type: object
properties:
code:
type: integer
required:
- code
msg:
type: string
required:
- msg
UsersFavoriteMenusGetFavoriteMenusResponseBody:
title: 'Mediatype identifier: UsersFavoriteMenusGetFavoriteMenusResponseBody'
type: object
properties:
users:
$ref: '#/definitions/usersResponseBody'
UsersFavoriteMenusUpdateFavoriteMenusRequestBody:
title: UsersFavoriteMenusUpdateFavoriteMenusRequestBody
type: object
properties:
favoriteMenus:
type: array
items:
type: string
description: 菜单编码列表
UsersFavoriteMenusUpdateFavoriteMenusResponseBody:
title: 'Mediatype identifier: UsersFavoriteMenusUpdateFavoriteMenusResponseBody'
type: object
properties:
code:
type: integer
required:
- code
msg:
type: string
required:
- msg
UsersGetUsersAccessMenusResponseBody:
title: 'Mediatype identifier: UsersGetUsersAccessMenusResponseBody'
type: object
properties:
menus:
type: array
items:
$ref: '#/definitions/menuResponseBody'
required:
- menus
UsersGetUsersBaseInfoResponseBody:
title: 'Mediatype identifier: UsersGetUsersBaseInfoResponseBody'
type: object
properties:
users:
$ref: '#/definitions/usersResponseBody'
UsersGetUsersResponseBody:
title: 'Mediatype identifier: UsersGetUsersResponseBody'
type: object
properties:
users:
$ref: '#/definitions/usersResponseBody'
UsersListUsersResponseBody:
title: 'Mediatype identifier: UsersListUsersResponseBody'
type: object
properties:
count:
type: integer
description: 匹配数目
required:
- count
users:
type: array
items:
$ref: '#/definitions/usersResponseBody'
required:
- users
UsersRemoveUsersResponseBody:
title: 'Mediatype identifier: UsersRemoveUsersResponseBody'
type: object
properties:
users:
$ref: '#/definitions/usersResponseBody'
UsersUpdateUsersPhoneAuthRequestBody:
title: UsersUpdateUsersPhoneAuthRequestBody
type: object
properties:
password:
type: string
description: 密码
phone:
type: string
description: 手机号码
UsersUpdateUsersPhoneAuthResponseBody:
title: 'Mediatype identifier: UsersUpdateUsersPhoneAuthResponseBody'
type: object
properties:
code:
type: integer
required:
- code
msg:
type: string
required:
- msg
UsersUpdateUsersRequestBody:
title: UsersUpdateUsersRequestBody
type: object
properties:
cooperationInfo:
$ref: '#/definitions/cooperationInfoRequestBody'
departmentId:
type: integer
description: 所属部门
format: int64
enableStatus:
type: integer
description: 启用状态(启用:1 禁用:2)
format: int64
organizationId:
type: integer
description: 组织机构
format: int64
usersCode:
type: string
description: 用户编号
required:
- usersCode
usersOrg:
type: array
items:
$ref: '#/definitions/orgRequestBody'
description: 用户关联的组织
usersRole:
type: array
items:
$ref: '#/definitions/roleRequestBody'
description: 用户关联的角色
UsersUpdateUsersResponseBody:
title: 'Mediatype identifier: UsersUpdateUsersResponseBody'
type: object
properties:
users:
$ref: '#/definitions/usersResponseBody'
cooperationInfoRequestBody:
title: cooperationInfoRequestBody
type: object
properties:
cooperationCompany:
type: string
description: 共创公司
cooperationDeadline:
type: string
description: 共创到期时间 (yyyy-MM-dd)
format: datetime
description: 共创信息
cooperationInfoResponseBody:
title: cooperationInfoResponseBody
type: object
properties:
cooperationCompany:
type: string
description: 共创公司
cooperationDeadline:
type: string
description: 共创到期时间 (yyyy-MM-dd)
format: datetime
description: 共创信息
extRequestBody:
title: extRequestBody
type: object
properties:
depName:
type: string
description: 部门名称
required:
- depName
orgName:
type: string
description: 组织名称
required:
- orgName
parentDepName:
type: string
description: 父级部门名称
required:
- parentDepName
phone:
type: string
description: 手机号码
required:
- phone
usersName:
type: string
description: 用户姓名
required:
- usersName
description: 冗余附加数据
extResponseBody:
title: extResponseBody
type: object
properties:
depName:
type: string
description: 部门名称
required:
- depName
orgName:
type: string
description: 组织名称
required:
- orgName
parentDepName:
type: string
description: 父级部门名称
required:
- parentDepName
phone:
type: string
description: 手机号码
required:
- phone
usersName:
type: string
description: 用户姓名
required:
- usersName
description: 冗余附加数据
menuResponseBody:
title: menuResponseBody
type: object
properties:
accessCode:
type: string
description: 权限编码 users:edit
required:
- accessCode
category:
type: string
description: 菜单类别 (web:1、app:2)
code:
type: string
description: 菜单编码 SYSTEM_USER_EDIT
required:
- code
enableStatus:
type: integer
description: 启用状态(启用:1 禁用:0)
required:
- enableStatus
icon:
type: string
description: 菜单图标
required:
- icon
isPublish:
type: integer
description: 菜单是否公开状态(上架、下架),[0:隐藏],[1:显示],默认显示
required:
- isPublish
menuId:
type: integer
description: 菜单编号
required:
- menuId
menuName:
type: string
description: 菜单名称
required:
- menuName
menuType:
type: string
description: 菜单类型 (目录catalog、菜单menu、按钮button)
required:
- menuType
parentId:
type: integer
description: 父级ID
required:
- parentId
parentPath:
type: string
description: 父级节点路径("0,11,12,")
remark:
type: string
description: 备注
required:
- remark
sort:
type: integer
description: 排序
required:
- sort
description: 系统菜单
orgRequestBody:
title: orgRequestBody
type: object
properties:
companyId:
type: integer
description: 企业id
required:
- companyId
createAt:
type: string
description: 创建时间
required:
- createAt
deleteAt:
type: string
description: 删除时间
required:
- deleteAt
ext:
$ref: '#/definitions/extRequestBody'
isOrg:
type: string
required:
- isOrg
orgCode:
type: string
description: 组织编码
required:
- orgCode
orgId:
type: integer
description: 组织ID
required:
- orgId
orgName:
type: string
description: 组织名称
required:
- orgName
parentId:
type: integer
description: 父级ID
required:
- parentId
parentPath:
type: string
description: 父级节点路径("0,11,12,")
updateAt:
type: string
description: 更新时间
required:
- updateAt
description: 组织 organization
orgResponseBody:
title: orgResponseBody
type: object
properties:
companyId:
type: integer
description: 企业id
required:
- companyId
createAt:
type: string
description: 创建时间
required:
- createAt
deleteAt:
type: string
description: 删除时间
required:
- deleteAt
ext:
$ref: '#/definitions/extResponseBody'
isOrg:
type: string
required:
- isOrg
orgCode:
type: string
description: 组织编码
required:
- orgCode
orgId:
type: integer
description: 组织ID
required:
- orgId
orgName:
type: string
description: 组织名称
required:
- orgName
parentId:
type: integer
description: 父级ID
required:
- parentId
parentPath:
type: string
description: 父级节点路径("0,11,12,")
updateAt:
type: string
description: 更新时间
required:
- updateAt
description: 组织 organization
roleRequestBody:
title: roleRequestBody
type: object
properties:
accessMenus:
type: array
items:
type: integer
format: int64
description: 有权限的菜单
required:
- accessMenus
companyId:
type: integer
description: 企业id
required:
- companyId
createAt:
type: string
description: 创建时间
required:
- createAt
desc:
type: integer
description: 描述
required:
- desc
ext:
$ref: '#/definitions/extRequestBody'
orgId:
type: integer
description: 组织ID
required:
- orgId
roleId:
type: integer
description: 角色ID
required:
- roleId
roleName:
type: string
description: 角色名称
required:
- roleName
updateAt:
type: string
description: 更新时间
required:
- updateAt
description: 角色 (base)
roleResponseBody:
title: roleResponseBody
type: object
properties:
accessMenus:
type: array
items:
type: integer
format: int64
description: 有权限的菜单
required:
- accessMenus
companyId:
type: integer
description: 企业id
required:
- companyId
createAt:
type: string
description: 创建时间
required:
- createAt
desc:
type: integer
description: 描述
required:
- desc
ext:
$ref: '#/definitions/extResponseBody'
orgId:
type: integer
description: 组织ID
required:
- orgId
roleId:
type: integer
description: 角色ID
required:
- roleId
roleName:
type: string
description: 角色名称
required:
- roleName
updateAt:
type: string
description: 更新时间
required:
- updateAt
description: 角色 (base)
usersRequestBody:
title: usersRequestBody
type: object
properties:
companyId:
type: integer
description: 企业id
required:
- companyId
cooperationInfo:
$ref: '#/definitions/cooperationInfoRequestBody'
createAt:
type: string
description: 创建时间
required:
- createAt
departmentId:
type: integer
description: 所属部门
format: int64
enableStatus:
type: integer
description: 启用状态(启用:1 禁用:2)
format: int64
ext:
$ref: '#/definitions/extRequestBody'
favoriteMenus:
type: array
items:
type: string
description: 收藏的菜单(工作台)(菜单编码列表)
organizationId:
type: integer
description: 组织机构
format: int64
updateAt:
type: string
description: 更新时间
required:
- updateAt
usersBaseId:
type: integer
description: 用户基础数据id
required:
- usersBaseId
usersCode:
type: string
description: 用户编号
required:
- usersCode
usersId:
type: integer
description: 用户编号
required:
- usersId
usersOrg:
type: array
items:
$ref: '#/definitions/orgRequestBody'
description: 用户关联的组织
usersRole:
type: array
items:
$ref: '#/definitions/roleRequestBody'
description: 用户关联的角色
usersType:
type: integer
description: 用户类型 1:企业内部用户(内部添加) 2:共创用户 1024:企业注册用户(注册添加)
required:
- usersType
description: 用户
usersResponseBody:
title: usersResponseBody
type: object
properties:
companyId:
type: integer
description: 企业id
required:
- companyId
cooperationInfo:
$ref: '#/definitions/cooperationInfoResponseBody'
createAt:
type: string
description: 创建时间
required:
- createAt
departmentId:
type: integer
description: 所属部门
format: int64
enableStatus:
type: integer
description: 启用状态(启用:1 禁用:2)
format: int64
ext:
$ref: '#/definitions/extResponseBody'
favoriteMenus:
type: array
items:
type: string
description: 收藏的菜单(工作台)(菜单编码列表)
organizationId:
type: integer
description: 组织机构
format: int64
updateAt:
type: string
description: 更新时间
required:
- updateAt
usersBaseId:
type: integer
description: 用户基础数据id
required:
- usersBaseId
usersCode:
type: string
description: 用户编号
required:
- usersCode
usersId:
type: integer
description: 用户编号
required:
- usersId
usersOrg:
type: array
items:
$ref: '#/definitions/orgResponseBody'
description: 用户关联的组织
usersRole:
type: array
items:
$ref: '#/definitions/roleResponseBody'
description: 用户关联的角色
usersType:
type: integer
description: 用户类型 1:企业内部用户(内部添加) 2:共创用户 1024:企业注册用户(注册添加)
required:
- usersType
description: 用户
... ...
... ... @@ -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
... ...
version: v1
kind: Schema
metadata:
name: customizeMenus
name: customizeMenu
description: 自定义菜单 (base)(菜单维护)
attributes:
- name: customizeMenusId
... ...
... ... @@ -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
... ...
version: v1
kind: Method
metadata:
name: createCompany
type: command
description: 创建企业
payload:
- name: companyInfo
description: 企业基本信息
type:
schema: companyInfo
result:
- name: company
type:
schema: company
required: true
... ...
version: v1
kind: Method
metadata:
name: getCompany
type: query
description: 返回企业
payload:
- ref: companyId
required: true
result:
- name: company
type:
schema: company
required: true
... ...
version: v1
kind: Method
metadata:
name: listCompany
type: query
description: 返回企业列表
payload:
- ref: offset
required: true
- ref: limit
required: true
result:
- ref: count
required: true
- name: companys
type:
array: company
required: true
... ...
version: v1
kind: Method
metadata:
name: listCompanyCustomizeMenus
type: command
description: 自定义菜单列表
payload:
- ref: companyId
required: true
result:
- name: customizeMenus
type:
array: customizeMenu
required: true
... ...
version: v1
kind: Method
metadata:
name: removeCompany
type: command
description: 移除企业
payload:
- ref: companyId
required: true
result:
- name: company
type:
schema: company
required: true
... ...
version: v1
kind: Method
metadata:
name: updateCompany
type: command
description: 更新企业
payload:
- ref: companyId
required: true
- ref: companyName
required: true
- ref: address
required: true
- ref: systemName
required: true
- ref: logo
required: true
result:
- name: company
type:
schema: company
required: true
... ...
version: v1
kind: Method
metadata:
name: updateCompanyCustomizeMenus
type: command
description: 菜单维护
payload:
- ref: companyId
required: true
- ref: menuId
required: true
- ref: menuName
required: true
- ref: menuAlias
required: true
- ref: sort
required: true
result:
- name: customizeMenu
type:
schema: customizeMenu
required: true
... ...
version: v1
kind: Service
metadata:
name: company
description: 企业
... ...
... ... @@ -3,7 +3,7 @@ kind: Method
metadata:
name: createMenu
type: command
description: 创建菜单服务
description: 创建菜单
payload:
- name: parentId
description: 父级id
... ...
... ... @@ -3,7 +3,7 @@ kind: Method
metadata:
name: getMenu
type: query
description: 返回菜单服务
description: 返回菜单
payload:
- ref: menuId
required: true
... ...
... ... @@ -3,7 +3,7 @@ kind: Method
metadata:
name: listMenu
type: query
description: 返回菜单服务列表
description: 返回菜单列表
payload:
- name: menuCategory
description: 菜单类别 web app
... ...
... ... @@ -3,7 +3,7 @@ kind: Method
metadata:
name: removeMenu
type: command
description: 移除菜单服务
description: 移除菜单
payload:
- ref: menuId
required: true
... ...
... ... @@ -3,7 +3,7 @@ kind: Method
metadata:
name: updateMenu
type: command
description: 更新菜单服务
description: 更新菜单
payload:
- ref: menuId
required: true
... ...
... ... @@ -2,4 +2,4 @@ version: v1
kind: Service
metadata:
name: menu
description: 菜单服务
description: 菜单
... ...
... ... @@ -3,20 +3,20 @@ kind: Method
metadata:
name: createOrg
type: command
description: 创建组织管理
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
... ...
... ... @@ -3,12 +3,12 @@ kind: Method
metadata:
name: getOrg
type: query
description: 返回组织管理
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
... ...
... ... @@ -3,26 +3,26 @@ kind: Method
metadata:
name: listOrg
type: query
description: 返回组织管理列表
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
... ...
... ... @@ -3,12 +3,12 @@ kind: Method
metadata:
name: removeOrg
type: command
description: 移除组织管理
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
... ...
... ... @@ -3,20 +3,20 @@ kind: Method
metadata:
name: updateOrg
type: command
description: 更新组织管理
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
... ...
... ... @@ -3,14 +3,14 @@ kind: Method
metadata:
name: createRole
type: command
description: 创建角色管理
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
... ...
... ... @@ -3,12 +3,12 @@ kind: Method
metadata:
name: getRole
type: query
description: 返回角色管理
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
... ...
... ... @@ -3,27 +3,27 @@ kind: Method
metadata:
name: listRole
type: query
description: 返回角色管理列表
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
... ...
... ... @@ -3,12 +3,12 @@ kind: Method
metadata:
name: removeRole
type: command
description: 移除角色管理
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
... ...
... ... @@ -3,16 +3,16 @@ kind: Method
metadata:
name: updateRole
type: command
description: 更新角色管理
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
... ...
version: v1
kind: Method
metadata:
name: setRoleAccessMenus
name: updateRoleAccessMenus
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
... ...
... ... @@ -2,4 +2,4 @@ version: v1
kind: Service
metadata:
name: role
description: 角色管理
description: 角色
... ...
... ... @@ -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: favoriteMenus
type:
array: 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,15 +5,15 @@ metadata:
type: query
description: 返回用户有权限的菜单
payload:
- ref: userId
required: true
- name: menuCategory
description: 菜单类别 web app
required: false
type:
primitive: string
- ref: usersId
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,16 @@ 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
- ref: usersCode
required: false
result:
- name: users
type:
schema: users
required: true
- name: users
type:
schema: users
required: true
... ...
... ... @@ -5,20 +5,22 @@ 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: companyId
required: false
- ref: orgId
required: false
- 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,36 +5,34 @@ 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
- 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
... ...
version: v1
kind: Method
metadata:
name: updatePhoneAuth
name: updateUsersPhoneAuth
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
... ...
... ... @@ -2,4 +2,4 @@ version: v1
kind: Service
metadata:
name: users
description: 用户管理
description: 用户
... ...