作者 yangfu

update dsl:company/partnerInfo/user/permission

version: v1
kind: HttpApi
metadata:
service: company
path: /companys
endpoints:
- method: createCompany
route:
post: /
- method: updateCompany
route:
put: /{companyId}
- method: getCompany
route:
get: /{companyId}
- method: removeCompany
route:
delete: /{companyId}
- method: listCompany
route:
get: /
params:
- name: offset
- name: limit
... ...
version: v1
kind: HttpApi
metadata:
service: partner
path: /partners
endpoints:
- method: partnerCategories
route:
get: /categories
... ...
version: v1
kind: HttpApi
metadata:
service: permission
path: /permissions
endpoints:
... ...
version: v1
kind: Attribute
metadata:
name: cooperateTime
description: 合作时间
type:
primitive: datetime
... ...
version: v1
kind: Attribute
metadata:
name: status
description: 状态(1:启用或者0:禁用)
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: code
description: 权限编码
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: icon
description: 图标
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: name
description: 权限名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: parentId
description: 父级id
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: permissionId
description: 权限id
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: sort
description: 排序
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: accessPartners
description: 合伙人列表 用户类型为高管时有效
type:
array: int64
... ...
version: v1
kind: Attribute
metadata:
name: userType
description: 1.高管 2.合伙人 4:游客
type:
primitive: int
... ...
... ... @@ -10,3 +10,16 @@ metadata:
required: true
- ref: regionInfo
required: true
- ref: status
required: true
- ref: cooperateTime
required: true
- name: salesmans
description: 业务员
type:
array: salesman
- name: partnerCategorys
description: 合伙人类型
type:
array: partnerCategory
\ No newline at end of file
... ...
version: v1
kind: Schema
metadata:
name: permission
description: 权限
attributes:
- ref: permissionId
required: true
- ref: name
required: true
- ref: code
required: true
- ref: parentId
required: true
- ref: sort
required: true
- ref: icon
required: true
... ...
... ... @@ -6,6 +6,8 @@ metadata:
attributes:
- ref: userId
required: true
- ref: userType
required: true
- ref: permissions
required: true
- ref: companyId
... ... @@ -16,3 +18,11 @@ metadata:
required: true
- ref: isSenior
required: true
- ref: accessPartners
required: true
- ref: createAt
required: true
- ref: updateAt
required: true
- ref: deleteAt
required: true
\ No newline at end of file
... ...
... ... @@ -12,7 +12,7 @@ metadata:
- ref: status
required: true
- ref: remarks
required: true
required: false
- name: adminId
description: 公司主管理员Id
type:
... ...
... ... @@ -8,8 +8,6 @@ metadata:
- ref: companyId
required: true
result:
- ref: count
required: true
- name: company
type:
schema: company
... ...
... ... @@ -7,9 +7,20 @@ metadata:
payload:
- ref: companyId
required: true
- ref: name
required: false
- ref: abbreviation
required: false
- ref: status
required: false
- ref: remarks
required: false
- name: adminId
description: 公司主管理员Id
type:
primitive: int64
required: false
result:
- ref: count
required: true
- name: company
type:
schema: company
... ...
version: v1
kind: Method
metadata:
name: partnerCategories
type: query
description: 合伙人分类列表
result:
- name: partner
type:
array: partnerCategory
... ...
version: v1
kind: Service
metadata:
name: partner
description: 合伙人服务
... ...
version: v1
kind: Method
metadata:
name: menus
type: query
description: 根据当前用户返回权限列表
payload:
- ref: userId
required: true
result:
- ref: count
required: true
- name: permissions
type:
array: permission
... ...
version: v1
kind: Service
metadata:
name: permission
description: 权限服务
... ...