作者 yangfu

restruct dsl document

version: v1
kind: Attribute
metadata:
name: remark
description: 备注
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: companyCustomerId
description: 公司客户id
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: customerCode
description: 公司客户Code
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: customerName
description: 客户名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: companyProductId
description: 产品Id
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: productCode
description: 产品Code
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: productName
description: 产品名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: companyRegionId
description: 区域ID
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: parentRegionId
description: 上继区域
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: regionCode
description: 区域Code
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: regionName
description: 区域名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: usersType
description: 用户类型 : 1:普通用户 2:共创用户
type:
primitive: int
... ...
... ... @@ -2,7 +2,7 @@ version: v1
kind: Schema
metadata:
name: access
description: 权限
description: 权限 (base)
attributes:
- name: accessId
description: 权限Id
... ...
... ... @@ -2,7 +2,7 @@ version: v1
kind: Schema
metadata:
name: company
description: 企业信息
description: 企业信息 (base)
attributes:
- ref: companyId
required: true
... ...
version: v1
kind: Schema
metadata:
name: companyCustomer
description: 客户信息 (base)
attributes:
- ref: companyCustomerId
required: true
- ref: companyId
required: true
- ref: customerCode
required: true
- ref: customerName
required: true
... ...
version: v1
kind: Schema
metadata:
name: companyProduct
description: 产品信息 (base)
attributes:
- ref: companyProductId
required: true
- ref: companyId
required: true
- ref: productCode
required: true
- ref: productName
required: true
... ...
version: v1
kind: Schema
metadata:
name: companyRegion
description: 公司区域 (base)
attributes:
- ref: companyRegionId
required: true
- ref: companyId
required: true
- ref: regionCode
required: true
- ref: regionName
required: true
- ref: parentRegionId
required: true
- ref: remark
required: true
... ...
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
name: credentialAuth (base)
description: 凭证认证
attributes:
- name: credential
... ...
version: v1
kind: Schema
metadata:
name: customizeMenus
name: customizeMenus (base)
description: 自定义菜单(菜单维护)
attributes:
- ref: companyId
... ...
version: v1
kind: Schema
metadata:
name: organization
name: organization (base)
description: 组织
attributes:
- ref: organizationId
... ...
version: v1
kind: Schema
metadata:
name: organizationRole
description: 组织权限
attributes:
- ref: organizationId
required: true
- name: roles
description: 角色列表
type:
array: int64
... ...
version: v1
kind: Schema
metadata:
name: phoneAuth
name: phoneAuth (base)
description: 手机认证
attributes:
- name: phone
... ...
... ... @@ -2,7 +2,7 @@ version: v1
kind: Schema
metadata:
name: role
description: 角色
description: 角色 (base)
attributes:
- ref: roleId
required: true
... ...
... ... @@ -2,12 +2,14 @@ version: v1
kind: Schema
metadata:
name: users
description: 用户
description: 用户 (base)
attributes:
- ref: usersId
required: true
required: true
- ref: companyId
required: true
- ref: usersType
required: true
- ref: createAt
required: true
- ref: updateAt
... ... @@ -30,15 +32,15 @@ metadata:
description: 所属部门
type:
primitive: int64
- name: usersOrganization
description: 所属组织 (usersOrg?)
type:
array: int64
- name: usersRole
description: 所属角色
- name: organizationRoles
description: 组织权限列表
type:
array: int64
array: organizationRole
- name: collectedMenus
description: 收藏的菜单(工作台)
type:
array: access
array: access
- name: cooperationInfo
description: 共创信息 (共创用户有效)
type:
primitive: cooperationInfo
... ...
... ... @@ -2,7 +2,7 @@ version: v1
kind: Schema
metadata:
name: usersAuth
description: 用户认证
description: 用户认证 (base)
attributes:
- ref: usersAuthId
required: true
... ...