作者
王健
公新增【ã公司基础服务
|
|
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: true
|
|
|
- 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:
|
|
|
- ref: count
|
|
|
required: true
|
|
|
- name: company
|
|
|
type:
|
|
|
schema: company |
...
|
...
|
|
|
|
version: v1
|
|
|
kind: Method
|
|
|
metadata:
|
|
|
name: updateCompany
|
|
|
type: command
|
|
|
description: 更新
|
|
|
payload:
|
|
|
- ref: companyId
|
|
|
required: true
|
|
|
result:
|
|
|
- ref: count
|
|
|
required: true
|
|
|
- name: company
|
|
|
type:
|
|
|
schema: company |
...
|
...
|
|
|
|
version: v1
|
|
|
kind: Service
|
|
|
metadata:
|
|
|
name: company
|
|
|
description: 公司服务 |
...
|
...
|
|