作者 陈志颖

Merge branch 'dev' of http://gitlab.fjmaimaimai.com/mmm-go-pp/partner01 into feature/order

正在显示 37 个修改的文件 包含 394 行增加1 行删除
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: companyId
description: 公司Id
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: companyInfo
description: 公司信息
type:
schema: companyInfo
... ...
version: v1
kind: Attribute
metadata:
name: abbreviation
description: 公司简称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: enable
description: 是否有效【1:有效】【2:无效】
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: logo
description: 公司logo
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: name
description: 公司名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: phone
description: 公司联系电话
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: remarks
description: 备注
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: status
description: 状态 1正常 2禁用
type:
primitive: int64
... ...
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
... ...
version: v1
kind: Schema
metadata:
name: company
description: 公司信息
attributes:
- ref: companyId
required: true
- ref: companyInfo
required: true
- ref: createAt
required: true
- ref: updateAt
required: true
- ref: deleteAt
required: true
\ No newline at end of file
... ...
version: v1
kind: Schema
metadata:
name: companyInfo
description: 公司信息
attributes:
- ref: companyId
required: true
- ref: name
required: true
- ref: abbreviation
required: true
- ref: logo
required: true
- ref: phone
required: true
- ref: status
required: true
- ref: remarks
required: true
- ref: enable
required: true
- name: admin
description: 公司主管理员
type:
schema: userInfo
\ No newline at end of file
... ...
... ... @@ -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
... ... @@ -15,4 +17,12 @@ metadata:
- ref: status
required: true
- ref: isSenior
required: true
\ No newline at end of file
required: true
- ref: accessPartners
required: true
- ref: createAt
required: true
- ref: updateAt
required: true
- ref: deleteAt
required: true
\ No newline at end of file
... ...
version: v1
kind: Method
metadata:
name: createCompany
type: command
description: 创建
payload:
- ref: name
required: true
- ref: abbreviation
required: true
- ref: status
required: true
- ref: remarks
required: false
- name: adminId
description: 公司主管理员Id
type:
primitive: int64
result:
- ref: count
required: true
- name: company
type:
schema: company
... ...
version: v1
kind: Method
metadata:
name: getCompany
type: query
description: 返回
payload:
- ref: companyId
required: true
result:
- ref: count
required: true
- name: company
type:
schema: company
... ...
version: v1
kind: Method
metadata:
name: listCompany
type: query
description: 返回列表
payload:
- ref: offset
required: true
- ref: limit
required: true
result:
- ref: count
required: true
- name: company
type:
schema: company
... ...
version: v1
kind: Method
metadata:
name: removeCompany
type: command
description: 移除
payload:
- ref: companyId
required: true
result:
- name: company
type:
schema: company
... ...
version: v1
kind: Method
metadata:
name: updateCompany
type: command
description: 更新
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:
- name: company
type:
schema: company
... ...
version: v1
kind: Service
metadata:
name: company
description: 公司服务
... ...
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: 权限服务
... ...