作者 陈志颖

Merge branch 'dev'

  1 +version: v1
  2 +kind: HttpApi
  3 +metadata:
  4 + service: cooperationMode
  5 + path: /cooperation-modes
  6 + endpoints:
  7 + - method: createCooperationMode
  8 + route:
  9 + post: /
  10 + - method: updateCooperationMode
  11 + route:
  12 + put: /{cooperationModeId}
  13 + - method: getCooperationMode
  14 + route:
  15 + get: /{cooperationModeId}
  16 + - method: removeCooperationMode
  17 + route:
  18 + delete: /{cooperationModeId}
  19 + - method: listCooperationMode
  20 + route:
  21 + get: /
  22 + params:
  23 + - name: offset
  24 + - name: limit
@@ -2,6 +2,6 @@ version: v1 @@ -2,6 +2,6 @@ version: v1
2 kind: Attribute 2 kind: Attribute
3 metadata: 3 metadata:
4 name: cooperationModeNumber 4 name: cooperationModeNumber
5 - description: 共创模式编码 5 + description: 共创模式编码,手动输入,唯一确定
6 type: 6 type:
7 primitive: string 7 primitive: string
@@ -14,3 +14,9 @@ metadata: @@ -14,3 +14,9 @@ metadata:
14 required: true 14 required: true
15 - ref: userId 15 - ref: userId
16 required: true 16 required: true
  17 + - ref: updatedAt
  18 + required: true
  19 + - ref: deletedAt
  20 + required: true
  21 + - ref: createdAt
  22 + required: true
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: cooperationMode
  5 + description: 共创模式实体
  6 + attributes:
  7 + - ref: cooperationModeId
  8 + required: true
  9 + - ref: cooperationModeNumber
  10 + description: 模式编码,唯一确定
  11 + required: true
  12 + - ref: cooperationModeName
  13 + description: 模式名称,唯一确定
  14 + required: true
  15 + - ref: status
  16 + description: 共创模式状态,1启用,2禁用
  17 + required: true
  18 + - ref: remarks
  19 + required: true
  20 + - ref: operator
  21 + required: true
  22 + - ref: operateTime
  23 + required: true
  24 + - ref: updatedAt
  25 + required: true
  26 + - ref: deletedAt
  27 + required: true
  28 + - ref: createdAt
  29 + required: true
@@ -28,3 +28,9 @@ metadata: @@ -28,3 +28,9 @@ metadata:
28 - ref: status 28 - ref: status
29 description: 共创项目状态,1招标中,2结束 29 description: 共创项目状态,1招标中,2结束
30 required: true 30 required: true
  31 + - ref: updatedAt
  32 + required: true
  33 + - ref: deletedAt
  34 + required: true
  35 + - ref: createdAt
  36 + required: true
@@ -18,3 +18,9 @@ metadata: @@ -18,3 +18,9 @@ metadata:
18 required: true 18 required: true
19 - ref: dividendsIncentivesStageStart 19 - ref: dividendsIncentivesStageStart
20 required: true 20 required: true
  21 + - ref: updatedAt
  22 + required: true
  23 + - ref: deletedAt
  24 + required: true
  25 + - ref: createdAt
  26 + required: true
@@ -20,3 +20,9 @@ metadata: @@ -20,3 +20,9 @@ metadata:
20 required: true 20 required: true
21 - ref: salesmanPercentage 21 - ref: salesmanPercentage
22 required: true 22 required: true
  23 + - ref: updatedAt
  24 + required: true
  25 + - ref: deletedAt
  26 + required: true
  27 + - ref: createdAt
  28 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: createCooperationMode
  5 + type: command
  6 + description: 创建共创模式服务
  7 + payload:
  8 + result:
  9 + - name: cooperationMode
  10 + type:
  11 + schema: cooperationMode
  12 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: getCooperationMode
  5 + type: query
  6 + description: 返回共创模式服务
  7 + payload:
  8 + - ref: cooperationModeId
  9 + required: true
  10 + result:
  11 + - name: cooperationMode
  12 + type:
  13 + schema: cooperationMode
  14 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: listCooperationMode
  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: cooperationModes
  16 + type:
  17 + array: cooperationMode
  18 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: removeCooperationMode
  5 + type: command
  6 + description: 移除共创模式服务
  7 + payload:
  8 + - ref: cooperationModeId
  9 + required: true
  10 + result:
  11 + - name: cooperationMode
  12 + type:
  13 + schema: cooperationMode
  14 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: updateCooperationMode
  5 + type: command
  6 + description: 更新共创模式服务
  7 + payload:
  8 + - ref: cooperationModeId
  9 + required: true
  10 + result:
  11 + - name: cooperationMode
  12 + type:
  13 + schema: cooperationMode
  14 + required: true
  1 +version: v1
  2 +kind: Service
  3 +metadata:
  4 + name: cooperationMode
  5 + description: 共创模式服务