正在显示
13 个修改的文件
包含
155 行增加
和
1 行删除
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 |
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: 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 |
-
请 注册 或 登录 后发表评论