作者 tangxuhui

新增:共创合约

正在显示 35 个修改的文件 包含 432 行增加15 行删除
version: v1
kind: HttpApi
metadata:
service: contractChangeLog
path: /contract-change-logs
endpoints:
- method: listContractChangeLog
route:
post: /search
params:
- name: offset
- name: limit
... ...
... ... @@ -15,10 +15,7 @@ metadata:
get: /{applicationId}
- method: listCooperationApplication
route:
get: /
params:
- name: offset
- name: limit
get: /search
- method: auditCooperationApplication
route:
put: /audit
... ...
version: v1
kind: HttpApi
metadata:
service: cooperationContract
path: /cooperation-contracts
endpoints:
- method: createCooperationContract
route:
post: /
- method: updateCooperationContract
route:
put: /{contractId}
- method: getCooperationContract
route:
get: /{contractId}
- method: listCooperationContract
route:
post: /search
- method: enableCooperationContract
route:
put: /enable
... ...
... ... @@ -18,7 +18,4 @@ metadata:
delete: /{modeId}
- method: listCooperationMode
route:
get: /
params:
- name: offset
- name: limit
post: /search
... ...
... ... @@ -15,7 +15,4 @@ metadata:
get: /{projectId}
- method: listCooperationProject
route:
get: /
params:
- name: offset
- name: limit
post: /search
... ...
... ... @@ -6,7 +6,7 @@ metadata:
endpoints:
- method: menuList
route:
get: /
post: /search
- method: menuUpdate
route:
put: /{menuId}
... ...
... ... @@ -6,7 +6,7 @@ metadata:
endpoints:
- method: noticeSettingList
route:
get: /
post: /search
- method: noticeSettingProfile
route:
get: /profile
... ...
version: v1
kind: HttpApi
metadata:
service: contractUndertakerFeedback
path: /contract-undertaker-feedbacks
endpoints:
- method: createContractUndertakerFeedback
route:
post: /
- method: listContractUndertakerFeedback
route:
get: /
params:
- name: offset
- name: limit
... ...
version: v1
kind: Attribute
metadata:
name: contractUndertaker
description: 共创合约承接人
type:
schema: users
... ...
version: v1
kind: Attribute
metadata:
name: feedbackAttachment
description: 合约承接方反馈内容附件
type:
array: attachment
... ...
version: v1
kind: Attribute
metadata:
name: feedbackContent
description: 合约承接方反馈内容
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: feedbackId
description: 合约承接方反馈记录ID
type:
primitive: int64
... ...
... ... @@ -4,4 +4,4 @@ metadata:
name: cooperationContractSponsor
description: 共创合约发起人
type:
schema: user
schema: users
... ...
version: v1
kind: Attribute
metadata:
name: cooperationContractChangeLogId
description: 合约变更记录ID
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: incentivesRule
description: 激励规则
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: incentivesRuleDetail
description: 激励规则明细
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: operationType
description: 合约变更操作类型,1编辑、2暂停、3恢复
type:
primitive: int32
... ...
version: v1
kind: Attribute
metadata:
name: operation
description: 合约变更操作操作人
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: undertakers
description: 承接人
type:
primitive: string
... ...
version: v1
kind: Schema
metadata:
name: contractUndertaker
description: 共创合约承接方
attributes:
- ref: usersId
required: true
- ref: cooperationContractId
required: true
- ref: usersName
required: true
- ref: departmentId
required: true
- ref: orgId
required: true
- ref: phone
required: true
- ref: status
required: true
- ref: usersCode
required: true
- ref: usersType
required: true
- name: attachment
description: 附件
type:
array: attachment
- name: hasReferrer
description: 是否有推荐人
type:
primitive: boolean
- name: referrerUser
description: 推荐人信息
type:
schema: users
- name: hasSalesman
description: 是否有关联业务员
type:
primitive: boolean
- name: salesmanUser
description: 关联业务员信息
type:
schema: users
... ...
version: v1
kind: Schema
metadata:
name: contractUndertakerFeedback
description: 承接信息反馈
attributes:
- ref: contractUndertaker
required: true
- ref: feedbackAttachment
required: true
- ref: feedbackContent
required: true
- ref: feedbackId
required: true
- ref: cooperationMode
required: true
- ref: cooperationProjectName
required: true
- ref: cooperationProjectId
required: true
- ref: cooperationProjectNumber
required: true
- ref: createdAt
description: 反馈创建时间,同时也作为反馈时间
required: true
- name: undertaker
description: 承接人信息
type:
schema: users
- ref: orgId
required: true
- ref: orgName
required: true
... ...
version: v1
kind: Schema
metadata:
name: cooperationContract
description: 共创合约
attributes:
- ref: cooperationContractDescription
required: true
- ref: cooperationContractId
required: true
- ref: cooperationContractIncentivesRules
required: true
- ref: cooperationContractName
required: true
- ref: cooperationContractNumber
required: true
- ref: cooperationContractSponsor
required: true
- ref: cooperationContractUndertakerType
required: true
- ref: cooperationMode
required: true
- ref: createdAt
required: true
... ...
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: Schema
metadata:
name: usersBase
description: 用户基础信息
attributes:
- ref: phone
required: true
- ref: status
required: true
- name: statusName
description: 状态描述
type:
primitive: string
- ref: usersCode
required: true
- ref: usersId
required: true
- ref: usersName
required: true
- ref: email
required: true
... ...
version: v1
kind: Method
metadata:
name: listContractChangeLog
type: query
description: 返回合约变更记录列表
payload:
- ref: offset
required: true
- ref: limit
required: true
result:
- ref: count
required: true
- name: contractChangeLogs
type:
array: cooperationContractChangeLog
required: true
... ...
version: v1
kind: Service
metadata:
name: contractChangeLog
description: 合约变更记录
... ...
version: v1
kind: Method
metadata:
name: createContractUndertakerFeedback
type: command
description: 创建承接信息反馈
payload:
- ref: feedbackAttachment
required: true
- ref: feedbackContent
required: true
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
result:
- ref: count
required: true
- name: contractUndertakerFeedbacks
type:
array: contractUndertakerFeedback
required: true
... ...
version: v1
kind: Service
metadata:
name: contractUndertakerFeedback
description: 承接信息反馈
... ...
version: v1
kind: Method
metadata:
name: createCooperationContract
type: command
description: 创建共创合约管理
payload:
- name: cooperationContract
description: 合约信息
type:
schema: cooperationContract
- name: contractUndertaker
description: 承接人信息
type:
schema: contractUndertaker
- name: relationUser
description: 关联用户id
type:
array: int64
result:
- name: cooperationContract
type:
schema: cooperationContract
required: true
... ...
version: v1
kind: Method
metadata:
name: enableCooperationContract
type: command
description: 暂停恢复共创合约
payload:
- ref: cooperationContractId
required: true
- name: status
description: 暂停和恢复的状态
type:
primitive: int32
result:
- name: cooperationContract
type:
schema: cooperationContract
required: true
... ...
version: v1
kind: Method
metadata:
name: getCooperationContract
type: query
description: 返回共创合约管理
payload:
- ref: cooperationContractId
required: true
result:
- name: cooperationContract
type:
schema: cooperationContract
required: true
- name: contractUndertaker
type:
array: contractUndertaker
- name: relevant
type:
array: users
... ...
version: v1
kind: Method
metadata:
name: listCooperationContract
type: query
description: 返回共创合约管理列表
payload:
- ref: offset
required: true
- ref: limit
required: true
result:
- ref: count
required: true
- name: cooperationContracts
type:
array: cooperationContract
required: true
... ...
version: v1
kind: Method
metadata:
name: updateCooperationContract
type: command
description: 更新共创合约管理
payload:
- ref: cooperationContractId
required: true
result:
- name: cooperationContract
type:
schema: cooperationContract
required: true
... ...
version: v1
kind: Service
metadata:
name: cooperationContract
description: 共创合约管理
... ...