作者 陈志颖

feat:添加承接人信息反馈服务和接口

... ... @@ -23,4 +23,5 @@ _testmain.go
*.test
.log
.idea
*.tmp
\ No newline at end of file
*.tmp
.DS_Store
... ...
version: v1
kind: HttpApi
metadata:
service: contractUndertakerFeedback
path: /contract-undertaker-feedbacks
endpoints:
- method: createContractUndertakerFeedback
route:
post: /
- method: updateContractUndertakerFeedback
route:
put: /{contractUndertakerFeedbackId}
- method: getContractUndertakerFeedback
route:
get: /{contractUndertakerFeedbackId}
- method: removeContractUndertakerFeedback
route:
delete: /{contractUndertakerFeedbackId}
- method: listContractUndertakerFeedback
route:
get: /
params:
- name: offset
- name: limit
... ...
... ... @@ -14,6 +14,8 @@ metadata:
required: true
- ref: contractUndertaker
required: true
- ref: cooperationMode
required: true
- ref: organization
required: true
- ref: updatedAt
... ... @@ -21,4 +23,5 @@ metadata:
- ref: deletedAt
required: true
- ref: createdAt
description: 反馈创建时间,同时也作为反馈时间
required: true
... ...
version: v1
kind: Method
metadata:
name: createContractUndertakerFeedback
type: command
description: 创建共创合约反馈服务
payload:
- ref: feedbackAttachment
required: true
- ref: feedbackContent
required: true
- ref: cooperationContractNumber
required: true
- name: underTakerUid
description: 承接人uid
type:
primitive: string
result:
- name: contractUndertakerFeedback
type:
schema: contractUndertakerFeedback
required: true
... ...
version: v1
kind: Method
metadata:
name: getContractUndertakerFeedback
type: query
description: 返回共创合约反馈服务
payload:
- ref: contractUndertakerFeedbackId
required: true
- name: underTakerUid
description: Attribute描述
type:
primitive: string
result:
- name: contractUndertakerFeedback
type:
schema: contractUndertakerFeedback
required: true
... ...
version: v1
kind: Method
metadata:
name: listContractUndertakerFeedback
type: query
description: 返回共创合约反馈服务列表
payload:
- ref: offset
required: true
- ref: limit
required: true
- name: underTakerUid
description: Attribute描述
type:
primitive: string
result:
- ref: count
required: true
- name: contractUndertakerFeedbacks
type:
array: contractUndertakerFeedback
required: true
... ...
version: v1
kind: Method
metadata:
name: removeContractUndertakerFeedback
type: command
description: 移除共创合约反馈服务
payload:
- ref: contractUndertakerFeedbackId
required: true
- name: underTakerUid
description: Attribute描述
type:
primitive: string
result:
- name: contractUndertakerFeedback
type:
schema: contractUndertakerFeedback
required: true
... ...
version: v1
kind: Method
metadata:
name: updateContractUndertakerFeedback
type: command
description: 更新共创合约反馈服务
payload:
- ref: feedbackAttachment
required: true
- ref: feedbackContent
required: true
- ref: cooperationContractNumber
required: true
- ref: contractUndertakerFeedbackId
required: true
- name: underTakerUid
description: Attribute描述
type:
primitive: string
result:
- name: contractUndertakerFeedback
type:
schema: contractUndertakerFeedback
required: true
... ...
version: v1
kind: Service
metadata:
name: contractUndertakerFeedback
description: 共创合约反馈服务
... ...