作者 yangfu

add menu access

version: v1
kind: Attribute
metadata:
name: usersAuthId
description: 用户认证Id
name: usersCompanyId
description: 用户公司编号
type:
primitive: int64
... ...
... ... @@ -8,43 +8,35 @@ metadata:
description: 权限Id
type:
primitive: int64
- name: parentId
description: 父级ID
type:
primitive: int64
- name: accessName
description: 权限名称
type:
primitive: string
- name: parentId
description: 父级ID
- name: object
description: 对象 eg:users
type:
primitive: string
- name: module
description: 模块 I M B R 首页、管理、业务、报表
- name: action
description: 操作行为 eg:delete 操作列表(add/delete/edit/list/import/export)
type:
primitive: string
- name: accessType
description: 权限类型(module>subModule>menu>button>feature)
- name: accessCode
description: 权限编码 eg:users:delete
type:
primitive: string
- name: status
description: 状态 1:启用 2:可配置 4.可收藏 8:需要授权才能访问
description: 状态 1:启用权限验证
type:
primitive: int64
primitive: int
- name: sort
description: 排序
type:
primitive: int
- name: icon
description: 图标
type:
primitive: string
- name: description
description: 描述说明
type:
primitive: string
- name: object
description: 对象 eg:/users/userInfo
type:
primitive: string
- name: action
description: 允许动作 eg:GET
type:
primitive: string
... ...
... ... @@ -8,8 +8,8 @@ metadata:
required: true
- ref: organizationId
required: true
- name: accessId
description: 权限id
- name: menuId
description: 菜单id
type:
primitive: int64
- name: menuName
... ...
version: v1
kind: Schema
metadata:
name: menu
description: 系统菜单
attributes:
- name: menuId
description: 菜单编号
type:
primitive: int64
- name: parentId
description: 父级id
type:
primitive: int64
- name: menuName
description: 菜单名称
type:
primitive: string
- name: module
description: 模块 (首页 INDEX、业务BISINESS、管理MANAGER、报表REPORT)
type:
primitive: string
- name: code
description: 菜单编码
type:
primitive: string
- name: menuType
description: 菜单类型 (模块module、子模块submodule、菜单menu、按钮button)
type:
primitive: string
- name: status
description: 菜单状态 (1:启用/禁用 2:启用收藏/禁用收藏 (默认禁用) )
type:
primitive: int
- name: access
description: 关联权限
type:
schema: access
- name: icon
description: 菜单图标
type:
primitive: string
- name: sort
description: 排序
type:
primitive: int
- name: desc
description: 菜单说明
type:
primitive: string
- name: tag
description: 菜单标签 (web、app)
type:
primitive: string
... ...
... ... @@ -2,47 +2,15 @@ version: v1
kind: Schema
metadata:
name: users
description: 用户 (base)
description: 用户(base)
attributes:
- ref: usersId
required: true
- ref: companyId
required: true
- ref: usersAuthId
required: true
- ref: usersType
required: true
- ref: createAt
required: true
- ref: updateAt
required: true
- ref: deleteAt
required: true
- name: usersStatus
description: 用户状态(启用:1 禁用:2)
type:
primitive: int
- name: usersInfo
description: 用户信息
type:
schema: usersInfo
- name: organization
description: 组织机构
type:
primitive: int64
- name: department
description: 所属部门
type:
primitive: int64
- name: organizationRoles
description: 组织权限列表
type:
array: organizationRole
- name: collectedMenus
description: 收藏的菜单(工作台)
- name: phoneAuth
description: 手机认证
type:
array: access
- name: cooperationInfo
description: 共创信息 (共创用户有效)
schemal: phoneAuth
- name: credentialAuths
description: 凭证认证
type:
primitive: cooperationInfo
array: credentialAuth
... ...
version: v1
kind: Schema
metadata:
name: usersAuth
description: 用户认证 (base)
attributes:
- ref: usersAuthId
required: true
- name: phoneAuth
description: 手机认证
type:
schemal: phoneAuth
- name: credentialAuths
description: 凭证认证
type:
array: credentialAuth
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: createAt
required: true
- ref: updateAt
required: true
- ref: deleteAt
required: true
- name: usersStatus
description: 用户状态(启用:1 禁用:2)
type:
primitive: int
- name: usersInfo
description: 用户信息
type:
schema: usersInfo
- name: organization
description: 组织机构
type:
primitive: int64
- name: department
description: 所属部门
type:
primitive: int64
- name: organizationRoles
description: 组织权限列表
type:
array: organizationRole
- name: collectedMenus
description: 收藏的菜单(工作台)
type:
array: access
- name: cooperationInfo
description: 共创信息 (共创用户有效)
type:
primitive: cooperationInfo
... ...