作者 陈志颖

feat:添加共创模式服务

version: v1
kind: HttpApi
metadata:
service: cooperationMode
path: /cooperation-modes
endpoints:
- method: createCooperationMode
route:
post: /
- method: updateCooperationMode
route:
put: /{cooperationModeId}
- method: getCooperationMode
route:
get: /{cooperationModeId}
- method: removeCooperationMode
route:
delete: /{cooperationModeId}
- method: listCooperationMode
route:
get: /
params:
- name: offset
- name: limit
... ...
... ... @@ -2,6 +2,6 @@ version: v1
kind: Attribute
metadata:
name: cooperationModeNumber
description: 共创模式编码
description: 共创模式编码,手动输入,唯一确定
type:
primitive: string
... ...
... ... @@ -14,3 +14,9 @@ metadata:
required: true
- ref: userId
required: true
- ref: updatedAt
required: true
- ref: deletedAt
required: true
- ref: createdAt
required: true
... ...
version: v1
kind: Schema
metadata:
name: cooperationMode
description: 共创模式实体
attributes:
- ref: cooperationModeId
required: true
- ref: cooperationModeNumber
description: 模式编码,唯一确定
required: true
- ref: cooperationModeName
description: 模式名称,唯一确定
required: true
- ref: status
description: 共创模式状态,1启用,2禁用
required: true
- ref: remarks
required: true
- ref: operator
required: true
- ref: operateTime
required: true
- ref: updatedAt
required: true
- ref: deletedAt
required: true
- ref: createdAt
required: true
... ...
... ... @@ -28,3 +28,9 @@ metadata:
- ref: status
description: 共创项目状态,1招标中,2结束
required: true
- ref: updatedAt
required: true
- ref: deletedAt
required: true
- ref: createdAt
required: true
... ...
... ... @@ -18,3 +18,9 @@ metadata:
required: true
- ref: dividendsIncentivesStageStart
required: true
- ref: updatedAt
required: true
- ref: deletedAt
required: true
- ref: createdAt
required: true
... ...
... ... @@ -20,3 +20,9 @@ metadata:
required: true
- ref: salesmanPercentage
required: true
- ref: updatedAt
required: true
- ref: deletedAt
required: true
- ref: createdAt
required: true
... ...
version: v1
kind: Method
metadata:
name: createCooperationMode
type: command
description: 创建共创模式服务
payload:
result:
- name: cooperationMode
type:
schema: cooperationMode
required: true
... ...
version: v1
kind: Method
metadata:
name: getCooperationMode
type: query
description: 返回共创模式服务
payload:
- ref: cooperationModeId
required: true
result:
- name: cooperationMode
type:
schema: cooperationMode
required: true
... ...
version: v1
kind: Method
metadata:
name: listCooperationMode
type: query
description: 返回共创模式服务列表
payload:
- ref: offset
required: true
- ref: limit
required: true
result:
- ref: count
required: true
- name: cooperationModes
type:
array: cooperationMode
required: true
... ...
version: v1
kind: Method
metadata:
name: removeCooperationMode
type: command
description: 移除共创模式服务
payload:
- ref: cooperationModeId
required: true
result:
- name: cooperationMode
type:
schema: cooperationMode
required: true
... ...
version: v1
kind: Method
metadata:
name: updateCooperationMode
type: command
description: 更新共创模式服务
payload:
- ref: cooperationModeId
required: true
result:
- name: cooperationMode
type:
schema: cooperationMode
required: true
... ...
version: v1
kind: Service
metadata:
name: cooperationMode
description: 共创模式服务
... ...