作者 tangxuhui
正在显示 128 个修改的文件 包含 1773 行增加10 行删除
  1 +# Compiled Object codefiles, Static and Dynamic libs (Shared Objects)
  2 +*.o
  3 +*.a
  4 +*.so
  5 +
  6 +# Folders
  7 +_obj
  8 +_test
  9 +
  10 +# Architecture specific extensions/prefixes
  11 +*.[568vq]
  12 +[568vq].out
  13 +
  14 +*.cgo1.go
  15 +*.cgo2.c
  16 +_cgo_defun.c
  17 +_cgo_gotypes.go
  18 +_cgo_export.*
  19 +
  20 +_testmain.go
  21 +
  22 +*.exe
  23 +*.test
  24 +.log
  25 +.idea
  26 +*.tmp
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: userInfo
  5 + description: 冗余字段,jsonb格式,不限制存放内容
  6 + type:
  7 + primitive: any
1 version: v1 1 version: v1
2 kind: Attribute 2 kind: Attribute
3 metadata: 3 metadata:
4 - name: incentivesPercent  
5 - description: 激励百分点 4 + name: dividendsPercent
  5 + description: 分红规则激励百分点
6 type: 6 type:
7 primitive: float64 7 primitive: float64
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: dividendsReferrerPercent
  5 + description: 分红激励规则推荐人抽成比例
  6 + type:
  7 + primitive: float64
1 version: v1 1 version: v1
2 kind: Attribute 2 kind: Attribute
3 metadata: 3 metadata:
4 - name: incentivesRuleId  
5 - description: 激励规则编号 4 + name: dividendsRuleId
  5 + description: 分红规则ID
6 type: 6 type:
7 primitive: int64 7 primitive: int64
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: dividendsSalesmanPercent
  5 + description: 分红激励规则业务员抽成比例
  6 + type:
  7 + primitive: float64
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: dividendsStage
  5 + description: 分红规则激励阶段,阶段返回时需要转换为中文数字
  6 + type:
  7 + primitive: int64
1 version: v1 1 version: v1
2 kind: Attribute 2 kind: Attribute
3 metadata: 3 metadata:
4 - name: incentivesStageEnd  
5 - description: 激励阶段有效期结束 4 + name: dividendsStageEnd
  5 + description: 分红规则激励阶段结束
6 type: 6 type:
7 primitive: datetime 7 primitive: datetime
1 version: v1 1 version: v1
2 kind: Attribute 2 kind: Attribute
3 metadata: 3 metadata:
4 - name: incentivesStageStart  
5 - description: 激励阶段有效期开始 4 + name: dividendsStageStart
  5 + description: 分红规则激励阶段开始
6 type: 6 type:
7 primitive: datetime 7 primitive: datetime
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: moneyIncentivesAmount
  5 + description: 激励金额
  6 + type:
  7 + primitive: float64
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: moneyIcentivesRuleId
  5 + description: 金额激励规则ID
  6 + type:
  7 + primitive: int64
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: moneyIncentivesStage
  5 + description: 金额激励阶段,阶段返回时需要转换为中文数字
  6 + type:
  7 + primitive: int64
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: moneyIncentivesStageEnd
  5 + description: 金额激励阶段有效期结束
  6 + type:
  7 + primitive: datetime
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: moneyIncentivesStageStart
  5 + description: 金额激励阶段有效期开始
  6 + type:
  7 + primitive: datetime
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: moneyIncentivesTime
  5 + description: 金额激励规则时间
  6 + type:
  7 + primitive: datetime
  1 +version: v1
  2 +kind: HttpApi
  3 +metadata:
  4 + service: menu
  5 + path: /menus
  6 + endpoints:
  7 + - method: createMenu
  8 + route:
  9 + post: /
  10 + - method: updateMenu
  11 + route:
  12 + put: /{menuId}
  13 + - method: getMenu
  14 + route:
  15 + get: /{menuId}
  16 + - method: removeMenu
  17 + route:
  18 + delete: /{menuId}
  19 + - method: listMenu
  20 + route:
  21 + get: /
  22 + params:
  23 + - name: offset
  24 + - name: limit
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: count
  5 + description: 匹配数目
  6 + type:
  7 + primitive: int64
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: createAt
  5 + description: 创建时间
  6 + type:
  7 + primitive: datetime
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: deleteAt
  5 + description: 删除时间
  6 + type:
  7 + primitive: datetime
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: desc
  5 + description: 描述
  6 + type:
  7 + primitive: int64
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: limit
  5 + description: 查询限制
  6 + type:
  7 + primitive: int
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: offset
  5 + description: 查询偏离量
  6 + type:
  7 + primitive: int
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: parentId
  5 + description: 父级ID
  6 + type:
  7 + primitive: int64
