正在显示
35 个修改的文件
包含
433 行增加
和
16 行删除
| @@ -15,10 +15,7 @@ metadata: | @@ -15,10 +15,7 @@ metadata: | ||
| 15 | get: /{applicationId} | 15 | get: /{applicationId} |
| 16 | - method: listCooperationApplication | 16 | - method: listCooperationApplication |
| 17 | route: | 17 | route: |
| 18 | - get: / | ||
| 19 | - params: | ||
| 20 | - - name: offset | ||
| 21 | - - name: limit | 18 | + get: /search |
| 22 | - method: auditCooperationApplication | 19 | - method: auditCooperationApplication |
| 23 | route: | 20 | route: |
| 24 | put: /audit | 21 | put: /audit |
| 1 | +version: v1 | ||
| 2 | +kind: HttpApi | ||
| 3 | +metadata: | ||
| 4 | + service: cooperationContract | ||
| 5 | + path: /cooperation-contracts | ||
| 6 | + endpoints: | ||
| 7 | + - method: createCooperationContract | ||
| 8 | + route: | ||
| 9 | + post: / | ||
| 10 | + - method: updateCooperationContract | ||
| 11 | + route: | ||
| 12 | + put: /{contractId} | ||
| 13 | + - method: getCooperationContract | ||
| 14 | + route: | ||
| 15 | + get: /{contractId} | ||
| 16 | + - method: listCooperationContract | ||
| 17 | + route: | ||
| 18 | + post: /search | ||
| 19 | + - method: enableCooperationContract | ||
| 20 | + route: | ||
| 21 | + put: /enable |
| @@ -6,7 +6,7 @@ metadata: | @@ -6,7 +6,7 @@ metadata: | ||
| 6 | endpoints: | 6 | endpoints: |
| 7 | - method: noticeSettingList | 7 | - method: noticeSettingList |
| 8 | route: | 8 | route: |
| 9 | - get: / | 9 | + post: /search |
| 10 | - method: noticeSettingProfile | 10 | - method: noticeSettingProfile |
| 11 | route: | 11 | route: |
| 12 | get: /profile | 12 | get: /profile |
| 1 | +version: v1 | ||
| 2 | +kind: HttpApi | ||
| 3 | +metadata: | ||
| 4 | + service: contractUndertakerFeedback | ||
| 5 | + path: /contract-undertaker-feedbacks | ||
| 6 | + endpoints: | ||
| 7 | + - method: createContractUndertakerFeedback | ||
| 8 | + route: | ||
| 9 | + post: / | ||
| 10 | + - method: listContractUndertakerFeedback | ||
| 11 | + route: | ||
| 12 | + get: / | ||
| 13 | + params: | ||
| 14 | + - name: offset | ||
| 15 | + - name: limit |
| 1 | +version: v1 | ||
| 2 | +kind: Schema | ||
| 3 | +metadata: | ||
| 4 | + name: contractUndertaker | ||
| 5 | + description: 共创合约承接方 | ||
| 6 | + attributes: | ||
| 7 | + - ref: usersId | ||
| 8 | + required: true | ||
| 9 | + - ref: cooperationContractId | ||
| 10 | + required: true | ||
| 11 | + - ref: usersName | ||
| 12 | + required: true | ||
| 13 | + - ref: departmentId | ||
| 14 | + required: true | ||
| 15 | + - ref: orgId | ||
| 16 | + required: true | ||
| 17 | + - ref: phone | ||
| 18 | + required: true | ||
| 19 | + - ref: status | ||
| 20 | + required: true | ||
| 21 | + - ref: usersCode | ||
| 22 | + required: true | ||
| 23 | + - ref: usersType | ||
| 24 | + required: true | ||
| 25 | + - name: attachment | ||
| 26 | + description: 附件 | ||
| 27 | + type: | ||
| 28 | + array: attachment | ||
| 29 | + - name: hasReferrer | ||
| 30 | + description: 是否有推荐人 | ||
| 31 | + type: | ||
| 32 | + primitive: boolean | ||
| 33 | + - name: referrerUser | ||
| 34 | + description: 推荐人信息 | ||
| 35 | + type: | ||
| 36 | + schema: users | ||
| 37 | + - name: hasSalesman | ||
| 38 | + description: 是否有关联业务员 | ||
| 39 | + type: | ||
| 40 | + primitive: boolean | ||
| 41 | + - name: salesmanUser | ||
| 42 | + description: 关联业务员信息 | ||
| 43 | + type: | ||
| 44 | + schema: users |
| 1 | +version: v1 | ||
| 2 | +kind: Schema | ||
| 3 | +metadata: | ||
| 4 | + name: contractUndertakerFeedback | ||
| 5 | + description: 承接信息反馈 | ||
| 6 | + attributes: | ||
| 7 | + - ref: contractUndertaker | ||
| 8 | + required: true | ||
| 9 | + - ref: feedbackAttachment | ||
| 10 | + required: true | ||
| 11 | + - ref: feedbackContent | ||
| 12 | + required: true | ||
| 13 | + - ref: feedbackId | ||
| 14 | + required: true | ||
| 15 | + - ref: cooperationMode | ||
| 16 | + required: true | ||
| 17 | + - ref: cooperationProjectName | ||
| 18 | + required: true | ||
| 19 | + - ref: cooperationProjectId | ||
| 20 | + required: true | ||
| 21 | + - ref: cooperationProjectNumber | ||
| 22 | + required: true | ||
| 23 | + - ref: createdAt | ||
| 24 | + description: 反馈创建时间,同时也作为反馈时间 | ||
| 25 | + required: true | ||
| 26 | + - name: undertaker | ||
| 27 | + description: 承接人信息 | ||
| 28 | + type: | ||
| 29 | + schema: users | ||
| 30 | + - ref: orgId | ||
| 31 | + required: true | ||
| 32 | + - ref: orgName | ||
| 33 | + required: true |
| 1 | +version: v1 | ||
| 2 | +kind: Schema | ||
| 3 | +metadata: | ||
| 4 | + name: cooperationContract | ||
| 5 | + description: 共创合约 | ||
| 6 | + attributes: | ||
| 7 | + - ref: cooperationContractDescription | ||
| 8 | + required: true | ||
| 9 | + - ref: cooperationContractId | ||
| 10 | + required: true | ||
| 11 | + - ref: cooperationContractIncentivesRules | ||
| 12 | + required: true | ||
| 13 | + - ref: cooperationContractName | ||
| 14 | + required: true | ||
| 15 | + - ref: cooperationContractNumber | ||
| 16 | + required: true | ||
| 17 | + - ref: cooperationContractSponsor | ||
| 18 | + required: true | ||
| 19 | + - ref: cooperationContractUndertakerType | ||
| 20 | + required: true | ||
| 21 | + - ref: cooperationMode | ||
| 22 | + required: true | ||
| 23 | + - ref: createdAt | ||
| 24 | + required: true |
| 1 | +version: v1 | ||
| 2 | +kind: Schema | ||
| 3 | +metadata: | ||
| 4 | + name: cooperationContractChangeLog | ||
| 5 | + description: 共创合约变更日志 | ||
| 6 | + attributes: | ||
| 7 | + - ref: incentivesRule | ||
| 8 | + required: true | ||
| 9 | + - ref: incentivesRuleDetail | ||
| 10 | + required: true | ||
| 11 | + - ref: operationType | ||
| 12 | + required: true | ||
| 13 | + - ref: cooperationContractNumber | ||
| 14 | + required: true | ||
| 15 | + - ref: undertakers | ||
| 16 | + required: true | ||
| 17 | + - ref: operator | ||
| 18 | + required: true | ||
| 19 | + - ref: updatedAt | ||
| 20 | + required: true | ||
| 21 | + - ref: deletedAt | ||
| 22 | + required: true | ||
| 23 | + - ref: createdAt | ||
| 24 | + required: true |
| 1 | +version: v1 | ||
| 2 | +kind: Schema | ||
| 3 | +metadata: | ||
| 4 | + name: usersBase | ||
| 5 | + description: 用户基础信息 | ||
| 6 | + attributes: | ||
| 7 | + - ref: phone | ||
| 8 | + required: true | ||
| 9 | + - ref: status | ||
| 10 | + required: true | ||
| 11 | + - name: statusName | ||
| 12 | + description: 状态描述 | ||
| 13 | + type: | ||
| 14 | + primitive: string | ||
| 15 | + - ref: usersCode | ||
| 16 | + required: true | ||
| 17 | + - ref: usersId | ||
| 18 | + required: true | ||
| 19 | + - ref: usersName | ||
| 20 | + required: true | ||
| 21 | + - ref: email | ||
| 22 | + required: true |
| 1 | +version: v1 | ||
| 2 | +kind: Method | ||
| 3 | +metadata: | ||
| 4 | + name: listContractChangeLog | ||
| 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: contractChangeLogs | ||
| 16 | + type: | ||
| 17 | + array: cooperationContractChangeLog | ||
| 18 | + required: true |
| 1 | +version: v1 | ||
| 2 | +kind: Method | ||
| 3 | +metadata: | ||
| 4 | + name: createContractUndertakerFeedback | ||
| 5 | + type: command | ||
| 6 | + description: 创建承接信息反馈 | ||
| 7 | + payload: | ||
| 8 | + - ref: feedbackAttachment | ||
| 9 | + required: true | ||
| 10 | + - ref: feedbackContent | ||
| 11 | + required: true | ||
| 12 | + result: | ||
| 13 | + - name: contractUndertakerFeedback | ||
| 14 | + type: | ||
| 15 | + schema: contractUndertakerFeedback | ||
| 16 | + required: true |
| 1 | +version: v1 | ||
| 2 | +kind: Method | ||
| 3 | +metadata: | ||
| 4 | + name: listContractUndertakerFeedback | ||
| 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: contractUndertakerFeedbacks | ||
| 16 | + type: | ||
| 17 | + array: contractUndertakerFeedback | ||
| 18 | + required: true |
allied-creation-gateway/services/cooperationContract/methods/createCooperationContract.yaml
0 → 100644
| 1 | +version: v1 | ||
| 2 | +kind: Method | ||
| 3 | +metadata: | ||
| 4 | + name: createCooperationContract | ||
| 5 | + type: command | ||
| 6 | + description: 创建共创合约管理 | ||
| 7 | + payload: | ||
| 8 | + - name: cooperationContract | ||
| 9 | + description: 合约信息 | ||
| 10 | + type: | ||
| 11 | + schema: cooperationContract | ||
| 12 | + - name: contractUndertaker | ||
| 13 | + description: 承接人信息 | ||
| 14 | + type: | ||
| 15 | + schema: contractUndertaker | ||
| 16 | + - name: relationUser | ||
| 17 | + description: 关联用户id | ||
| 18 | + type: | ||
| 19 | + array: int64 | ||
| 20 | + result: | ||
| 21 | + - name: cooperationContract | ||
| 22 | + type: | ||
| 23 | + schema: cooperationContract | ||
| 24 | + required: true |
allied-creation-gateway/services/cooperationContract/methods/enableCooperationContract.yaml
0 → 100644
| 1 | +version: v1 | ||
| 2 | +kind: Method | ||
| 3 | +metadata: | ||
| 4 | + name: enableCooperationContract | ||
| 5 | + type: command | ||
| 6 | + description: 暂停恢复共创合约 | ||
| 7 | + payload: | ||
| 8 | + - ref: cooperationContractId | ||
| 9 | + required: true | ||
| 10 | + - name: status | ||
| 11 | + description: 暂停和恢复的状态 | ||
| 12 | + type: | ||
| 13 | + primitive: int32 | ||
| 14 | + result: | ||
| 15 | + - name: cooperationContract | ||
| 16 | + type: | ||
| 17 | + schema: cooperationContract | ||
| 18 | + required: true |
| 1 | +version: v1 | ||
| 2 | +kind: Method | ||
| 3 | +metadata: | ||
| 4 | + name: getCooperationContract | ||
| 5 | + type: query | ||
| 6 | + description: 返回共创合约管理 | ||
| 7 | + payload: | ||
| 8 | + - ref: cooperationContractId | ||
| 9 | + required: true | ||
| 10 | + result: | ||
| 11 | + - name: cooperationContract | ||
| 12 | + type: | ||
| 13 | + schema: cooperationContract | ||
| 14 | + required: true | ||
| 15 | + - name: contractUndertaker | ||
| 16 | + type: | ||
| 17 | + array: contractUndertaker | ||
| 18 | + - name: relevant | ||
| 19 | + type: | ||
| 20 | + array: users |
allied-creation-gateway/services/cooperationContract/methods/listCooperationContract.yaml
0 → 100644
| 1 | +version: v1 | ||
| 2 | +kind: Method | ||
| 3 | +metadata: | ||
| 4 | + name: listCooperationContract | ||
| 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: cooperationContracts | ||
| 16 | + type: | ||
| 17 | + array: cooperationContract | ||
| 18 | + required: true |
-
请 注册 或 登录 后发表评论