作者 王健

公新增【ã公司基础服务€‘

  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: createCompany
  5 + type: command
  6 + description: 创建
  7 + payload:
  8 + - ref: name
  9 + required: true
  10 + - ref: abbreviation
  11 + required: true
  12 + - ref: status
  13 + required: true
  14 + - ref: remarks
  15 + required: true
  16 + - name: adminId
  17 + description: 公司主管理员Id
  18 + type:
  19 + primitive: int64
  20 + result:
  21 + - ref: count
  22 + required: true
  23 + - name: company
  24 + type:
  25 + schema: company
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: getCompany
  5 + type: query
  6 + description: 返回
  7 + payload:
  8 + - ref: companyId
  9 + required: true
  10 + result:
  11 + - ref: count
  12 + required: true
  13 + - name: company
  14 + type:
  15 + schema: company
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: listCompany
  5 + type: query
  6 + description: 返回列表
  7 + payload:
  8 + - ref: offset
  9 + required: true
  10 + - ref: limit
  11 + required: true
  12 + result:
  13 + - ref: count
  14 + required: true
  15 + - name: company
  16 + type:
  17 + schema: company
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: removeCompany
  5 + type: command
  6 + description: 移除
  7 + payload:
  8 + - ref: companyId
  9 + required: true
  10 + result:
  11 + - ref: count
  12 + required: true
  13 + - name: company
  14 + type:
  15 + schema: company
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: updateCompany
  5 + type: command
  6 + description: 更新
  7 + payload:
  8 + - ref: companyId
  9 + required: true
  10 + result:
  11 + - ref: count
  12 + required: true
  13 + - name: company
  14 + type:
  15 + schema: company
  1 +version: v1
  2 +kind: Service
  3 +metadata:
  4 + name: company
  5 + description: 公司服务