1 version: v1 1 version: v1
2 kind: Attribute 2 kind: Attribute
3 metadata: 3 metadata:
4 - name: incentivesStage  
5 - description: 激励阶段 4 + name: remark
  5 + description: 备注
6 type: 6 type:
7 primitive: string 7 primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: sort
  5 + description: 排序
  6 + type:
  7 + primitive: int
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: updateAt
  5 + description: 更新时间
  6 + type:
  7 + primitive: datetime
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: address
  5 + description: 公司地址
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: businessLicense
  5 + description: 营业执照
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: companyId
  5 + description: 企业id
  6 + type:
  7 + primitive: int64
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: companyName
  5 + description: 企业名称
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: contacts
  5 + description: 联系人
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: industryCategory
  5 + description: 所属行业
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: logo
  5 + description: 公司Logo地址
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: registStatus
  5 + description: 注册状态 1:已注册 2:待认证 3:已认证
  6 + type:
  7 + primitive: int
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: scale
  5 + description: 规模
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: taxpayerCode
  5 + description: 纳税人识别号
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: accessCode
  5 + description: 权限编码 users:edit
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: code
  5 + description: 菜单编码 SYSTEM_USER_EDIT
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: icon
  5 + description: 菜单图标
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: isPublish
  5 + description: 菜单是否公开状态(上架、下架),[0:隐藏],[1:显示],默认显示
  6 + type:
  7 + primitive: int
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: menuId
  5 + description: 菜单编号
  6 + type:
  7 + primitive: int64
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: menuName
  5 + description: 菜单名称
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: menuType
  5 + description: 菜单类型 (目录catalog、菜单menu、按钮button)
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: remark
  5 + description: 菜单说明
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: depName
  5 + description: 部门名称
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: isOrg
  5 + description: 是否是组织(是:1 不是:0)
  6 + type:
  7 + primitive: int
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: orgCode
  5 + description: 组织编码
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: orgId
  5 + description: 组织ID
  6 + type:
  7 + primitive: int64
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: orgName
  5 + description: 组织名称
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: accessMenus
  5 + description: 有权限的菜单
  6 + type:
  7 + primitive: int64
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: roleId
  5 + description: 角色ID
  6 + type:
  7 + primitive: int64
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: roleName
  5 + description: 角色名称
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: avator
  5 + description: 头像
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: email
  5 + description: 邮箱
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: enableStatus
  5 + description: 启用状态(启用:1 禁用:2)
  6 + type:
  7 + primitive: int
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: favoriteMenus
  5 + description: 收藏的菜单(工作台)(菜单编码列表)
  6 + type:
  7 + array: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: password
  5 + description: 密码
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: phone
  5 + description: 手机号码
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: status
  5 + description: 用户状态
  6 + type:
  7 + primitive: int
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: usersCode
  5 + description: 用户编号
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: usersCompanyId
  5 + description: 用户公司编号
  6 + type:
  7 + primitive: int64
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: usersId
  5 + description: 用户编号
  6 + type:
  7 + primitive: int64
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: usersName
  5 + description: 用户姓名
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: usersOrg
  5 + description: 用户关联的组织
  6 + type:
  7 + array: int64
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: usersRole
  5 + description: 用户关联的角色
  6 + type:
  7 + array: int64
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: usersType
  5 + description: 用户类型 1:企业内部用户(内部添加) 2:共创用户 1024:企业注册用户(注册添加)
  6 + type:
  7 + primitive: int
  1 +version: v1
  2 +kind: Project
  3 +metadata:
  4 + name: project
  5 + description: 天联企业管理系统
  6 + version: 0.0.1
  7 + repository: gitlab.fjmaimaimai.com/allied-creation/allied-creation-user
  8 + contact:
  9 + name:
  10 + email:
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: app
  5 + description: app项目管理
  6 + attributes:
  7 + - name: appId
  8 + description: appId
  9 + type:
  10 + primitive: int64
  11 + - name: project
  12 + description: 项目标识 ability
  13 + type:
  14 + primitive: string
  15 + - name: app
  16 + description: 应用标识 ability.boss.pad
  17 + type:
  18 + primitive: string
  19 + - name: icon
  20 + description: 图标地址
  21 + type:
  22 + primitive: string
  23 + - name: remark
  24 + description: 备注信息
  25 + type:
  26 + primitive: string
  27 + - ref: createAt
  28 + required: true
  29 + - ref: updateAt
  30 + required: true
  31 + - ref: deleteAt
  32 + required: true
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: appVersion
  5 + description: App版本管理
  6 + attributes:
  7 + - name: appVersionId
  8 + description: app版本id
  9 + type:
  10 + primitive: int64
  11 + - name: app
  12 + description: 应用
  13 + type:
  14 + schema: app
  15 + - name: os
  16 + description: 设备类型 0:IOS 1:安卓
  17 + type:
  18 + primitive: int
  19 + - name: version
  20 + description: 版本信息
  21 + type:
  22 + schema: appVersionInfo
  23 + - name: remark
  24 + description: 备注信息
  25 + type:
  26 + primitive: string
  27 + - ref: createAt
  28 + required: true
  29 + - ref: updateAt
  30 + required: true
  31 + - ref: deleteAt
  32 + required: true
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: appVersionInfo
  5 + description: app 版本信息
  6 + attributes:
  7 + - name: versionNo
  8 + description: 版本号
  9 + type:
  10 + primitive: string
  11 + - name: versionName
  12 + description: 版本名称
  13 + type:
  14 + primitive: string
  15 + - name: title
  16 + description: 标题
  17 + type:
  18 + primitive: string
  19 + - name: summary
  20 + description: 版本概要
  21 + type:
  22 + primitive: string
  23 + - name: content
  24 + description: 版本内容
  25 + type:
  26 + primitive: string
  27 + - name: deviceType
  28 + description: 设备类型 0:ios , 1:android
  29 + type:
  30 + primitive: int
  31 + - name: downloadPage
  32 + description: 下载页面
  33 + type:
  34 + primitive: string
  35 + - name: downloadFile
  36 + description: 文件下载地址
  37 + type:
  38 + primitive: string
  39 + - name: updateType
  40 + description: 更新类型 0不需要更新 1是引导更新 2是强制更新
  41 + type:
  42 + primitive: int
  43 + - name: channel
  44 + description: 更新的渠道 当前渠道 0_AppStore、1_fir平台、2_华为、3_小米、4_魅族、5_oppo、6_vivo、7_360、8_百度、9_应用宝、10_其他(使用应用宝地址)
  45 + type:
  46 + array: int
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: company
  5 + description: 企业信息 (base)
  6 + attributes:
  7 + - ref: companyId
  8 + required: true
  9 + - name: companyConfig
  10 + description: 企业配置信息
  11 + type:
  12 + schema: companyConfig
  13 + - name: companyInfo
  14 + description: 企业基本信息
  15 + type:
  16 + schema: companyInfo
  17 + - name: status
  18 + description: 公司状态
  19 + type:
  20 + primitive: int
  21 + - ref: createAt
  22 + required: false
  23 + - ref: updateAt
  24 + required: false
  25 +
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: companyConfig
  5 + description: 公司配置信息
  6 + attributes:
  7 + - name: systemName
  8 + description: 系统名称
  9 + type:
  10 + primitive: string
  11 + - name: theme
  12 + description: 主题
  13 + type:
  14 + primitive: string
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: companyInfo
  5 + description: 公司信息
  6 + attributes:
  7 + - ref: companyName
  8 + required: true
  9 + - ref: scale
  10 + required: true
  11 + - ref: logo
  12 + required: true
  13 + - ref: address
  14 + required: true
  15 + - ref: industryCategory
  16 + required: true
  17 + - ref: contacts
  18 + required: true
  19 + - name: registTime
  20 + description: 注册时间
  21 + type:
  22 + primitive: datetime
  23 + - name: registStatus
  24 + description: 注册状态 1:已注册 2:待认证 3:已认证
  25 + type:
  26 + primitive: int
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: cooperationInfo
  5 + description: 共创信息
  6 + attributes:
  7 + - name: cooperationCompany
  8 + description: 共创公司
  9 + type:
  10 + primitive: string
  11 + - name: cooperationDeadline
  12 + description: 共创到期时间 (yyyy-MM-dd)
  13 + type:
  14 + primitive: datetime
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: credentialAuth
  5 + description: 凭证认证 (base)
  6 + attributes:
  7 + - name: credential
  8 + description: 凭证
  9 + type:
  10 + primitive: string
  11 + - name: deviceType
  12 + description: 设备类型
  13 + type:
  14 + primitive: string
  15 + - name: expire
  16 + description: 过期时间蹉(unix)
  17 + type:
  18 + primitive: int64
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: customizeMenus
  5 + description: 自定义菜单 (base)(菜单维护)
  6 + attributes:
  7 + - name: customizeMenusId
  8 + description: 自定义菜单id
  9 + type:
  10 + primitive: int64
  11 + - ref: companyId
  12 + required: true
  13 + - name: menuId
  14 + description: 菜单id
  15 + type:
  16 + primitive: int64
  17 + - name: menuName
  18 + description: 菜单名称
  19 + type:
  20 + primitive: string
  21 + - name: menuAlias
  22 + description: 菜单别名
  23 + type:
  24 + primitive: string
  25 + - name: sort
  26 + description: 排序
  27 + type:
  28 + primitive: int
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: dataColumn
  5 + description: 数据列
  6 + attributes:
  7 + - name: dataIndex
  8 + description: 数据列字段代码名称
  9 + type:
  10 + primitive: string
  11 + - name: title
  12 + description: 数据列字段中文描述
  13 + type:
  14 + primitive: string
  15 + - name: sortBy
  16 + description: 默认的排序
  17 + type:
  18 + primitive: int64
  19 + - name: isDefault
  20 + description: 是否是默认配置字段
  21 + type:
  22 + primitive: int
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: dataColumnPerson
  5 + description: 列表设置个人:页面列表数据的输出列的个人配置
  6 + attributes:
  7 + - name: dataColumnPersonId
  8 + description: 数据id
  9 + type:
  10 + primitive: int64
  11 + - name: resource
  12 + description: 资源 (列如表单 user)
  13 + type:
  14 + primitive: string
  15 + - name: columns
  16 + description: 配置的用户显示的字段,例 `["c1","c2"]``
  17 + type:
  18 + array: string
  19 + - name: usersId
  20 + description: 归属的用户id
  21 + type:
  22 + primitive: int64
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: dataColumnSys
  5 + description: 列表设置系统:页面列表数据的输出列的系统全局配置
  6 + attributes:
  7 + - name: dataColumnSysId
  8 + description: 数据id
  9 + type:
  10 + primitive: int64
  11 + - name: resource
  12 + description: 资源 (列如表单 user)
  13 + type:
  14 + primitive: string
  15 + - name: columns
  16 + description: 数据列字段代码名称
  17 + type:
  18 + array: dataColumn
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: ext
  5 + description: 冗余附加数据
  6 + attributes:
  7 + - ref: usersName
  8 + required: true
  9 + - ref: orgName
  10 + required: true
  11 + - ref: phone
  12 + required: true
  13 + - ref: depName
  14 + required: true
  15 + - name: parentDepName
  16 + description: 父级部门名称
  17 + type:
  18 + primitive: string
  19 + required: true
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: im
  5 + description: 冗余附加数据
  6 + attributes:
  7 + - name: accid
  8 + description: 网易云信ID
  9 + type:
  10 + primitive: string
  11 + - name: imToken
  12 + description: 网易云信Token
  13 + type:
  14 + primitive: string
  15 + - name: csAccountId
  16 + description: 系统分配客服ID
  17 + type:
  18 + primitive: string
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: menu
  5 + description: 系统菜单
  6 + attributes:
  7 + - ref: menuId
  8 + required: true
  9 + - ref: parentId
  10 + required: true
  11 + - ref: menuName
  12 + required: true
  13 + - ref: code
  14 + required: true
  15 + - ref: accessCode
  16 + required: true
  17 + - ref: menuType
  18 + required: true
  19 + - ref: icon
  20 + required: true
  21 + - ref: sort
  22 + required: true
  23 + - ref: remark
  24 + required: true
  25 + - name: category
  26 + description: 菜单类别 (web:1、app:2)
  27 + type:
  28 + primitive: string
  29 + - name: parentPath
  30 + description: 父级节点路径("0,11,12,")
  31 + type:
  32 + primitive: string
  33 + - ref: enableStatus
  34 + description: 启用状态(启用:1 禁用:0)
  35 + required: true
  36 + - ref: isPublish
  37 + required: true
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: org
  5 + description: 组织 organization
  6 + attributes:
  7 + - ref: orgId
  8 + required: true
  9 + - ref: companyId
  10 + required: true
  11 + - ref: createAt
  12 + required: true
  13 + - ref: updateAt
  14 + required: true
  15 + - ref: deleteAt
  16 + required: true
  17 + - ref: orgCode
  18 + required: true
  19 + - ref: orgName
  20 + required: true
  21 + - name: ext
  22 + description: 扩展数据
  23 + type:
  24 + schema: ext
  25 + - name: isOrg
  26 + required: true
  27 + - ref: parentId
  28 + required: true
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: phoneAuth
  5 + description: 手机认证 (base)
  6 + attributes:
  7 + - ref: phone
  8 + required: true
  9 + - ref: password
  10 + required: true
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: role
  5 + description: 角色 (base)
  6 + attributes:
  7 + - ref: roleId
  8 + required: true
  9 + - ref: companyId
  10 + required: true
  11 + - ref: orgId
  12 + required: true
  13 + - ref: roleName
  14 + required: true
  15 + - ref: accessMenus
  16 + required: true
  17 + - ref: desc
  18 + required: true
  19 + - name: ext
  20 + description: 扩展数据
  21 + type:
  22 + schema: ext
  23 + - ref: createAt
  24 + required: true
  25 + - ref: updateAt
  26 + required: true
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: users
  5 + description: 用户(base)
  6 + attributes:
  7 + - ref: usersId
  8 + required: true
  9 + - name: usersInfo
  10 + description: 用户信息
  11 + type:
  12 + schema: usersInfo
  13 + - name: phoneAuth
  14 + description: 手机认证
  15 + type:
  16 + schemal: phoneAuth
  17 + - name: im
  18 + description: IM信息
  19 + type:
  20 + schemal: im
  21 + - ref: createAt
  22 + required: true
  23 + - ref: updateAt
  24 + required: true
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: usersCompany
  5 + description: 用户 (base)
  6 + attributes:
  7 + - ref: usersCompanyId
  8 + required: true
  9 + - ref: companyId
  10 + required: true
  11 + - ref: usersId
  12 + required: true
  13 + - ref: usersType
  14 + required: true
  15 + - ref: usersCode
  16 + required: true
  17 + - name: organizationId
  18 + description: 组织机构
  19 + type:
  20 + primitive: int64
  21 + - name: departmentId
  22 + description: 所属部门
  23 + type:
  24 + primitive: int64
  25 + - name: usersOrg
  26 + description: 用户关联的组织
  27 + type:
  28 + array: int64
  29 + - name: usersRole
  30 + description: 用户关联的角色
  31 + type:
  32 + array: int64
  33 + - name: favoriteMenus
  34 + description: 收藏的菜单(工作台)(菜单编码列表)
  35 + type:
  36 + array: string
  37 + - name: cooperationInfo
  38 + description: 共创信息 (共创用户有效)
  39 + type:
  40 + schema: cooperationInfo
  41 + - name: enableStatus
  42 + description: 启用状态(启用:1 禁用:2)
  43 + type:
  44 + primitive: int
  45 + - name: ext
  46 + description: 扩展数据
  47 + type:
  48 + schema: ext
  49 + - ref: createAt
  50 + required: true
  51 + - ref: updateAt
  52 + required: true
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: usersInfo
  5 + description: 用户信息 (base)
  6 + attributes:
  7 + - ref: usersName
  8 + required: true
  9 + - ref: phone
  10 + required: true
  11 + - ref: avator
  12 + required: true
  13 + - ref: email
  14 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: companySignUp
  5 + type: command
  6 + description: 企业注册
  7 + payload:
  8 + - ref: companyName
  9 + required: true
  10 + - ref: contacts
  11 + required: true
  12 + - ref: phone
  13 + required: true
  14 + - ref: scale
  15 + required: true
  16 + - ref: industryCategory
  17 + required: true
  18 + - ref: password
  19 + required: true
  20 + result:
  21 + - name: users
  22 + type:
  23 + schema: users
  24 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: resetPassword
  5 + type: command
  6 + description: 重置密码
  7 + payload:
  8 + - ref: phone
  9 + required: true
  10 + - ref: password
  11 + required: true
  12 + result:
  13 + - name: msg
  14 + description: 消息
  15 + type:
  16 + primitive: string
  1 +version: v1
  2 +kind: Service
  3 +metadata:
  4 + name: auth
  5 + description: 认证服务
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: createMenu
  5 + type: command
  6 + description: 创建菜单服务
  7 + payload:
  8 + - name: parentId
  9 + description: 父级id
  10 + type:
  11 + primitive: int64
  12 + - name: menuName
  13 + description: 菜单名称
  14 + type:
  15 + primitive: string
  16 + required: true
  17 + - name: code
  18 + description: 菜单编码 SYSTEM_USER_EDIT / 100101 (字符编码)
  19 + type:
  20 + primitive: string
  21 + required: true
  22 + - name: accessCode
  23 + description: 权限编码 users:edit
  24 + type:
  25 + primitive: string
  26 + required: true
  27 + - name: menuType
  28 + description: 菜单类型 (目录catalog、菜单menu、按钮button)
  29 + type:
  30 + primitive: string
  31 + required: true
  32 + - name: icon
  33 + description: 菜单图标
  34 + type:
  35 + primitive: string
  36 + - name: sort
  37 + description: 排序
  38 + type:
  39 + primitive: int
  40 + required: true
  41 + - name: remark
  42 + description: 菜单说明
  43 + type:
  44 + primitive: string
  45 + - ref: enableStatus
  46 + description: 启用状态(启用:1 禁用:0)
  47 + required: true
  48 + - name: isPublish
  49 + description: 菜单是否公开状态,[0:隐藏],[1:显示],默认显示
  50 + type:
  51 + primitive: int
  52 + required: true
  53 + result:
  54 + - name: menu
  55 + type:
  56 + schema: menu
  57 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: getMenu
  5 + type: query
  6 + description: 返回菜单服务
  7 + payload:
  8 + - ref: menuId
  9 + required: true
  10 + result:
  11 + - name: menu
  12 + type:
  13 + schema: menu
  14 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: listMenu
  5 + type: query
  6 + description: 返回菜单服务列表
  7 + payload:
  8 + - name: menuCategory
  9 + description: 菜单类别 web app
  10 + required: false
  11 + type:
  12 + primitive: string
  13 + - name: parentId
  14 + description: 菜单父级id 0:查询所有 n:父级id为n的菜单列表
  15 + required: false
  16 + type:
  17 + primitive: int64
  18 + - name: menuName
  19 + description: 菜单名称过滤
  20 + required: false
  21 + type:
  22 + primitive: string
  23 + - ref: offset
  24 + required: true
  25 + - ref: limit
  26 + required: true
  27 + result:
  28 + - ref: count
  29 + required: true
  30 + - name: menus
  31 + type:
  32 + array: menu
  33 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: removeMenu
  5 + type: command
  6 + description: 移除菜单服务
  7 + payload:
  8 + - ref: menuId
  9 + required: true
  10 + result:
  11 + - name: menu
  12 + type:
  13 + schema: menu
  14 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: updateMenu
  5 + type: command
  6 + description: 更新菜单服务
  7 + payload:
  8 + - ref: menuId
  9 + required: true
  10 + - name: menuName
  11 + description: 菜单名称
  12 + type:
  13 + primitive: string
  14 + required: true
  15 + - name: code
  16 + description: 菜单编码 SYSTEM_USER_EDIT / 100101 (字符编码)
  17 + type:
  18 + primitive: string
  19 + required: true
  20 + - name: accessCode
  21 + description: 权限编码 users:edit
  22 + type:
  23 + primitive: string
  24 + - name: menuType
  25 + description: 菜单类型 (目录catalog、菜单menu、按钮button)
  26 + type:
  27 + primitive: string
  28 + required: true
  29 + - name: icon
  30 + description: 菜单图标
  31 + type:
  32 + primitive: string
  33 + - name: sort
  34 + description: 排序
  35 + type:
  36 + primitive: int
  37 + required: true
  38 + - name: remark
  39 + description: 菜单说明
  40 + type:
  41 + primitive: string
  42 + - name: isPublish
  43 + description: 菜单是否公开状态,[0:隐藏],[1:显示],默认显示
  44 + type:
  45 + primitive: int
  46 + - ref: enableStatus
  47 + description: 启用状态(启用:1 禁用:0)
  48 + required: true
  49 + result:
  50 + - name: menu
  51 + type:
  52 + schema: menu
  53 + required: true
  1 +version: v1
  2 +kind: Service
  3 +metadata:
  4 + name: menu
  5 + description: 菜单服务
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: createOrg
  5 + type: command
  6 + description: 创建组织管理
  7 + payload:
  8 + - ref: companyId
  9 + required: true
  10 + - ref: orgCode
  11 + required: true
  12 + - ref: orgName
  13 + required: true
  14 + - name: isOrg
  15 + required: true
  16 + - ref: parentId
  17 + required: true
  18 + result:
  19 + - name: org
  20 + type:
  21 + schema: org
  22 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: getOrg
  5 + type: query
  6 + description: 返回组织管理
  7 + payload:
  8 + - ref: orgId
  9 + required: true
  10 + result:
  11 + - name: org
  12 + type:
  13 + schema: org
  14 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: listOrg
  5 + type: query
  6 + description: 返回组织管理列表
  7 + payload:
  8 + - ref: offset
  9 + required: true
  10 + - ref: limit
  11 + required: true
  12 + - ref: orgCode
  13 + required: false
  14 + - ref: depName
  15 + required: false
  16 + - ref: parentId
  17 + required: false
  18 + result:
  19 + - ref: count
  20 + required: true
  21 + - name: orgs
  22 + type:
  23 + array: org
  24 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: removeOrg
  5 + type: command
  6 + description: 移除组织管理
  7 + payload:
  8 + - ref: orgId
  9 + required: true
  10 + result:
  11 + - name: org
  12 + type:
  13 + schema: org
  14 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: updateOrg
  5 + type: command
  6 + description: 更新组织管理
  7 + payload:
  8 + - ref: orgId
  9 + required: true
  10 + - ref: orgCode
  11 + required: true
  12 + - ref: orgName
  13 + required: true
  14 + - name: isOrg
  15 + required: true
  16 + - ref: parentId
  17 + required: true
  18 + result:
  19 + - name: org
  20 + type:
  21 + schema: org
  22 + required: true
  1 +version: v1
  2 +kind: Service
  3 +metadata:
  4 + name: org
  5 + description: 组织管理
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: createRole
  5 + type: command
  6 + description: 创建角色管理
  7 + payload:
  8 + - ref: roleName
  9 + required: true
  10 + - ref: desc
  11 + required: false
  12 + result:
  13 + - name: role
  14 + type:
  15 + schema: role
  16 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: getRole
  5 + type: query
  6 + description: 返回角色管理
  7 + payload:
  8 + - ref: roleId
  9 + required: true
  10 + result:
  11 + - name: role
  12 + type:
  13 + schema: role
  14 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: listRole
  5 + type: query
  6 + description: 返回角色管理列表
  7 + payload:
  8 + - ref: offset
  9 + required: true
  10 + - ref: limit
  11 + required: true
  12 + - ref: roleName
  13 + required: false
  14 + - ref: orgName
  15 + required: false
  16 + result:
  17 + - ref: count
  18 + required: true
  19 + - name: roles
  20 + type:
  21 + array: role
  22 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: removeRole
  5 + type: command
  6 + description: 移除角色管理
  7 + payload:
  8 + - ref: roleId
  9 + required: true
  10 + result:
  11 + - name: role
  12 + type:
  13 + schema: role
  14 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: updateRole
  5 + type: command
  6 + description: 更新角色管理
  7 + payload:
  8 + - ref: roleId
  9 + required: true
  10 + - ref: roleName
  11 + required: true
  12 + - ref: desc
  13 + required: false
  14 + result:
  15 + - name: role
  16 + type:
  17 + schema: role
  18 + required: true
  1 +version: v1
  2 +kind: Service
  3 +metadata:
  4 + name: role
  5 + description: 角色管理
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: check
  5 + type: command
  6 + description: 密码检查
  7 + payload:
  8 + - ref: usersId
  9 + required: true
  10 + - ref: phone
  11 + required: true
  12 + - ref: password
  13 + required: true
  14 + result:
  15 + - name: users
  16 + type:
  17 + schema: users
  18 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: createUsers
  5 + type: command
  6 + description: 创建用户信息
  7 + payload:
  8 + - ref: usersId
  9 + required: true
  10 + - name: usersInfo
  11 + description: 用户信息
  12 + type:
  13 + schema: usersInfo
  14 + - name: phoneAuth
  15 + description: 手机认证
  16 + type:
  17 + schemal: phoneAuth
  18 + - name: im
  19 + description: IM信息
  20 + type:
  21 + schemal: im
  22 + result:
  23 + - name: users
  24 + type:
  25 + schema: users
  26 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: getUsers
  5 + type: query
  6 + description: 返回用户信息
  7 + payload:
  8 + - ref: usersId
  9 + required: true
  10 + result:
  11 + - name: users
  12 + type:
  13 + schema: users
  14 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: listUsers
  5 + type: query
  6 + description: 返回用户信息列表
  7 + payload:
  8 + - ref: offset
  9 + required: true
  10 + - ref: limit
  11 + required: true
  12 + result:
  13 + - ref: count
  14 + required: true
  15 + - name: users
  16 + type:
  17 + array: users
  18 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: phoneAuth
  5 + type: command
  6 + description: 手机认证
  7 + payload:
  8 + - ref: usersId
  9 + required: true
  10 + - ref: phone
  11 + required: true
  12 + - ref: password
  13 + required: true
  14 + result:
  15 + - name: users
  16 + type:
  17 + schema: users
  18 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: removeUsers
  5 + type: command
  6 + description: 移除用户信息
  7 + payload:
  8 + - ref: usersId
  9 + required: true
  10 + result:
  11 + - name: users
  12 + type:
  13 + schema: users
  14 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: updateUsers
  5 + type: command
  6 + description: 更新用户信息
  7 + payload:
  8 + - ref: usersId
  9 + required: true
  10 + - name: usersInfo
  11 + description: 用户信息
  12 + type:
  13 + schema: usersInfo
  14 + - name: phoneAuth
  15 + description: 手机认证
  16 + type:
  17 + schemal: phoneAuth
  18 + - name: im
  19 + description: IM信息
  20 + type:
  21 + schemal: im
  22 + result:
  23 + - name: users
  24 + type:
  25 + schema: users
  26 + required: true
  1 +version: v1
  2 +kind: Service
  3 +metadata:
  4 + name: users
  5 + description: 用户信息
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: batchAdd
  5 + type: command
  6 + description: 批量添加
  7 + payload:
  8 + - ref: usersType
  9 + required: true
  10 + - name: users
  11 + description: 用户列表
  12 + type:
  13 + array: usersCompany
  14 + result:
  15 + - name: count
  16 + type:
  17 + primitive: int
  18 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: batchEnable
  5 + type: command
  6 + description: 批量修改启用状态
  7 + payload:
  8 + - name: usersCompanyIds
  9 + type:
  10 + array: int64
  11 + required: true
  12 + - ref: enableStatus
  13 + required: true
  14 + result:
  15 + - name: usersCompany
  16 + type:
  17 + schema: usersCompany
  18 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: batchResetPassword
  5 + type: command
  6 + description: 批量重置密码
  7 + payload:
  8 + - name: usersCompanyIds
  9 + type:
  10 + array: int64
  11 + required: true
  12 + - ref: password
  13 + required: true
  14 + result:
  15 + - name: usersCompany
  16 + type:
  17 + schema: usersCompany
  18 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: createUsersCompany
  5 + type: command
  6 + description: 创建企业用户管理
  7 + payload:
  8 + - ref: companyId
  9 + required: true
  10 + - ref: usersType
  11 + required: true
  12 + - ref: usersCode
  13 + required: true
  14 + - name: organizationId
  15 + description: 组织机构
  16 + type:
  17 + primitive: int64
  18 + required: true
  19 + - name: departmentId
  20 + description: 所属部门
  21 + type:
  22 + primitive: int64
  23 + required: true
  24 + - name: usersOrg
  25 + description: 用户关联的组织
  26 + type:
  27 + array: int64
  28 + required: false
  29 + - name: usersRole
  30 + description: 用户关联的角色
  31 + type:
  32 + array: int64
  33 + required: false
  34 + - name: cooperationInfo
  35 + description: 共创信息 (共创用户有效)
  36 + type:
  37 + schema: cooperationInfo
  38 + required: false
  39 + - ref: enableStatus
  40 + required: true
  41 + - ref: usersName
  42 + required: true
  43 + - ref: phone
  44 + required: true
  45 + - ref: avator
  46 + required: false
  47 + - ref: email
  48 + required: false
  49 + result:
  50 + - name: usersCompany
  51 + type:
  52 + schema: usersCompany
  53 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: getUsersCompany
  5 + type: query
  6 + description: 返回企业用户管理
  7 + payload:
  8 + - ref: usersCompanyId
  9 + required: true
  10 + result:
  11 + - name: usersCompany
  12 + type:
  13 + schema: usersCompany
  14 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: listUsersCompany
  5 + type: query
  6 + description: 返回企业用户管理列表
  7 + payload:
  8 + - ref: offset
  9 + required: true
  10 + - ref: limit
  11 + required: true
  12 + - ref: userName
  13 + required: false
  14 + - ref: depName
  15 + required: false
  16 + - name: cooperationCompany
  17 + type:
  18 + primitive: string
  19 + required: false
  20 + result:
  21 + - ref: count
  22 + required: true
  23 + - name: usersCompanys
  24 + type:
  25 + array: usersCompany
  26 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: removeUsersCompany
  5 + type: command
  6 + description: 移除企业用户管理
  7 + payload:
  8 + - ref: usersCompanyId
  9 + required: true
  10 + result:
  11 + - name: usersCompany
  12 + type:
  13 + schema: usersCompany
  14 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: updateUsersCompany
  5 + type: command
  6 + description: 更新企业用户管理
  7 + payload:
  8 + - ref: usersCompanyId
  9 + required: true
  10 + - name: organizationId
  11 + description: 组织机构
  12 + type:
  13 + primitive: int64
  14 + required: true
  15 + - name: departmentId
  16 + description: 所属部门
  17 + type:
  18 + primitive: int64
  19 + required: true
  20 + - name: usersOrg
  21 + description: 用户关联的组织
  22 + type:
  23 + array: int64
  24 + required: false
  25 + - name: usersRole
  26 + description: 用户关联的角色
  27 + type:
  28 + array: int64
  29 + required: false
  30 + - name: cooperationInfo
  31 + description: 共创信息 (共创用户有效)
  32 + type:
  33 + schema: cooperationInfo
  34 + required: false
  35 + - ref: enableStatus
  36 + required: true
  37 + - ref: usersName
  38 + required: true
  39 + - ref: phone
  40 + required: true
  41 + - ref: avator
  42 + required: false
  43 + - ref: email
  44 + required: false
  45 + result:
  46 + - name: usersCompany
  47 + type:
  48 + schema: usersCompany
  49 + required: true
  1 +version: v1
  2 +kind: Service
  3 +metadata:
  4 + name: usersCompany
  5 + description: 企业用户管理