作者 陈志颖

feat:添加合约变更记录服务,增加查询方法

正在显示 29 个修改的文件 包含 351 行增加13 行删除
... ... @@ -16,6 +16,9 @@ metadata:
- method: removeContractUndertakerFeedback
route:
delete: /{contractUndertakerFeedbackId}
- method: searchContractUndertakerFeedback
route:
post: /search
- method: listContractUndertakerFeedback
route:
get: /
... ...
... ... @@ -25,6 +25,9 @@ metadata:
- method: removeCooperationApplication
route:
delete: /{cooperationApplicationId}
- method: searchCooperationApplication
route:
post: /search
- method: listCooperationApplication
route:
get: /
... ...
version: v1
kind: HttpApi
metadata:
service: cooperationContractChangeLog
path: /cooperation-contract-change-logs
endpoints:
- method: createCooperationContractChangeLog
route:
post: /
- method: updateCooperationContractChangeLog
route:
put: /{cooperationContractChangeLogId}
- method: getCooperationContractChangeLog
route:
get: /{cooperationContractChangeLogId}
- method: removeCooperationContractChangeLog
route:
delete: /{cooperationContractChangeLogId}
- method: listCooperationContractChangeLog
route:
get: /
params:
- name: offset
- name: limit
- method: searchCooperationContractChangeLog
route:
post: /search
... ...
... ... @@ -16,6 +16,9 @@ metadata:
- method: removeCooperationContract
route:
delete: /{cooperationContractId}
- method: searchCooperationContract
route:
post: /search
- method: listCooperationContract
route:
get: /
... ...
... ... @@ -16,6 +16,9 @@ metadata:
- method: removeCooperationMode
route:
delete: /{cooperationModeId}
- method: searchCooperationMode
route:
post: /search
- method: listCooperationMode
route:
get: /
... ...
... ... @@ -19,6 +19,9 @@ metadata:
- method: removeCooperationProject
route:
delete: /{cooperationProjectId}
- method: searchCooperationProject
route:
post: /search
- method: listCooperationProject
route:
get: /
... ...
version: v1
kind: Attribute
metadata:
name: pageNumber
description: 页面大小
type:
primitive: int32
... ...
version: v1
kind: Attribute
metadata:
name: pageSize
description: 页面大小
type:
primitive: int32
... ...
version: v1
kind: Attribute
metadata:
name: undertaker
name: undertakers
description: 承接人
type:
schema: datetime
primitive: string
... ...
version: v1
kind: Schema
metadata:
name: cooperationContractChangeLog
description: 共创合约变更日志
attributes:
- ref: incentivesRule
required: true
- ref: incentivesRuleDetail
required: true
- ref: operationType
required: true
- ref: cooperationContractNumber
required: true
- ref: undertakers
required: true
- ref: operator
required: true
- ref: updatedAt
required: true
- ref: deletedAt
required: true
- ref: createdAt
required: true
... ...
version: v1
kind: Method
metadata:
name: searchContractUndertakerFeedback
type: query
description: 查询共创承接方反馈信息
payload:
- ref: pageNumber
required: true
- ref: pageSize
required: true
- ref: cooperationContractName
required: true
- name: undertakerName
description: 承接人姓名
type:
primitive: string
result:
- name: contractUndertakerFeedbacks
type:
array: contractUndertakerFeedback
required: true
... ...
... ... @@ -11,10 +11,8 @@ metadata:
required: true
- ref: cooperationContractNumber
required: true
- ref: contractUndertakerFeedbackId
required: true
- name: underTakerUid
description: Attribute描述
description: 承接人用户uid
type:
primitive: string
result:
... ...
version: v1
kind: Method
metadata:
name: searchCooperationApplication
type: query
description: 查询共创申请
payload:
- ref: cooperationProjectName
required: true
- name: applicantName
description: 申请人姓名
type:
primitive: string
- ref: pageSize
required: false
- ref: pageNumber
required: false
result:
- name: cooperationApplications
type:
array: cooperationApplication
required: true
... ...
... ... @@ -5,7 +5,17 @@ metadata:
type: command
description: 更新共创申请服务
payload:
- ref: cooperationApplicationId
- name: applicantUid
description: 共创申请人uid
type:
primitive: string
required: true
- ref: cooperationApplicationDescription
required: false
- ref: cooperationApplicationAttachment
required: false
- ref: cooperationProjectNumber
description: 关联的共创项目编号
required: true
result:
- name: cooperationApplication
... ...
version: v1
kind: Method
metadata:
name: searchCooperationContract
type: query
description: 查询共创合约
payload:
- ref: pageSize
required: true
- ref: pageNumber
required: true
- ref: cooperationContractNumber
required: true
- name: sponsorName
description: 发起人姓名
type:
primitive: string
result:
- name: cooperationContracts
type:
array: cooperationContract
required: true
... ...
... ... @@ -5,8 +5,6 @@ metadata:
type: command
description: 更新共创合约服务
payload:
- ref: cooperationContractId
required: true
- ref: cooperationContractDescription
required: true
- ref: cooperationContractNumber
... ...
version: v1
kind: Method
metadata:
name: createCooperationContractChangeLog
type: command
description: 创建共创合约变更日志
payload:
- ref: incentivesRule
required: true
- ref: incentivesRuleDetail
required: true
- ref: operationType
required: true
- ref: undertakers
required: true
- ref: cooperationContractNumber
required: true
result:
- name: cooperationContractChangeLog
type:
schema: cooperationContractChangeLog
required: true
... ...
version: v1
kind: Method
metadata:
name: getCooperationContractChangeLog
type: query
description: 返回共创合约变更日志
payload:
- ref: cooperationContractChangeLogId
required: true
result:
- name: cooperationContractChangeLog
type:
schema: cooperationContractChangeLog
required: true
... ...
version: v1
kind: Method
metadata:
name: listCooperationContractChangeLog
type: query
description: 返回共创合约变更日志列表
payload:
- ref: offset
required: true
- ref: limit
required: true
result:
- ref: count
required: true
- name: cooperationContractChangeLogs
type:
array: cooperationContractChangeLog
required: true
... ...
version: v1
kind: Method
metadata:
name: removeCooperationContractChangeLog
type: command
description: 移除共创合约变更日志
payload:
- ref: cooperationContractChangeLogId
required: true
result:
- name: cooperationContractChangeLog
type:
schema: cooperationContractChangeLog
required: true
... ...
version: v1
kind: Method
metadata:
name: searchCooperationContractChangeLog
type: query
description: 共创合约变更记录搜索
payload:
- ref: operationType
required: false
- ref: cooperationContractNumber
required: false
- ref: pageSize
required: false
- ref: pageNumber
required: false
result:
- name: cooperationContractChangeLogs
type:
array: cooperationContractChangeLog
required: true
... ...
version: v1
kind: Method
metadata:
name: updateCooperationContractChangeLog
type: command
description: 更新共创合约变更日志
payload:
- ref: incentivesRule
required: true
- ref: incentivesRuleDetail
required: true
- ref: operationType
required: true
- ref: undertakers
required: true
- ref: cooperationContractNumber
required: true
result:
- name: cooperationContractChangeLog
type:
schema: cooperationContractChangeLog
required: true
... ...
version: v1
kind: Service
metadata:
name: cooperationContractChangeLog
description: 共创合约变更日志
... ...
version: v1
kind: Method
metadata:
name: searchCooperationContract
type: query
description: 查询共创模式
payload:
- ref: pageNumber
required: true
- ref: pageSize
required: true
- ref: cooperationModeName
required: true
- name: organizationName
description: 组织机构名称
type:
primitive: string
result:
- name: cooperationModes
type:
array: cooperationMode
required: true
... ...
... ... @@ -5,7 +5,11 @@ metadata:
type: command
description: 更新共创模式服务
payload:
- ref: cooperationModeId
- ref: cooperationModeName
required: true
- ref: cooperationModeNumber
required: true
- ref: remarks
required: true
result:
- name: cooperationMode
... ...
version: v1
kind: Method
metadata:
name: searchCooperationProject
type: query
description: 查询共创项目
payload:
- ref: pageNumber
required: true
- ref: pageSize
required: true
- ref: cooperationProjectName
required: true
- ref: departmentName
required: true
result:
- name: cooperationProjects
type:
array: cooperationProject
required: true
... ...
... ... @@ -5,8 +5,23 @@ metadata:
type: command
description: 更新共创项目服务
payload:
- ref: cooperationProjectId
- ref: cooperationProjectName
required: true
- ref: coopeartionProjectUndertakerType
description: 承接对象,1员工,2共创用户,3公开,可以多选
required: true
- name: sponsorUid
description: 共创项目发起人uid
type:
primitive: string
required: true
- name: publisherUid
description: 共创项目发布人uid
type:
primitive: string
required: true
- ref: cooperationProjectDescription
required: false
result:
- name: cooperationProject
type:
... ...
... ... @@ -5,7 +5,19 @@ metadata:
type: command
description: 更新业绩分红激励规则服务
payload:
- ref: dividendsIncentivesRuleId
- ref: cooperationContractNumber
required: true
- ref: dividendsIncentivesPercentage
required: true
- ref: dividendsIncentivesStage
required: true
- ref: dividendsIncentivesStageStart
required: true
- ref: dividendsIncentivesStageEnd
requried: true
- ref: referrerPercentage
required: true
- ref: salesmanPercentage
required: true
result:
- name: dividendsIncentivesRule
... ...
... ... @@ -15,8 +15,6 @@ metadata:
required: true
- ref: cooperationContractNumber
required: true
- ref: moneyIncentivesRulesId
required: true
result:
- name: moneyIncentivesRule
type:
... ...