作者 yangfu

update dsl:company/partnerInfo/user/permission

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