作者 陈志颖

feat:添加共创项目相关服务

正在显示 21 个修改的文件 包含 297 行增加3 行删除
version: v1
kind: HttpApi
metadata:
service: cooperationApplication
path: /cooperation-applications
endpoints:
- method: applyForCooperation
route:
post: /apply-for-cooperation
- method: agreeCooperationApplication
route:
post: /agree-cooperation-application
- method: rejectCooperationApplication
route:
post: /reject-cooperation-application
- method: createCooperationApplication
route:
post: /
- method: updateCooperationApplication
route:
put: /{cooperationApplicationId}
- method: getCooperationApplication
route:
get: /{cooperationApplicationId}
- method: removeCooperationApplication
route:
delete: /{cooperationApplicationId}
- method: listCooperationApplication
route:
get: /
params:
- name: offset
- name: limit
... ...
version: v1
kind: HttpApi
metadata:
service: cooperationProject
path: /cooperation-projects
endpoints:
- method: releaseCooperationProject
route:
post: /release-cooperation-project
- method: createCooperationProject
route:
post: /
- method: updateCooperationProject
route:
put: /{cooperationProjectId}
- method: getCooperationProject
route:
get: /{cooperationProjectId}
- method: removeCooperationProject
route:
delete: /{cooperationProjectId}
- method: listCooperationProject
route:
get: /
params:
- name: offset
- name: limit
... ...
... ... @@ -2,6 +2,6 @@ version: v1
kind: Attribute
metadata:
name: cooperationProjectUndertakerType
description: 共创项目承接对象,1员工,2共创用户,3公开
description: 共创项目承接对象,1员工,2共创用户,3公开,可以多选
type:
primitive: int32
array: int32
... ...
... ... @@ -22,7 +22,9 @@ metadata:
required: true
- ref: cooperationApplyTime
required: true
- ref: cooperationProjectId
- ref: cooperationProjectNumber
required: true
- ref: organization
required: true
- ref: createdAt
required: true
... ...
version: v1
kind: Method
metadata:
name: agreeCooperationApplication
type: command
description: 同意共创申请
payload:
- ref: cooperationApplicationId
required: true
- ref: cooperationApplicationVerifyDescription
required: true
result:
- name: cooperationApplication
type:
schema: cooperationApplication
required: true
... ...
version: v1
kind: Method
metadata:
name: applyForCooperation
type: command
description: 申请共创
payload:
- ref: cooperationApplicationAttachment
required: true
- ref: cooperationApplicationDescription
required: true
- ref: cooperationApplicationApplicant
required: true
- ref: cooperationApplicationId
required: true
- ref: cooperationProjectNumber
required: true
- ref: cooperationApplyTime
required: true
result:
- name: cooperationApplication
type:
schema: cooperationApplication
required: true
... ...
version: v1
kind: Method
metadata:
name: createCooperationApplication
type: command
description: 创建共创申请服务
payload:
result:
- name: cooperationApplication
type:
schema: cooperationApplication
required: true
... ...
version: v1
kind: Method
metadata:
name: getCooperationApplication
type: query
description: 返回共创申请服务
payload:
- ref: cooperationApplicationId
required: true
result:
- name: cooperationApplication
type:
schema: cooperationApplication
required: true
... ...
version: v1
kind: Method
metadata:
name: listCooperationApplication
type: query
description: 返回共创申请服务列表
payload:
- ref: offset
required: true
- ref: limit
required: true
result:
- ref: count
required: true
- name: cooperationApplications
type:
array: cooperationApplication
required: true
... ...
version: v1
kind: Method
metadata:
name: rejectCooperationApplication
type: command
description: 拒绝共创申请
payload:
- ref: cooperationApplicationId
required: true
- ref: cooperationApplicationVerifyDescription
required: true
result:
- name: cooperationApplication
type:
schema: cooperationApplication
required: true
... ...
version: v1
kind: Method
metadata:
name: removeCooperationApplication
type: command
description: 移除共创申请服务
payload:
- ref: cooperationApplicationId
required: true
result:
- name: cooperationApplication
type:
schema: cooperationApplication
required: true
... ...
version: v1
kind: Method
metadata:
name: updateCooperationApplication
type: command
description: 更新共创申请服务
payload:
- ref: cooperationApplicationId
required: true
result:
- name: cooperationApplication
type:
schema: cooperationApplication
required: true
... ...
version: v1
kind: Service
metadata:
name: cooperationApplication
description: 共创申请服务
... ...
version: v1
kind: Method
metadata:
name: createCooperationProject
type: command
description: 创建共创项目服务
payload:
result:
- name: cooperationProject
type:
schema: cooperationProject
required: true
... ...
version: v1
kind: Method
metadata:
name: getCooperationProject
type: query
description: 返回共创项目服务
payload:
- ref: cooperationProjectId
required: true
result:
- name: cooperationProject
type:
schema: cooperationProject
required: true
... ...
version: v1
kind: Method
metadata:
name: listCooperationProject
type: query
description: 返回共创项目服务列表
payload:
- ref: offset
required: true
- ref: limit
required: true
result:
- ref: count
required: true
- name: cooperationProjects
type:
array: cooperationProject
required: true
... ...
version: v1
kind: Method
metadata:
name: releaseCooperationProject
type: command
description: 发布共创项目
payload:
- ref: cooperationProjectName
required: true
- ref: cooperationModeId
required: true
- ref: cooperationProjectSponsor
required: true
- ref: cooperationProjectUndertakerType
required: true
- ref: cooperationProjectDescription
required: true
result:
- name: cooperationProject
type:
schema: cooperationProject
required: true
... ...
version: v1
kind: Method
metadata:
name: removeCooperationProject
type: command
description: 移除共创项目服务
payload:
- ref: cooperationProjectId
required: true
result:
- name: cooperationProject
type:
schema: cooperationProject
required: true
... ...
version: v1
kind: Method
metadata:
name: updateCooperationProject
type: command
description: 更新共创项目服务
payload:
- ref: cooperationProjectId
required: true
result:
- name: cooperationProject
type:
schema: cooperationProject
required: true
... ...
version: v1
kind: Service
metadata:
name: cooperationProject
description: 共创项目服务
... ...