作者
陈志颖
docs:添加合伙人CRUD
|
|
version: v1
|
|
|
kind: Method
|
|
|
metadata:
|
|
|
name: createPartner
|
|
|
type: command
|
|
|
description: 创建合伙人增删改查
|
|
|
result:
|
|
|
- name: partner
|
|
|
type:
|
|
|
schema: partner |
...
|
...
|
|
|
|
version: v1
|
|
|
kind: Method
|
|
|
metadata:
|
|
|
name: getPartner
|
|
|
type: query
|
|
|
description: 返回合伙人增删改查
|
|
|
payload:
|
|
|
- ref: partnerId
|
|
|
required: true
|
|
|
result:
|
|
|
- name: partner
|
|
|
type:
|
|
|
schema: partner |
...
|
...
|
|
|
|
version: v1
|
|
|
kind: Method
|
|
|
metadata:
|
|
|
name: listPartner
|
|
|
type: query
|
|
|
description: 返回合伙人增删改查列表
|
|
|
payload:
|
|
|
- ref: offset
|
|
|
required: true
|
|
|
- ref: limit
|
|
|
required: true
|
|
|
result:
|
|
|
- ref: count
|
|
|
required: true
|
|
|
- name: partner
|
|
|
type:
|
|
|
schema: partner |
...
|
...
|
|
|
|
version: v1
|
|
|
kind: Method
|
|
|
metadata:
|
|
|
name: removePartner
|
|
|
type: command
|
|
|
description: 移除合伙人增删改查
|
|
|
payload:
|
|
|
- ref: partnerId
|
|
|
required: true
|
|
|
result:
|
|
|
- name: partner
|
|
|
type:
|
|
|
schema: partner |
...
|
...
|
|
|
|
version: v1
|
|
|
kind: Method
|
|
|
metadata:
|
|
|
name: updatePartner
|
|
|
type: command
|
|
|
description: 更新合伙人增删改查
|
|
|
payload:
|
|
|
- ref: partnerId
|
|
|
required: true
|
|
|
result:
|
|
|
- name: partner
|
|
|
type:
|
|
|
schema: partner |
...
|
...
|
|