Merge branch 'master' of http://gitlab.fjmaimaimai.com/allied-creation/document
正在显示
21 个修改的文件
包含
297 行增加
和
3 行删除
1 | +version: v1 | ||
2 | +kind: HttpApi | ||
3 | +metadata: | ||
4 | + service: cooperationApplication | ||
5 | + path: /cooperation-applications | ||
6 | + endpoints: | ||
7 | + - method: applyForCooperation | ||
8 | + route: | ||
9 | + post: /apply-for-cooperation | ||
10 | + - method: agreeCooperationApplication | ||
11 | + route: | ||
12 | + post: /agree-cooperation-application | ||
13 | + - method: rejectCooperationApplication | ||
14 | + route: | ||
15 | + post: /reject-cooperation-application | ||
16 | + - method: createCooperationApplication | ||
17 | + route: | ||
18 | + post: / | ||
19 | + - method: updateCooperationApplication | ||
20 | + route: | ||
21 | + put: /{cooperationApplicationId} | ||
22 | + - method: getCooperationApplication | ||
23 | + route: | ||
24 | + get: /{cooperationApplicationId} | ||
25 | + - method: removeCooperationApplication | ||
26 | + route: | ||
27 | + delete: /{cooperationApplicationId} | ||
28 | + - method: listCooperationApplication | ||
29 | + route: | ||
30 | + get: / | ||
31 | + params: | ||
32 | + - name: offset | ||
33 | + - name: limit |
1 | +version: v1 | ||
2 | +kind: HttpApi | ||
3 | +metadata: | ||
4 | + service: cooperationProject | ||
5 | + path: /cooperation-projects | ||
6 | + endpoints: | ||
7 | + - method: releaseCooperationProject | ||
8 | + route: | ||
9 | + post: /release-cooperation-project | ||
10 | + - method: createCooperationProject | ||
11 | + route: | ||
12 | + post: / | ||
13 | + - method: updateCooperationProject | ||
14 | + route: | ||
15 | + put: /{cooperationProjectId} | ||
16 | + - method: getCooperationProject | ||
17 | + route: | ||
18 | + get: /{cooperationProjectId} | ||
19 | + - method: removeCooperationProject | ||
20 | + route: | ||
21 | + delete: /{cooperationProjectId} | ||
22 | + - method: listCooperationProject | ||
23 | + route: | ||
24 | + get: / | ||
25 | + params: | ||
26 | + - name: offset | ||
27 | + - 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: cooperationProjectUndertakerType | 4 | name: cooperationProjectUndertakerType |
5 | - description: 共创项目承接对象,1员工,2共创用户,3公开 | 5 | + description: 共创项目承接对象,1员工,2共创用户,3公开,可以多选 |
6 | type: | 6 | type: |
7 | - primitive: int32 | 7 | + array: int32 |
@@ -22,7 +22,9 @@ metadata: | @@ -22,7 +22,9 @@ metadata: | ||
22 | required: true | 22 | required: true |
23 | - ref: cooperationApplyTime | 23 | - ref: cooperationApplyTime |
24 | required: true | 24 | required: true |
25 | - - ref: cooperationProjectId | 25 | + - ref: cooperationProjectNumber |
26 | + required: true | ||
27 | + - ref: organization | ||
26 | required: true | 28 | required: true |
27 | - ref: createdAt | 29 | - ref: createdAt |
28 | required: true | 30 | required: true |
allied-creation-cooperation/services/cooperationApplication/methods/agreeCooperationApplication.yaml
0 → 100644
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: agreeCooperationApplication | ||
5 | + type: command | ||
6 | + description: 同意共创申请 | ||
7 | + payload: | ||
8 | + - ref: cooperationApplicationId | ||
9 | + required: true | ||
10 | + - ref: cooperationApplicationVerifyDescription | ||
11 | + required: true | ||
12 | + result: | ||
13 | + - name: cooperationApplication | ||
14 | + type: | ||
15 | + schema: cooperationApplication | ||
16 | + required: true |
allied-creation-cooperation/services/cooperationApplication/methods/applyForCooperation.yaml
0 → 100644
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: applyForCooperation | ||
5 | + type: command | ||
6 | + description: 申请共创 | ||
7 | + payload: | ||
8 | + - ref: cooperationApplicationAttachment | ||
9 | + required: true | ||
10 | + - ref: cooperationApplicationDescription | ||
11 | + required: true | ||
12 | + - ref: cooperationApplicationApplicant | ||
13 | + required: true | ||
14 | + - ref: cooperationApplicationId | ||
15 | + required: true | ||
16 | + - ref: cooperationProjectNumber | ||
17 | + required: true | ||
18 | + - ref: cooperationApplyTime | ||
19 | + required: true | ||
20 | + result: | ||
21 | + - name: cooperationApplication | ||
22 | + type: | ||
23 | + schema: cooperationApplication | ||
24 | + required: true |
allied-creation-cooperation/services/cooperationApplication/methods/getCooperationApplication.yaml
0 → 100644
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: getCooperationApplication | ||
5 | + type: query | ||
6 | + description: 返回共创申请服务 | ||
7 | + payload: | ||
8 | + - ref: cooperationApplicationId | ||
9 | + required: true | ||
10 | + result: | ||
11 | + - name: cooperationApplication | ||
12 | + type: | ||
13 | + schema: cooperationApplication | ||
14 | + required: true |
allied-creation-cooperation/services/cooperationApplication/methods/listCooperationApplication.yaml
0 → 100644
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: listCooperationApplication | ||
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: cooperationApplications | ||
16 | + type: | ||
17 | + array: cooperationApplication | ||
18 | + required: true |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: rejectCooperationApplication | ||
5 | + type: command | ||
6 | + description: 拒绝共创申请 | ||
7 | + payload: | ||
8 | + - ref: cooperationApplicationId | ||
9 | + required: true | ||
10 | + - ref: cooperationApplicationVerifyDescription | ||
11 | + required: true | ||
12 | + result: | ||
13 | + - name: cooperationApplication | ||
14 | + type: | ||
15 | + schema: cooperationApplication | ||
16 | + required: true |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: removeCooperationApplication | ||
5 | + type: command | ||
6 | + description: 移除共创申请服务 | ||
7 | + payload: | ||
8 | + - ref: cooperationApplicationId | ||
9 | + required: true | ||
10 | + result: | ||
11 | + - name: cooperationApplication | ||
12 | + type: | ||
13 | + schema: cooperationApplication | ||
14 | + required: true |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: updateCooperationApplication | ||
5 | + type: command | ||
6 | + description: 更新共创申请服务 | ||
7 | + payload: | ||
8 | + - ref: cooperationApplicationId | ||
9 | + required: true | ||
10 | + result: | ||
11 | + - name: cooperationApplication | ||
12 | + type: | ||
13 | + schema: cooperationApplication | ||
14 | + required: true |
allied-creation-cooperation/services/cooperationProject/methods/listCooperationProject.yaml
0 → 100644
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: listCooperationProject | ||
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: cooperationProjects | ||
16 | + type: | ||
17 | + array: cooperationProject | ||
18 | + required: true |
allied-creation-cooperation/services/cooperationProject/methods/releaseCooperationProject.yaml
0 → 100644
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: releaseCooperationProject | ||
5 | + type: command | ||
6 | + description: 发布共创项目 | ||
7 | + payload: | ||
8 | + - ref: cooperationProjectName | ||
9 | + required: true | ||
10 | + - ref: cooperationModeId | ||
11 | + required: true | ||
12 | + - ref: cooperationProjectSponsor | ||
13 | + required: true | ||
14 | + - ref: cooperationProjectUndertakerType | ||
15 | + required: true | ||
16 | + - ref: cooperationProjectDescription | ||
17 | + required: true | ||
18 | + result: | ||
19 | + - name: cooperationProject | ||
20 | + type: | ||
21 | + schema: cooperationProject | ||
22 | + required: true |
-
请 注册 或 登录 后发表评论