作者 yangfu
正在显示 88 个修改的文件 包含 499 行增加508 行删除
... ... @@ -9,4 +9,4 @@ metadata:
get: /
- method: menuUpdate
route:
put: /{Id}
put: /{menuId}
... ...
... ... @@ -9,13 +9,13 @@ metadata:
post: /
- method: orgUpdate
route:
put: /{Id}
put: /{orgId}
- method: orgList
route:
post: /search
- method: orgGet
route:
get: /{Id}
get: /{orgId}
- method: orgRemove
route:
delete: /{Id}
delete: /{orgId}
... ...
... ... @@ -9,16 +9,16 @@ metadata:
post: /
- method: roleUpdate
route:
put: /{Id}
put: /{roleId}
- method: roleList
route:
post: /search
- method: roleGet
route:
get: /{Id}
get: /{roleId}
- method: roleUserInfo
route:
get: /role-user/{Id}
get: /role-user/{roleId}
- method: roleUserAdd
route:
post: /role-user
... ... @@ -33,4 +33,4 @@ metadata:
get: /role-menu/before-edit
- method: roleMenuEdit
route:
put: /role-menu/{Id}
put: /role-menu/{roleId}
... ...
... ... @@ -15,7 +15,7 @@ metadata:
post: /company-user/search
- method: companyUserGet
route:
get: /company-user/{Id}
get: /company-user/{userId}
- method: companyUserEnable
route:
put: /company-user/enable
... ... @@ -33,7 +33,7 @@ metadata:
post: /cooperation-user/search
- method: cooperationUserGet
route:
get: /cooperation-user/{Id}
get: /cooperation-user/{userId}
- method: cooperationUserEnable
route:
put: /cooperation-user/enable
... ...
... ... @@ -2,6 +2,6 @@ version: v1
kind: Attribute
metadata:
name: address
description: 公司地址
description: 地址
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: businessLicense
description: 营业执照
name: systemName
description: 系统名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: depName
description: 部门名称
name: theme
description: 主题
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: cooperationApplicationApplicant
description: 共创申请人
type:
schema: users
... ...
version: v1
kind: Attribute
metadata:
name: cooperationApplicationAttachment
description: 共创申请描述附件
type:
array: string
... ...
version: v1
kind: Attribute
metadata:
name: cooperationApplicationDescription
description: 共创申请描述
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: usersBaseId
description: 用户基础数据id
name: cooperationApplicationId
description: 共创申请ID
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: cooperationApplicationStatus
description: 共创申请审核状态,1待审核,2已同意,3已拒绝
type:
primitive: int32
... ...
version: v1
kind: Attribute
metadata:
name: cooperationApplicationVerifier
description: 共创申请审核人
type:
schema: users
... ...
version: v1
kind: Attribute
metadata:
name: password
description: 密码
name: cooperationApplicationVerifyDescription
description: 共创申请审核描述
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: cooperationApplicationVerifyTime
description: 共创申请审核时间
type:
primitive: datetime
... ...
version: v1
kind: Attribute
metadata:
name: cooperationApplyTime
description: 共创申请时间
type:
primitive: datetime
... ...
version: v1
kind: Attribute
metadata:
name: cooperationModeId
description: 共创模式ID
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: cooperationModeName
description: 共创模式名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: cooperationModeNumber
description: 共创模式编码,手动输入,唯一确定
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: operateTime
description: 操作世时间
type:
primitive: datetime
... ...
version: v1
kind: Attribute
metadata:
name: operator
description: 操作人
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: remarks
description: 备注
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: status
description: 共创模式状态,1启用,2禁用
type:
primitive: int32
... ...
version: v1
kind: Attribute
metadata:
name: cooperationProjectDescription
description: 共创项目描述
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: cooperationProjectId
description: 共创项目ID
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: cooperationProjectName
description: 共创项目名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: cooperationProjectNumber
description: 共创项目编号,自生成,生成规则:XM+6位年月日+#+3位流水,例XM210601#001
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: cooperationProjectPublishTime
description: 共创项目发布时间
type:
primitive: datetime
... ...
version: v1
kind: Attribute
metadata:
name: cooperationProjectPublisher
description: 共创项目发布人
type:
schema: user
... ...
version: v1
kind: Attribute
metadata:
name: cooperationProjectSponsor
description: 共创项目发起人
type:
schema: user
... ...
version: v1
kind: Attribute
metadata:
name: cooperationProjectUndertakerType
description: 共创项目承接对象,1员工,2共创用户,3公开,可以多选
type:
array: int32
... ...
version: v1
kind: Attribute
metadata:
name: parentName
description: 父级组织名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: usersCompanyId
description: 用户公司编号
name: companyId
description: 公司id
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: cooperationCompany
description: 共创公司
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: cooperationDeadline
description: 共创公司到期时间
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: departmentId
description: 部门id
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: orgId
description: 组织id
type:
primitive: int64
... ...
... ... @@ -2,29 +2,23 @@ version: v1
kind: Schema
metadata:
name: company
description: 公司
description: 企业信息 (base)
attributes:
- ref: createdAt
required: true
- ref: updatedAt
required: true
- ref: address
required: true
- ref: businessLicense
required: true
- ref: companyId
required: true
- ref: companyName
required: true
- ref: contacts
required: true
- ref: industryCategory
required: true
- ref: logo
required: true
- ref: registStatus
required: true
- ref: taxpayerCode
required: true
- ref: scale
required: true
- name: companyConfig
description: 企业配置信息
type:
schema: companyConfig
- name: companyInfo
description: 企业基本信息
type:
schema: companyInfo
- name: status
description: 公司状态
type:
primitive: int
- ref: createdAt
required: false
- ref: updatedAt
required: false
... ...
version: v1
kind: Schema
metadata:
name: companyConfig
description: 公司配置信息
attributes:
- name: systemName
description: 系统名称
type:
primitive: string
- name: theme
description: 主题
type:
primitive: string
... ...
version: v1
kind: Schema
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
... ...
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: orgs
- name: usersRole
description: 关联的组织结构
type:
array: roles
- 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: roleListItem
description: 角色列表
name: cooperationMode
description: 共创模式实体
attributes:
- ref: roleId
- ref: cooperationModeId
required: true
- ref: orgId
- ref: cooperationModeNumber
description: 模式编码,唯一确定
required: true
- ref: orgName
- ref: cooperationModeName
description: 模式名称,唯一确定
required: true
- ref: roleName
- ref: status
description: 共创模式状态,1启用,2禁用
required: true
- ref: desc
- ref: remarks
required: true
- ref: createdAt
- ref: operator
required: true
- ref: operateTime
required: true
- ref: updatedAt
required: true
- ref: deletedAt
required: true
- ref: createdAt
required: true
... ...
version: v1
kind: Schema
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
... ... @@ -2,7 +2,7 @@ version: v1
kind: Schema
metadata:
name: noticeSettingModule
description: 编排消息模块列表
description: web页面编排消息模块列表
attributes:
- ref: module
required: true
... ...
... ... @@ -2,7 +2,7 @@ version: v1
kind: Schema
metadata:
name: noticeSettingParam
description: 编排消息需要的变量
description: web页面上编排消息需要的变量
attributes:
- name: paramCode
description: 变量的代码标识
... ...
... ... @@ -2,7 +2,7 @@ version: v1
kind: Schema
metadata:
name: noticeSettingProfile
description: 编排消息需要的候选参数
description: web页面上编排消息需要的候选参数
attributes:
- name: paramList
description: 可选变量列表
... ...
version: v1
kind: Schema
metadata:
name: orgListItem
description: 组织列表项
attributes:
- ref: orgId
required: true
- ref: companyId
required: true
- ref: createdAt
required: true
- ref: updatedAt
required: true
- ref: orgCode
required: true
- ref: orgName
required: true
- name: isOrg
required: true
- ref: parentId
required: true
- name: parentName
description: 父级部门名称
type:
primitive: string
... ... @@ -22,3 +22,5 @@ metadata:
required: true
- ref: parentId
required: true
- ref: parentName
required: true
... ...
version: v1
kind: Schema
metadata:
name: roleDetail
description: 角色详细数据
attributes:
- ref: roleId
required: true
- ref: companyId
required: true
- ref: orgId
required: true
- ref: orgName
required: true
- ref: roleName
required: true
- ref: desc
required: true
- name: roleMenu
description: 角色拥有的权限菜单
type:
array: roleMenu
- name: roleUser
description: 关联的用户
type:
array: roleUser
version: v1
kind: Schema
metadata:
name: roleMenu
description: 角色下拥有的菜单
attributes:
- ref: menuId
required: true
- ref: parentId
required: true
- ref: menuName
required: true
version: v1
kind: Schema
metadata:
name: roleUser
description: 角色下关联的用户
attributes:
- ref: usersId
required: true
- ref: usersCode
required: true
- ref: usersName
required: true
- ref: orgId
required: true
- ref: orgName
required: true
version: v1
kind: Schema
metadata:
name: roleUserInfo
description: 角色下关联用户的详情
attributes:
- ref: roleId
required: true
- ref: roleName
required: true
- ref: desc
required: true
- name: roleUser
description: 关联的用户
type:
array: roleUser
- name: notInRoleUser
description: 未关联的用户列表
type:
array: roleUser
... ... @@ -10,6 +10,7 @@ metadata:
required: true
- ref: orgId
required: true
- ref: orgName
- ref: roleName
required: true
- ref: accessMenus
... ...
version: v1
kind: Schema
metadata:
name: userListItem
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
... ... @@ -4,45 +4,43 @@ metadata:
name: users
description: 用户
attributes:
- ref: createdAt
required: true
- ref: deletedAt
required: true
- ref: updatedAt
required: true
- ref: avator
required: true
- ref: cooperationCompany
required: true
- ref: cooperationDeadline
required: true
- ref: email
required: true
- ref: enableStatus
required: true
- ref: favoriteMenus
required: true
- ref: phone
required: true
- ref: status
required: true
- ref: usersCode
required: true
- ref: usersId
required: true
- ref: companyId
required: true
- ref: usersBaseId
- ref: companyName
- ref: orgId
required: true
- ref: usersType
- ref: orgName
- ref: usersName
required: true
- ref: usersCode
- ref: usersOrg
required: true
- name: organizationId
description: 组织机构
type:
primitive: int64
- name: departmentId
description: 所属部门
type:
primitive: int64
- name: usersOrg
description: 用户关联的组织
type:
array: orgs
- name: usersRole
description: 用户关联的角色
type:
array: roles
- name: favoriteMenus
description: 收藏的菜单(工作台)(菜单编码列表)
type:
array: string
- name: cooperationInfo
description: 共创信息 (共创用户有效)
type:
schema: cooperationInfo
- name: enableStatus
description: 启用状态(启用:1 禁用:2)
type:
primitive: int
- ref: createdAt
- ref: usersRole
required: true
- ref: updatedAt
- ref: usersType
required: true
... ...
version: v1
kind: Schema
metadata:
name: usersBase
description: 用户(base)
attributes:
- ref: usersBaseId
required: true
- name: usersInfo
description: 用户信息
type:
schema: usersInfo
- name: phoneAuth
description: 手机认证
type:
schemal: phoneAuth
- name: im
description: IM信息
type:
schemal: im
- name: relatedUsers
description: 关联的用户 (冗余)
type:
array: int64
- ref: createdAt
required: true
- ref: updatedAt
required: true
version: v1
kind: Schema
metadata:
name: usersInfo
description: 用户信息 (base)
attributes:
- ref: usersName
required: true
- ref: phone
required: true
- ref: avator
required: true
- ref: email
required: true
version: v1
kind: Method
metadata:
name: removeOrg
name: createCooperationMode
type: command
description: 移除组织管理
description: 创建共创模式服务
payload:
- ref: orgId
- name: cooperationMode
type:
schema: cooperationMode
required: true
result:
- name: org
- name: cooperationMode
type:
schema: orgs
schema: cooperationMode
required: true
... ...
version: v1
kind: Method
metadata:
name: getOrg
name: getCooperationMode
type: query
description: 返回组织管理
description: 返回共创模式服务
payload:
- ref: orgId
- ref: cooperationModeId
required: true
result:
- name: org
- name: cooperationMode
type:
schema: orgs
schema: cooperationMode
required: true
... ...
version: v1
kind: Method
metadata:
name: roleList
name: listCooperationMode
type: query
description: 返回role列表
description: 返回共创模式服务列表
payload:
- ref: offset
required: true
... ... @@ -12,7 +12,7 @@ metadata:
result:
- ref: count
required: true
- name: roles
- name: cooperationModes
type:
array: roles
array: cooperationMode
required: true
... ...
version: v1
kind: Method
metadata:
name: removeCooperationMode
type: command
description: 移除共创模式服务
payload:
- ref: cooperationModeId
required: true
result:
- name: cooperationMode
type:
schema: cooperationMode
required: true
... ...
version: v1
kind: Method
metadata:
name: updateCooperationMode
type: command
description: 更新共创模式服务
payload:
- ref: cooperationModeId
required: true
result:
- name: cooperationMode
type:
schema: cooperationMode
required: true
... ...
version: v1
kind: Service
metadata:
name: org
description: 组织管理
name: cooperationMode
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: listOrg
name: listCooperationProject
type: query
description: 返回组织管理列表
description: 返回共创项目服务列表
payload:
- ref: offset
required: true
- ref: limit
required: true
- ref: orgCode
required: false
- ref: depName
required: false
- ref: parentId
required: false
result:
- ref: count
required: true
- name: orgs
- name: cooperationProjects
type:
array: orgs
array: cooperationProject
required: true
... ...
version: v1
kind: Method
metadata:
name: createOrg
name: releaseCooperationProject
type: command
description: 创建组织管理
description: 发布共创项目
payload:
- ref: companyId
- ref: cooperationProjectName
required: true
- ref: orgCode
- ref: cooperationModeId
required: true
- ref: orgName
- ref: cooperationProjectSponsor
required: true
- name: isOrg
- ref: cooperationProjectUndertakerType
required: true
- ref: parentId
- ref: cooperationProjectDescription
required: true
result:
- name: org
- name: cooperationProject
type:
schema: orgs
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: 共创项目服务
... ...
version: v1
kind: Method
metadata:
name: updateOrg
type: command
description: 更新组织管理
payload:
- 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: orgs
required: true
... ... @@ -10,5 +10,11 @@ metadata:
result:
- name: role
type:
schema: roleDetail
schema: roles
required: true
- name: menus
type:
array: menu
- name: users
type:
array: users
... ...
... ... @@ -8,7 +8,15 @@ metadata:
- ref: roleId
required: true
result:
- name: role
description: 角色基础数据
type:
schema: roles
- name: roleUser
description: 关联详情
description: 关联的用户
type:
schema: users
- name: notInRoleUser
description: 未关联的用户列表
type:
schema: roleUserInfo
array: users
... ...
... ... @@ -8,55 +8,15 @@ metadata:
- ref: usersId
required: true
result:
- name: usersId
description: 用户id
- name: user
type:
primitive: int64
- name: usersCode
description: 用户编号
type:
primitive: string
- name: usersName
description: 用户名称
type:
primitive: string
- name: orgId
description: 组织机构id
type:
primitive: int64
- name: orgName
description: 组织机构名称
type:
primitive: string
- name: departmentId
description: 部门id
type:
primitive: int64
- name: departmentName
description: 部门名称
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: 关联的组织机构
schema: users
- name: userOrg
type:
array: orgs
- name: usersRole
description: 关联的角色
- name: userRole
type:
array: roles
- name: avator
description: 头像
- name: userMenu
type:
primitive: string
array: menu
... ...
... ... @@ -5,46 +5,30 @@ metadata:
type: command
description: 创建公司用户信息
payload:
- 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
- ref: usersCode
required: true
- ref: usersName
required: true
- ref: orgId
required: true
- ref: departmentId
required: true
- ref: enableStatus
required: true
- ref: phone
required: true
- ref: email
required: true
- name: usersOrg
description: 关联的组织机构
type:
array: orgs
array: int64
- name: usersRole
description: 关联的组织结构
description: 关联的用户
type:
array: roles
- name: avator
description: 头像
type:
primitive: string
array: int64
- ref: avator
required: true
result:
- name: usersId
type:
... ...
... ... @@ -14,5 +14,5 @@ metadata:
required: true
- name: userList
type:
array: companyUserListItem
array: users
required: true
... ...
... ... @@ -5,10 +5,20 @@ metadata:
type: command
description: 创建共创用户信息
payload:
- name: userinfo
description: 共创用户信息
type:
schema: cooperationUser
- ref: usersId
required: true
- ref: usersCode
required: true
- ref: usersName
required: true
- ref: cooperationCompany
required: true
- ref: cooperationDeadline
required: true
- ref: enableStatus
required: true
- ref: email
required: true
result:
- name: usersId
type:
... ...
... ... @@ -8,7 +8,7 @@ metadata:
- ref: usersId
required: true
result:
- name: userinfo
- name: user
description: 共创用户信息
type:
schema: cooperationUser
schema: users
... ...
... ... @@ -14,5 +14,5 @@ metadata:
required: true
- name: userList
type:
array: cooperationUser
array: users
required: true
... ...