作者 yangfu

add allied-creation-user

正在显示 112 个修改的文件 包含 1700 行增加0 行删除
# Compiled Object codefiles, Static and Dynamic libs (Shared Objects)
*.o
*.a
*.so
# Folders
_obj
_test
# Architecture specific extensions/prefixes
*.[568vq]
[568vq].out
*.cgo1.go
*.cgo2.c
_cgo_defun.c
_cgo_gotypes.go
_cgo_export.*
_testmain.go
*.exe
*.test
.log
.idea
*.tmp
\ No newline at end of file
... ...
version: v1
kind: HttpApi
metadata:
service: menu
path: /menus
endpoints:
- method: createMenu
route:
post: /
- method: updateMenu
route:
put: /{menuId}
- method: getMenu
route:
get: /{menuId}
- method: removeMenu
route:
delete: /{menuId}
- method: listMenu
route:
get: /
params:
- name: offset
- name: limit
... ...
version: v1
kind: Attribute
metadata:
name: count
description: 匹配数目
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: createAt
description: 创建时间
type:
primitive: datetime
... ...
version: v1
kind: Attribute
metadata:
name: deleteAt
description: 删除时间
type:
primitive: datetime
... ...
version: v1
kind: Attribute
metadata:
name: desc
description: 描述
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: limit
description: 查询限制
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: offset
description: 查询偏离量
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: parentId
description: 父级ID
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: remark
description: 备注
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: sort
description: 排序
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: updateAt
description: 更新时间
type:
primitive: datetime
... ...
version: v1
kind: Attribute
metadata:
name: address
description: 公司地址
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: businessLicense
description: 营业执照
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: companyId
description: 企业id
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: companyName
description: 企业名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: contacts
description: 联系人
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: industryCategory
description: 所属行业
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: logo
description: 公司Logo地址
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: registStatus
description: 注册状态 1:已注册 2:待认证 3:已认证
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: scale
description: 规模
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: taxpayerCode
description: 纳税人识别号
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: accessCode
description: 权限编码 users:edit
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: code
description: 菜单编码 SYSTEM_USER_EDIT
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: icon
description: 菜单图标
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: isPublish
description: 菜单是否公开状态(上架、下架),[0:隐藏],[1:显示],默认显示
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: menuId
description: 菜单编号
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: menuName
description: 菜单名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: menuType
description: 菜单类型 (目录catalog、菜单menu、按钮button)
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: remark
description: 菜单说明
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: depName
description: 部门名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: isOrg
description: 是否是组织(是:1 不是:0)
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: orgCode
description: 组织编码
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: orgId
description: 组织ID
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: orgName
description: 组织名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: accessMenus
description: 有权限的菜单
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: roleId
description: 角色ID
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: roleName
description: 角色名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: avator
description: 头像
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: email
description: 邮箱
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: enableStatus
description: 启用状态(启用:1 禁用:2)
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: favoriteMenus
description: 收藏的菜单(工作台)(菜单编码列表)
type:
array: string
... ...
version: v1
kind: Attribute
metadata:
name: password
description: 密码
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: phone
description: 手机号码
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: status
description: 用户状态
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: usersCode
description: 用户编号
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: usersCompanyId
description: 用户公司编号
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: usersId
description: 用户编号
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: usersName
description: 用户姓名
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: usersOrg
description: 用户关联的组织
type:
array: int64
... ...
version: v1
kind: Attribute
metadata:
name: usersRole
description: 用户关联的角色
type:
array: int64
... ...
version: v1
kind: Attribute
metadata:
name: usersType
description: 用户类型 1:企业内部用户(内部添加) 2:共创用户 1024:企业注册用户(注册添加)
type:
primitive: int
... ...
version: v1
kind: Project
metadata:
name: project
description: 天联企业管理系统
version: 0.0.1
repository: gitlab.fjmaimaimai.com/allied-creation/allied-creation-user
contact:
name:
email:
\ No newline at end of file
... ...
version: v1
kind: Schema
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
... ...
version: v1
kind: Schema
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
... ...
version: v1
kind: Schema
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
... ...
version: v1
kind: Schema
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
... ...
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
\ No newline at end of file
... ...
version: v1
kind: Schema
metadata:
name: cooperationInfo
description: 共创信息
attributes:
- name: cooperationCompany
description: 共创公司
type:
primitive: string
- name: cooperationDeadline
description: 共创到期时间 (yyyy-MM-dd)
type:
primitive: datetime
... ...
version: v1
kind: Schema
metadata:
name: credentialAuth
description: 凭证认证 (base)
attributes:
- name: credential
description: 凭证
type:
primitive: string
- name: deviceType
description: 设备类型
type:
primitive: string
- name: expire
description: 过期时间蹉(unix)
type:
primitive: int64
... ...
version: v1
kind: Schema
metadata:
name: customizeMenus
description: 自定义菜单 (base)(菜单维护)
attributes:
- name: customizeMenusId
description: 自定义菜单id
type:
primitive: int64
- ref: companyId
required: true
- name: menuId
description: 菜单id
type:
primitive: int64
- name: menuName
description: 菜单名称
type:
primitive: string
- name: menuAlias
description: 菜单别名
type:
primitive: string
- name: sort
description: 排序
type:
primitive: int
... ...
version: v1
kind: Schema
metadata:
name: dataColumn
description: 数据列
attributes:
- name: dataIndex
description: 数据列字段代码名称
type:
primitive: string
- name: title
description: 数据列字段中文描述
type:
primitive: string
- name: sortBy
description: 默认的排序
type:
primitive: int64
- name: isDefault
description: 是否是默认配置字段
type:
primitive: int
... ...
version: v1
kind: Schema
metadata:
name: dataColumnPerson
description: 列表设置个人:页面列表数据的输出列的个人配置
attributes:
- name: dataColumnPersonId
description: 数据id
type:
primitive: int64
- name: resource
description: 资源 (列如表单 user)
type:
primitive: string
- name: columns
description: 配置的用户显示的字段,例 `["c1","c2"]``
type:
array: string
- name: usersId
description: 归属的用户id
type:
primitive: int64
... ...
version: v1
kind: Schema
metadata:
name: dataColumnSys
description: 列表设置系统:页面列表数据的输出列的系统全局配置
attributes:
- name: dataColumnSysId
description: 数据id
type:
primitive: int64
- name: resource
description: 资源 (列如表单 user)
type:
primitive: string
- name: columns
description: 数据列字段代码名称
type:
array: dataColumn
... ...
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
... ...
version: v1
kind: Schema
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
... ...
version: v1
kind: Schema
metadata:
name: menu
description: 系统菜单
attributes:
- ref: menuId
required: true
- ref: parentId
required: true
- ref: menuName
required: true
- ref: code
required: true
- ref: accessCode
required: true
- ref: menuType
required: true
- ref: icon
required: true
- ref: sort
required: true
- ref: remark
required: true
- name: category
description: 菜单类别 (web:1、app:2)
type:
primitive: string
- name: parentPath
description: 父级节点路径("0,11,12,")
type:
primitive: string
- ref: enableStatus
description: 启用状态(启用:1 禁用:0)
required: true
- ref: isPublish
required: true
... ...
version: v1
kind: Schema
metadata:
name: org
description: 组织 organization
attributes:
- ref: orgId
required: true
- ref: companyId
required: true
- ref: createAt
required: true
- ref: updateAt
required: true
- ref: deleteAt
required: true
- ref: orgCode
required: true
- ref: orgName
required: true
- name: ext
description: 扩展数据
type:
schema: ext
- name: isOrg
required: true
- ref: parentId
required: true
... ...
version: v1
kind: Schema
metadata:
name: phoneAuth
description: 手机认证 (base)
attributes:
- ref: phone
required: true
- ref: password
required: true
... ...
version: v1
kind: Schema
metadata:
name: role
description: 角色 (base)
attributes:
- ref: roleId
required: true
- ref: companyId
required: true
- ref: orgId
required: true
- ref: roleName
required: true
- ref: accessMenus
required: true
- ref: desc
required: true
- name: ext
description: 扩展数据
type:
schema: ext
- ref: createAt
required: true
- ref: updateAt
required: true
... ...
version: v1
kind: Schema
metadata:
name: users
description: 用户(base)
attributes:
- ref: usersId
required: true
- name: usersInfo
description: 用户信息
type:
schema: usersInfo
- name: phoneAuth
description: 手机认证
type:
schemal: phoneAuth
- name: im
description: IM信息
type:
schemal: im
- ref: createAt
required: true
- ref: updateAt
required: true
\ No newline at end of file
... ...
version: v1
kind: Schema
metadata:
name: usersCompany
description: 用户 (base)
attributes:
- ref: usersCompanyId
required: true
- ref: companyId
required: true
- ref: usersId
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: int64
- name: usersRole
description: 用户关联的角色
type:
array: int64
- name: favoriteMenus
description: 收藏的菜单(工作台)(菜单编码列表)
type:
array: string
- name: cooperationInfo
description: 共创信息 (共创用户有效)
type:
schema: cooperationInfo
- name: enableStatus
description: 启用状态(启用:1 禁用:2)
type:
primitive: int
- name: ext
description: 扩展数据
type:
schema: ext
- ref: createAt
required: true
- ref: updateAt
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: companySignUp
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
result:
- name: users
type:
schema: users
required: true
... ...
version: v1
kind: Method
metadata:
name: resetPassword
type: command
description: 重置密码
payload:
- ref: phone
required: true
- ref: password
required: true
result:
- name: msg
description: 消息
type:
primitive: string
\ No newline at end of file
... ...
version: v1
kind: Service
metadata:
name: auth
description: 认证服务
... ...
version: v1
kind: Method
metadata:
name: createMenu
type: command
description: 创建菜单服务
payload:
- name: parentId
description: 父级id
type:
primitive: int64
- name: menuName
description: 菜单名称
type:
primitive: string
required: true
- name: code
description: 菜单编码 SYSTEM_USER_EDIT / 100101 (字符编码)
type:
primitive: string
required: true
- name: accessCode
description: 权限编码 users:edit
type:
primitive: string
required: true
- name: menuType
description: 菜单类型 (目录catalog、菜单menu、按钮button)
type:
primitive: string
required: true
- name: icon
description: 菜单图标
type:
primitive: string
- name: sort
description: 排序
type:
primitive: int
required: true
- name: remark
description: 菜单说明
type:
primitive: string
- ref: enableStatus
description: 启用状态(启用:1 禁用:0)
required: true
- name: isPublish
description: 菜单是否公开状态,[0:隐藏],[1:显示],默认显示
type:
primitive: int
required: true
result:
- name: menu
type:
schema: menu
required: true
... ...
version: v1
kind: Method
metadata:
name: getMenu
type: query
description: 返回菜单服务
payload:
- ref: menuId
required: true
result:
- name: menu
type:
schema: menu
required: true
... ...
version: v1
kind: Method
metadata:
name: listMenu
type: query
description: 返回菜单服务列表
payload:
- name: menuCategory
description: 菜单类别 web app
required: false
type:
primitive: string
- name: parentId
description: 菜单父级id 0:查询所有 n:父级id为n的菜单列表
required: false
type:
primitive: int64
- name: menuName
description: 菜单名称过滤
required: false
type:
primitive: string
- ref: offset
required: true
- ref: limit
required: true
result:
- ref: count
required: true
- name: menus
type:
array: menu
required: true
... ...
version: v1
kind: Method
metadata:
name: removeMenu
type: command
description: 移除菜单服务
payload:
- ref: menuId
required: true
result:
- name: menu
type:
schema: menu
required: true
... ...
version: v1
kind: Method
metadata:
name: updateMenu
type: command
description: 更新菜单服务
payload:
- ref: menuId
required: true
- name: menuName
description: 菜单名称
type:
primitive: string
required: true
- name: code
description: 菜单编码 SYSTEM_USER_EDIT / 100101 (字符编码)
type:
primitive: string
required: true
- name: accessCode
description: 权限编码 users:edit
type:
primitive: string
- name: menuType
description: 菜单类型 (目录catalog、菜单menu、按钮button)
type:
primitive: string
required: true
- name: icon
description: 菜单图标
type:
primitive: string
- name: sort
description: 排序
type:
primitive: int
required: true
- name: remark
description: 菜单说明
type:
primitive: string
- name: isPublish
description: 菜单是否公开状态,[0:隐藏],[1:显示],默认显示
type:
primitive: int
- ref: enableStatus
description: 启用状态(启用:1 禁用:0)
required: true
result:
- name: menu
type:
schema: menu
required: true
... ...
version: v1
kind: Service
metadata:
name: menu
description: 菜单服务
... ...
version: v1
kind: Method
metadata:
name: createOrg
type: command
description: 创建组织管理
payload:
- 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
... ...
version: v1
kind: Method
metadata:
name: getOrg
type: query
description: 返回组织管理
payload:
- ref: orgId
required: true
result:
- name: org
type:
schema: org
required: true
... ...
version: v1
kind: Method
metadata:
name: listOrg
type: query
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
type:
array: org
required: true
... ...
version: v1
kind: Method
metadata:
name: removeOrg
type: command
description: 移除组织管理
payload:
- ref: orgId
required: true
result:
- name: org
type:
schema: org
required: true
... ...
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: org
required: true
... ...
version: v1
kind: Service
metadata:
name: org
description: 组织管理
... ...
version: v1
kind: Method
metadata:
name: createRole
type: command
description: 创建角色管理
payload:
- ref: roleName
required: true
- ref: desc
required: false
result:
- name: role
type:
schema: role
required: true
... ...
version: v1
kind: Method
metadata:
name: getRole
type: query
description: 返回角色管理
payload:
- ref: roleId
required: true
result:
- name: role
type:
schema: role
required: true
... ...
version: v1
kind: Method
metadata:
name: listRole
type: query
description: 返回角色管理列表
payload:
- ref: offset
required: true
- ref: limit
required: true
- ref: roleName
required: false
- ref: orgName
required: false
result:
- ref: count
required: true
- name: roles
type:
array: role
required: true
... ...
version: v1
kind: Method
metadata:
name: removeRole
type: command
description: 移除角色管理
payload:
- ref: roleId
required: true
result:
- name: role
type:
schema: role
required: true
... ...
version: v1
kind: Method
metadata:
name: updateRole
type: command
description: 更新角色管理
payload:
- ref: roleId
required: true
- ref: roleName
required: true
- ref: desc
required: false
result:
- name: role
type:
schema: role
required: true
... ...
version: v1
kind: Service
metadata:
name: role
description: 角色管理
... ...
version: v1
kind: Method
metadata:
name: check
type: command
description: 密码检查
payload:
- ref: usersId
required: true
- ref: phone
required: true
- ref: password
required: true
result:
- name: users
type:
schema: users
required: true
... ...
version: v1
kind: Method
metadata:
name: createUsers
type: command
description: 创建用户信息
payload:
- ref: usersId
required: true
- name: usersInfo
description: 用户信息
type:
schema: usersInfo
- name: phoneAuth
description: 手机认证
type:
schemal: phoneAuth
- name: im
description: IM信息
type:
schemal: im
result:
- name: users
type:
schema: users
required: true
... ...
version: v1
kind: Method
metadata:
name: getUsers
type: query
description: 返回用户信息
payload:
- ref: usersId
required: true
result:
- name: users
type:
schema: users
required: true
... ...
version: v1
kind: Method
metadata:
name: listUsers
type: query
description: 返回用户信息列表
payload:
- ref: offset
required: true
- ref: limit
required: true
result:
- ref: count
required: true
- name: users
type:
array: users
required: true
... ...
version: v1
kind: Method
metadata:
name: phoneAuth
type: command
description: 手机认证
payload:
- ref: usersId
required: true
- ref: phone
required: true
- ref: password
required: true
result:
- name: users
type:
schema: users
required: true
... ...
version: v1
kind: Method
metadata:
name: removeUsers
type: command
description: 移除用户信息
payload:
- ref: usersId
required: true
result:
- name: users
type:
schema: users
required: true
... ...
version: v1
kind: Method
metadata:
name: updateUsers
type: command
description: 更新用户信息
payload:
- ref: usersId
required: true
- name: usersInfo
description: 用户信息
type:
schema: usersInfo
- name: phoneAuth
description: 手机认证
type:
schemal: phoneAuth
- name: im
description: IM信息
type:
schemal: im
result:
- name: users
type:
schema: users
required: true
... ...
version: v1
kind: Service
metadata:
name: users
description: 用户信息
... ...
version: v1
kind: Method
metadata:
name: batchAdd
type: command
description: 批量添加
payload:
- ref: usersType
required: true
- name: users
description: 用户列表
type:
array: usersCompany
result:
- name: count
type:
primitive: int
required: true
... ...
version: v1
kind: Method
metadata:
name: batchEnable
type: command
description: 批量修改启用状态
payload:
- name: usersCompanyIds
type:
array: int64
required: true
- ref: enableStatus
required: true
result:
- name: usersCompany
type:
schema: usersCompany
required: true
... ...
version: v1
kind: Method
metadata:
name: batchResetPassword
type: command
description: 批量重置密码
payload:
- name: usersCompanyIds
type:
array: int64
required: true
- ref: password
required: true
result:
- name: usersCompany
type:
schema: usersCompany
required: true
... ...
version: v1
kind: Method
metadata:
name: createUsersCompany
type: command
description: 创建企业用户管理
payload:
- ref: companyId
required: true
- ref: usersType
required: true
- ref: usersCode
required: true
- name: organizationId
description: 组织机构
type:
primitive: int64
required: true
- name: departmentId
description: 所属部门
type:
primitive: int64
required: true
- name: usersOrg
description: 用户关联的组织
type:
array: int64
required: false
- name: usersRole
description: 用户关联的角色
type:
array: int64
required: false
- name: cooperationInfo
description: 共创信息 (共创用户有效)
type:
schema: cooperationInfo
required: false
- ref: enableStatus
required: true
- ref: usersName
required: true
- ref: phone
required: true
- ref: avator
required: false
- ref: email
required: false
result:
- name: usersCompany
type:
schema: usersCompany
required: true
... ...
version: v1
kind: Method
metadata:
name: getUsersCompany
type: query
description: 返回企业用户管理
payload:
- ref: usersCompanyId
required: true
result:
- name: usersCompany
type:
schema: usersCompany
required: true
... ...
version: v1
kind: Method
metadata:
name: listUsersCompany
type: query
description: 返回企业用户管理列表
payload:
- ref: offset
required: true
- ref: limit
required: true
- ref: userName
required: false
- ref: depName
required: false
- name: cooperationCompany
type:
primitive: string
required: false
result:
- ref: count
required: true
- name: usersCompanys
type:
array: usersCompany
required: true
... ...
version: v1
kind: Method
metadata:
name: removeUsersCompany
type: command
description: 移除企业用户管理
payload:
- ref: usersCompanyId
required: true
result:
- name: usersCompany
type:
schema: usersCompany
required: true
... ...
version: v1
kind: Method
metadata:
name: updateUsersCompany
type: command
description: 更新企业用户管理
payload:
- ref: usersCompanyId
required: true
- name: organizationId
description: 组织机构
type:
primitive: int64
required: true
- name: departmentId
description: 所属部门
type:
primitive: int64
required: true
- name: usersOrg
description: 用户关联的组织
type:
array: int64
required: false
- name: usersRole
description: 用户关联的角色
type:
array: int64
required: false
- name: cooperationInfo
description: 共创信息 (共创用户有效)
type:
schema: cooperationInfo
required: false
- ref: enableStatus
required: true
- ref: usersName
required: true
- ref: phone
required: true
- ref: avator
required: false
- ref: email
required: false
result:
- name: usersCompany
type:
schema: usersCompany
required: true
... ...
version: v1
kind: Service
metadata:
name: usersCompany
description: 企业用户管理
... ...