作者 陈志颖

feat:添加dsl

正在显示 276 个修改的文件 包含 3764 行增加2 行删除
# 天联共创
## 项目架构
- 基于REST Full的微服务架构
## 代码仓库及相关文档
- [仓库地址](http://gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation.git)
- [项目原型svn](svn://220.250.41.79/repo/标准产品文件)
... ... @@ -10,7 +13,7 @@
- GIT流程:里程碑->问题->功能分支->代码审查->合并分支
- 开发分支命名规范:dev-姓名全拼
- 接口规范:[API交互规范](https://doc-press.fjmaimaimai.com/standard/api.html)
- 接口版本号:v2
- 接口版本号:v1
- 数据交互规范:[数据交互格式标准](https://doc-press.fjmaimaimai.com/team/frontend/overview/http.html)
## 项目使用框架
... ...
不能预览此文件类型
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: searchContractUndertakerFeedback
route:
post: /search
- method: listContractUndertakerFeedback
route:
get: /
params:
- name: offset
- name: limit
... ...
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: searchCooperationApplication
route:
post: /search
- method: listCooperationApplication
route:
get: /
params:
- name: offset
- name: limit
... ...
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
... ...
version: v1
kind: HttpApi
metadata:
service: cooperationContract
path: /cooperation-contracts
endpoints:
- method: createCooperationContract
route:
post: /
- method: updateCooperationContract
route:
put: /{cooperationContractId}
- method: getCooperationContract
route:
get: /{cooperationContractId}
- method: removeCooperationContract
route:
delete: /{cooperationContractId}
- method: searchCooperationContract
route:
post: /search
- method: searchCooperationContractByUndertaker
route:
post: /search-by-undertaker
- method: listCooperationContract
route:
get: /
params:
- name: offset
- name: limit
... ...
version: v1
kind: HttpApi
metadata:
service: cooperationMode
path: /cooperation-modes
endpoints:
- method: createCooperationMode
route:
post: /
- method: updateCooperationMode
route:
put: /{cooperationModeId}
- method: getCooperationMode
route:
get: /{cooperationModeId}
- method: removeCooperationMode
route:
delete: /{cooperationModeId}
- method: searchCooperationMode
route:
post: /search
- method: listCooperationMode
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: searchCooperationProject
route:
post: /search
- method: listCooperationProject
route:
get: /
params:
- name: offset
- name: limit
... ...
version: v1
kind: HttpApi
metadata:
service: creditAccount
path: /credit-accounts
endpoints:
- method: createCreditAccount
route:
post: /
- method: updateCreditAccount
route:
put: /{creditAccountId}
- method: getCreditAccount
route:
get: /{creditAccountId}
- method: removeCreditAccount
route:
delete: /{creditAccountId}
- method: searchCreditAccount
route:
post: /search
- method: payCreditAccount
route:
post: /pay
- method: listCreditAccount
route:
get: /
params:
- name: offset
- name: limit
... ...
version: v1
kind: HttpApi
metadata:
service: dividendsEstimate
path: /dividends-estimates
endpoints:
- method: createDividendsEstimate
route:
post: /
- method: updateDividendsEstimate
route:
put: /{dividendsEstimateId}
- method: getDividendsEstimate
route:
get: /{dividendsEstimateId}
- method: removeDividendsEstimate
route:
delete: /{dividendsEstimateId}
- method: cancelDividendsEstimate
route:
post: /{dividendsEstimateId}/cancel
- method: searchDividendsEstimate
route:
post: /search
- method: estimateDividendsIncentives
route:
post: /estimate-dividends-incentives
- method: estimateMoneyIncentives
route:
post: /estimate-money-incentives
- method: listMoneyIncentives
route:
get: /list-money-incentives
- method: searchMoneyIncentives
route:
post: /search-money-incentives
- method: listDividendsIncentives
route:
get: /list-dividends-incentives
- method: searchDividendsIncentives
route:
post: /search-dividends-incentives
- method: listDividendsEstimate
route:
get: /
params:
- name: offset
- name: limit
... ...
version: v1
kind: HttpApi
metadata:
service: dividendsOrder
path: /dividends-orders
endpoints:
- method: createDividendsOrder
route:
post: /
- method: updateDividendsOrder
route:
put: /{dividendsOrderId}
- method: getDividendsOrder
route:
get: /{dividendsOrderId}
- method: removeDividendsOrder
route:
delete: /{dividendsOrderId}
- method: searchDividendsOrder
route:
post: /search
- method: listDividendsOrder
route:
get: /
params:
- name: offset
- name: limit
... ...
version: v1
kind: HttpApi
metadata:
service: dividendsReturnedOrder
path: /dividends-returned-orders
endpoints:
- method: createDividendsReturnedOrder
route:
post: /
- method: updateDividendsReturnedOrder
route:
put: /{dividendsReturnedOrderId}
- method: getDividendsReturnedOrder
route:
get: /{dividendsReturnedOrderId}
- method: removeDividendsReturnedOrder
route:
delete: /{dividendsReturnedOrderId}
- method: searchDividendsReturnedOrder
route:
post: /search
- method: importDividendsReturnedOrder
route:
post: /import
- method: listDividendsReturnedOrder
route:
get: /
params:
- name: offset
- name: limit
... ...
version: v1
kind: Attribute
metadata:
name: fileSize
description: 附件文件大小
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: fileType
description: 附件文件类型,jpg,pdf
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: name
description: 附件名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: url
description: 附件地址
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: createdAt
description: 创建时间
type:
primitive: datetime
... ...
version: v1
kind: Attribute
metadata:
name: deletedAt
description: 删除时间
type:
primitive: datetime
... ...
version: v1
kind: Attribute
metadata:
name: operateTime
description: 操作时间
type:
primitive: datetime
... ...
version: v1
kind: Attribute
metadata:
name: operator
description: 操作人
type:
schema: user
... ...
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: remarks
description: 备注
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: status
description: 状态
type:
primitive: int32
... ...
version: v1
kind: Attribute
metadata:
name: updatedAt
description: 更新时间
type:
primitive: datetime
... ...
version: v1
kind: Attribute
metadata:
name: userInfo
description: 冗余字段,jsonb格式,不限制存放内容
type:
schema: userInfo
... ...
version: v1
kind: Attribute
metadata:
name: companyId
description: 公司ID,通过集成REST上下文获取
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: companyLogo
description: 公司logo
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: companyName
description: 公司名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: contractUndertaker
description: 共创合约承接人
type:
schema: user
... ...
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
... ...
version: v1
kind: Attribute
metadata:
name: cooperationApplicationApplicant
description: 共创申请人
type:
schema: user
... ...
version: v1
kind: Attribute
metadata:
name: cooperationApplicationAttachment
description: 共创申请描述附件
type:
array: attachment
... ...
version: v1
kind: Attribute
metadata:
name: cooperationApplicationDescription
description: 共创申请描述
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: cooperationApplicationId
description: 共创申请ID
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: cooperationApplicationStatus
description: 共创申请审核状态,1待审核,2已同意,3已拒绝
type:
primitive: int32
... ...
version: v1
kind: Attribute
metadata:
name: cooperationApplicationVerifier
description: 共创申请审核人
type:
schema: user
... ...
version: v1
kind: Attribute
metadata:
name: cooperationApplicationVerifyDescription
description: 共创申请审核描述
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: cooperationApplicationVerifyTime
description: 共创申请审核时间
type:
primitive: datetime
... ...
version: v1
kind: Attribute
metadata:
name: cooperationApplyTime
description: 共创申请时间
type:
primitive: datetime
... ...
version: v1
kind: Attribute
metadata:
name: cooperationContractDescription
description: 共创合约描述
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: cooperationContractDividendsIncentivesRules
description: 共创合约激励规则列表
type:
array: string
... ...
version: v1
kind: Attribute
metadata:
name: cooperationContractId
description: 共创合约ID
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: cooperationContractMoneyIncentivesRules
description: 共创合约金额激励规则列表
type:
array: string
... ...
version: v1
kind: Attribute
metadata:
name: cooperationContractName
description: 共创合约名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: cooperationContractNumber
description: 共创合约编号
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: cooperationContractReferrer
description: 合约推荐人
type:
schema: user
... ...
version: v1
kind: Attribute
metadata:
name: cooperationContractRelevants
description: 共创合约相关人
type:
array: user
... ...
version: v1
kind: Attribute
metadata:
name: cooperationContractSalesman
description: 共创合约业务员
type:
schema: user
... ...
version: v1
kind: Attribute
metadata:
name: cooperationContractSponsor
description: 共创合约发起人
type:
schema: user
... ...
version: v1
kind: Attribute
metadata:
name: cooperationContractUndertakerType
description: 共创合约承接对象,1员工,2共创用户,3公开
type:
array: int32
... ...
version: v1
kind: Attribute
metadata:
name: cooperationContractUndertakers
description: 共创合约承接人列表
type:
array: undertaker
... ...
version: v1
kind: Attribute
metadata:
name: cooperationMode
description: 共创模式
type:
schema: cooperationMode
... ...
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: undertakers
description: 承接人
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: cooperationModeId
description: 共创模式ID
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: cooperationModeName
description: 共创模式名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: cooperationModeNumber
description: 共创模式编码,手动输入,唯一确定
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: cooperationProjectDescription
description: 共创项目描述
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: cooperationProjectId
description: 共创项目ID
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: cooperationProjectName
description: 共创项目名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: cooperationProjectNumber
description: 共创项目编号,自生成,生成规则:XM+6位年月日+#+3位流水,例XM210601#001
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: cooperationProjectPublishTime
description: 共创项目发布时间
type:
primitive: datetime
... ...
version: v1
kind: Attribute
metadata:
name: cooperationProjectPublisher
description: 共创项目发布人
type:
schema: user
... ...
version: v1
kind: Attribute
metadata:
name: cooperationProjectSponsor
description: 共创项目发起人
type:
schema: user
... ...
version: v1
kind: Attribute
metadata:
name: cooperationProjectUndertakerType
description: 共创项目承接对象,1员工,2共创用户,3公开,可以多选
type:
array: int32
... ...
version: v1
kind: Attribute
metadata:
name: actuallyPaidAmount
description: 账期结算实付金额
type:
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: creditAccountId
description: 账期结算单ID
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: creditAccountOrderNum
description: 账期结算单号
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: paymentDocumentAttachment
description: 支付凭证附件
type:
schema: attachment
... ...
version: v1
kind: Attribute
metadata:
name: paymentStatus
description: 共创账期结算支付状态,1待支付,2已支付
type:
primitive: int32
... ...
version: v1
kind: Attribute
metadata:
name: paymentTime
description: 共创账期结算支付时间
type:
primitive: datetime
... ...
version: v1
kind: Attribute
metadata:
name: settlementAmount
description: 账期结算金额
type:
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: settlementTime
description: 共创账期结算时间
type:
primitive: datetime
... ...
version: v1
kind: Attribute
metadata:
name: departmentId
description: 部门ID,通过REST集成上下文获取
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: departmentName
description: 部门名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: departmentNumber
description: 部门编码
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: isOrganization
description: 是否组织机构标识,1为是,2为否,默认为否
type:
primitive: boolean
... ...
version: v1
kind: Attribute
metadata:
name: dividendsAccountStatus
description: 分红结算状态,1待结算,2已结算
type:
primitive: int32
... ...
version: v1
kind: Attribute
metadata:
name: dividendsAmount
description: 分红金额
type:
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: dividendsEstimateId
description: 承接人分红预算记录ID
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: dividendsEstimateOrderNumber
description: 承接人分红预算单号
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: dividendsEstimateTime
description: 分红预算时间
type:
primitive: datetime
... ...
version: v1
kind: Attribute
metadata:
name: dividendsParticipateType
description: 参与分红类型,1承接人,2推荐人,3关联业务员
type:
primitive: int32
... ...
version: v1
kind: Attribute
metadata:
name: dividendsType
description: 分红类型,1订单分红,2退货冲销,3金额激励
type:
primitive: int32
... ...
version: v1
kind: Attribute
metadata:
name: dividendsUser
description: 分红用户
type:
schema: user
... ...
version: v1
kind: Attribute
metadata:
name: orderOrReturnedOrderNum
description: 分红订单号或退货单号
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: dividendsIncentivesAmount
description: 业绩激励分红金额
type:
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: dividendsIncentivesPercentage
description: 分红规则激励百分点
type:
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: dividendsIncentivesRuleId
description: 分红规则ID
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: dividendsIncentivesStage
description: 分红规则激励阶段,阶段返回时需要转换为中文数字
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: dividendsIncentivesStageEnd
description: 分红规则激励阶段结束
type:
primitive: datetime
... ...
version: v1
kind: Attribute
metadata:
name: dividendsIncentivesStageStart
description: 分红规则激励阶段开始
type:
primitive: datetime
... ...
version: v1
kind: Attribute
metadata:
name: referrerPercentage
description: 推荐人抽成比例
type:
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: salesmanPercentage
description: 业务员抽成比例
type:
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: customerName
description: 客户名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: dividendStatus
description: 分红订单分红状态,1待分红,2已分红,3部分分红
type:
primitive: int32
... ...
version: v1
kind: Attribute
metadata:
name: dividendTime
description: 分红订单分红时间
type:
primitive: datetime
... ...
version: v1
kind: Attribute
metadata:
name: dividendsOrderAmount
description: 分红订单金额
type:
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: dividendsOrderId
description: 分红订单ID
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: dividendsOrderNumber
description: 分红订单号
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: dividendsOriginalOrderNum
description: 分红订单原单号
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: orderSalesman
description: 订单业务员
type:
schema: user
... ...
version: v1
kind: Attribute
metadata:
name: orderTime
description: 订单产生时间
type:
primitive: datetime
... ...
version: v1
kind: Attribute
metadata:
name: region
description: 区域
type:
schema: regionInfo
... ...
version: v1
kind: Attribute
metadata:
name: dividendsReturnedCustomerName
description: 退货客户名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: dividendsReturnedDate
description: 退货日期
type:
primitive: datetime
... ...
version: v1
kind: Attribute
metadata:
name: dividendsReturnedOrderId
description: 分红退货单记录ID
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: dividendsReturnedOrderNumber
description: 分红退货单号
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: dividendsReturnedOrderRefund
description: 退货金额
type:
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: originalOrderNum
description: 来源单号,源单号,订单号
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: moneyIncentivesAmount
description: 激励金额
type:
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: moneyIcentivesRuleId
description: 金额激励规则ID
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: moneyIncentivesStage
description: 金额激励阶段,阶段返回时需要转换为中文数字
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: moneyIncentivesStageEnd
description: 金额激励阶段有效期结束
type:
primitive: datetime
... ...
version: v1
kind: Attribute
metadata:
name: moneyIncentivesStageStart
description: 金额激励阶段有效期开始
type:
primitive: datetime
... ...
version: v1
kind: Attribute
metadata:
name: moneyIncentivesTime
description: 金额激励规则时间
type:
primitive: datetime
... ...
version: v1
kind: Attribute
metadata:
name: orderGoodAmount
description: 订单产品金额
type:
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: orderGoodExpense
description: 订单产品费用
type:
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: orderGoodId
description: 订单产品
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: orderGoodName
description: 订单产品名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: orderGoodPrice
description: 订单产品单价
type:
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: orderGoodQuantity
description: 订单产品数量
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: organizationId
description: 组织机构ID
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: regionName
description: 区域名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: regionNumber
description: 区域编号
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: roleId
description: 角色ID
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: roleName
description: 角色名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: company
description: 公司
type:
schema: company
... ...
version: v1
kind: Attribute
metadata:
name: department
description: 部门
type:
schema: department
... ...
version: v1
kind: Attribute
metadata:
name: organization
description: 用户所属组织机构
type:
schema: organization
... ...
version: v1
kind: Attribute
metadata:
name: organizations
description: 关联的组织机构
type:
array: organization
... ...
version: v1
kind: Attribute
metadata:
name: role
description: 用户角色
type:
schema: role
... ...
version: v1
kind: Attribute
metadata:
name: userBaseId
description: 用户基本id
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: userId
description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: userInfo
description: 用户信息冗余字段
type:
schema: userInfo
... ...
version: v1
kind: Attribute
metadata:
name: userType
description: 用户类型,1员工,2共创用户,3公开
type:
primitive: int32
... ...
version: v1
kind: Attribute
metadata:
name: userAccount
description: 用户账号
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: userAvatar
description: 用户头像
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: userEmail
description: 用户邮箱
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: userName
description: 用户姓名
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: userPhone
description: 用户手机号
type:
primitive: string
... ...
... ... @@ -3,7 +3,7 @@ kind: Project
metadata:
name: allied-creation-cooperation
description: 天联共创
version: 0.0.1
version: 1.0.0
repository: gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation
contact:
name: 陈志颖
... ...
version: v1
kind: Schema
metadata:
name: attachment
description: 附件对象
attributes:
- ref: fileType
required: true
- ref: name
required: true
- ref: url
required: true
- ref: fileSize
required: true
... ...
version: v1
kind: Schema
metadata:
name: company
description: 公司值对象
attributes:
- ref: companyId
required: true
- ref: companyLogo
required: true
- ref: companyName
required: true
... ...
version: v1
kind: Schema
metadata:
name: contractUndertakerFeedback
description: 承接人反馈信息
attributes:
- ref: feedbackId
required: true
- ref: feedbackAttachment
required: true
- ref: feedbackContent
required: true
- ref: cooperationContractNumber
required: true
- ref: contractUndertaker
required: true
- ref: cooperationMode
required: true
- ref: organization
description: 数据关联组织机构
required: true
- ref: companyId
required: true
- ref: updatedAt
required: true
- ref: deletedAt
required: true
- ref: createdAt
description: 反馈创建时间,同时也作为反馈时间
required: true
... ...
version: v1
kind: Schema
metadata:
name: cooperationApplication
description: 共创申请实体
attributes:
- ref: cooperationApplicationId
required: true
- ref: cooperationApplicationApplicant
required: true
- ref: cooperationApplicationAttachment
required: true
- ref: cooperationApplicationDescription
required: true
- ref: cooperationApplicationStatus
required: true
- ref: cooperationApplicationVerifier
required: true
- ref: cooperationApplicationVerifyDescription
required: true
- ref: cooperationApplicationVerifyTime
required: true
- ref: cooperationApplyTime
required: true
- ref: cooperationProjectNumber
required: true
- ref: organization
description: 数据关联组织机构
required: true
- ref: companyId
required: true
- ref: createdAt
required: true
- ref: deletedAt
required: true
- ref: updatedAt
required: true
... ...
version: v1
kind: Schema
metadata:
name: cooperationContract
description: 共创项目合约实体
attributes:
- ref: cooperationContractId
required: true
- ref: cooperationContractDescription
required: true
- ref: cooperationContractName
required: true
- ref: cooperationContractNumber
required: true
- ref: cooperationContractReferrer
required: true
- ref: cooperationContractSalesman
required: true
- ref: cooperationContractUndertakerType
required: true
- ref: cooperationContractSponsor
required: true
- ref: cooperationMode
required: true
- ref: status
description: 合约状态,1启用,2禁用
required: true
- ref: organization
description: 数据关联组织机构
required: true
- ref: companyId
required: true
- ref: operator
required: true
- ref: operateTime
required: true
- ref: createdAt
required: true
- ref: deletedAt
required: true
- ref: updatedAt
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: companyId
required: true
- ref: operator
required: true
- ref: updatedAt
required: true
- ref: deletedAt
required: true
- ref: createdAt
required: true
... ...
version: v1
kind: Schema
metadata:
name: cooperationMode
description: 共创模式实体
attributes:
- ref: cooperationModeId
required: true
- ref: cooperationModeNumber
description: 模式编码,唯一确定
required: true
- ref: cooperationModeName
description: 模式名称,唯一确定
required: true
- ref: status
description: 共创模式状态,1启用,2禁用
required: true
- ref: organization
description: 数据关联组织机构
required: true
- ref: companyId
required: true
- ref: remarks
required: true
- ref: operator
required: true
- ref: operateTime
required: true
- ref: updatedAt
required: true
- ref: deletedAt
required: true
- ref: createdAt
required: true
... ...
version: v1
kind: Schema
metadata:
name: cooperationProject
description: 共创项目实体
attributes:
- ref: cooperationProjectId
required: true
- ref: cooperationProjectNumber
description: 共创项目编号
required: true
- ref: cooperationProjectDescription
required: true
- ref: cooperationProjectName
required: true
- ref: cooperationProjectPublishTime
required: true
- ref: cooperationProjectPublisher
required: true
- ref: cooperationProjectSponsor
required: true
- ref: cooperationProjectUndertakerType
required: true
- ref: organization
description: 数据关联组织机构
required: true
- ref: companyId
required: true
- ref: operator
required: true
- ref: operateTime
required: true
- ref: status
description: 共创项目状态,1招标中,2结束
required: true
- ref: updatedAt
required: true
- ref: deletedAt
required: true
- ref: createdAt
required: true
... ...
version: v1
kind: Schema
metadata:
name: creditAccount
description: 账期结算单实体
attributes:
- ref: creditAccountId
required: true
- ref: actuallyPaidAmount
required: true
- ref: creditAccountOrderNum
required: true
- ref: paymentStatus
description: 账期结算支付状态,1待支付,2已支付
required: true
- ref: paymentTime
required: true
- ref: settlementAmount
required: true
- ref: settlementTime
required: true
- ref: cooperationContractNumber
required: true
- name: participator
description: 参与人uid,包括承接人、推荐人、关联业务员
required: true
type:
array: int64
- ref: paymentDocumentAttachment
description: 支付凭证附件
required: true
- ref: organization
description: 数据关联组织机构
required: true
- ref: companyId
required: true
- ref: operator
required: true
- ref: operateTime
required: true
- ref: createdAt
required: true
- ref: deletedAt
required: true
- ref: updatedAt
required: true
... ...
version: v1
kind: Schema
metadata:
name: department
description: 部门值对象
attributes:
- ref: departmentId
required: true
- ref: departmentName
required: true
- ref: departmentNumber
required: true
- ref: isOrganization
required: true
... ...
version: v1
kind: Schema
metadata:
name: dividendsEstimate
description: 分红预算实体
attributes:
- ref: dividendsEstimateId
required: true
- ref: dividendsAccountStatus
description: 分红结算状态
required: true
- ref: dividendsAmount
required: true
- ref: dividendsEstimateOrderNumber
required: true
- ref: dividendsEstimateTime
required: true
- ref: dividendsParticipateType
required: true
- ref: dividendsType
required: true
- ref: orderOrReturnedOrderNum
required: true
- ref: cooperationProjectNumber
required: true
- ref: dividendsUser
required: true
- ref: organization
description: 数据关联组织机构
required: true
- ref: companyId
required: true
- ref: operator
required: true
- ref: operateTime
required: true
- ref: createdAt
required: true
- ref: deletedAt
required: true
- ref: updatedAt
required: true
... ...
version: v1
kind: Schema
metadata:
name: dividendsIncentives
description: 业绩分红DTO
attributes:
- ref: cooperationContractNumber
required: true
- ref: orderOrReturnedOrderNum
required: true
- ref: originalOrderNum
required: true
- ref: customerName
required: true
- ref: region
required: true
- ref: dividendsIncentivesAmount
required: true
- ref: orderTime
description: 订单/退货单日期
required: true
... ...
version: v1
kind: Schema
metadata:
name: dividendsIncentivesRule
description: 金额激励规则实体
attributes:
- ref: dividendsIncentivesRuleId
required: true
- ref: cooperationContractNumber
description: 关联的项目合约编号
required: true
- ref: referrerPercentage
required: true
- ref: salesmanPercentage
required: true
- ref: dividendsIncentivesPercentage
required: true
- ref: dividendsIncentivesStage
required: true
- ref: dividendsIncentivesStageEnd
required: true
- ref: dividendsIncentivesStageStart
required: true
- ref: organization
description: 数据关联组织机构
required: true
- ref: companyId
required: true
- ref: updatedAt
required: true
- ref: deletedAt
required: true
- ref: createdAt
required: true
... ...
version: v1
kind: Schema
metadata:
name: dividendsIncentivesRules
description: 金额激励规则DTO
attributes:
- ref: referrerPercentage
required: true
- ref: salesmanPercentage
required: true
- ref: dividendsIncentivesPercentage
required: true
- ref: dividendsIncentivesStage
required: true
- ref: dividendsIncentivesStageEnd
required: true
- ref: dividendsIncentivesStageStart
required: true
... ...
version: v1
kind: Schema
metadata:
name: dividendsOrder
description: 分红订单实体
attributes:
- ref: dividendsOrderId
required: true
- ref: dividendsOrderNumber
required: true
- ref: dividendsOriginalOrderNum
required: true
- ref: dividendsOrderAmount
required: true
- ref: orderSalesman
required: true
- ref: orderTime
required: true
- ref: dividendTime
required: true
- ref: dividendStatus
required: true
- ref: region
required: true
- ref: customerName
description: 客户姓名
required: true
- ref: organization
description: 数据关联组织机构
required: true
- ref: companyId
required: true
- ref: createdAt
required: true
- ref: deletedAt
required: true
- ref: updatedAt
required: true
- ref: operateTime
required: true
- ref: operator
required: true
... ...
version: v1
kind: Schema
metadata:
name: dividendsReturnedOrder
description: 分红退货单实体
attributes:
- ref: dividendsReturnedOrderId
required: true
- ref: dividendsReturnedOrderNumber
description: 分红退货单号
required: true
- ref: dividendsReturnedOrderRefund
required: true
- ref: originalOrderNum
description: 源单号(原始订单号)
required: true
- ref: dividendsOrderNumber
description: 关联分红订单号
required: true
- ref: dividendsReturnedCustomerName
description: 退货客户姓名
required: true
- ref: dividendsReturnedDate
required: true
- ref: region
description: 退货区域
required: true
- ref: remarks
description: 备注
required: true
- ref: dividendStatus
required: true
- ref: dividendTime
required: true
- ref: organization
description: 数据关联组织机构
required: true
- ref: companyId
required: true
- ref: createdAt
required: true
- ref: deletedAt
required: true
- ref: updatedAt
required: true
- ref: operator
required: true
- ref: operateTime
required: true
... ...
version: v1
kind: Schema
metadata:
name: moneyIncentives
description: 金额激励分红DTO
attributes:
- ref: cooperationContractNumber
required: true
- ref: cooperationContractName
required: true
- ref: cooperationMode
required: true
- ref: cooperationContractSponsor
required: true
- ref: createdAt
description: 共创合约建立时间
required: true
... ...
version: v1
kind: Schema
metadata:
name: moneyIncentivesRule
description: 金额激励规则实体
attributes:
- ref: moneyIncentivesRuleId
required: true
- ref: cooperationContractNumber
description: 关联的共创合约编号
required: true
- ref: moneyIncentivesAmount
required: true
- ref: moneyIncentivesStage
required: true
- ref: moneyIncentivesStageEnd
required: true
- ref: moneyIncentivesStageStart
required: true
- ref: moneyIncentivesTime
required: true
- ref: referrerPercentage
required: true
- ref: salesmanPercentage
required: true
- ref: organization
description: 数据关联组织机构
required: true
- ref: companyId
required: true
- ref: updatedAt
required: true
- ref: deletedAt
required: true
- ref: createdAt
required: true
... ...
version: v1
kind: Schema
metadata:
name: moneyIncentivesRules
description: 金额激励规则DTO
attributes:
- ref: moneyIncentivesAmount
required: true
- ref: moneyIncentivesStage
required: true
- ref: moneyIncentivesStageEnd
required: true
- ref: moneyIncentivesStageStart
required: true
- ref: referrerPercentage
required: true
- ref: salesmanPercentage
required: true
... ...
version: v1
kind: Schema
metadata:
name: orderGood
description: 订单产品领域实体(包括分红订单、分红退货单)
attributes:
- ref: orderGoodId
required: true
- ref: orderGoodAmount
required: true
- ref: orderGoodName
required: true
- ref: orderGoodPrice
required: true
- ref: orderGoodQuantity
required: true
- ref: dividendsOrderNumber
description: 关联分红订单号
required: true
- ref: cooperationContractNumber
description: 关联的共创合约编号
required: true
- ref: orderGoodExpense
description: 订单产品费用
required: true
- ref: createdAt
required: true
- ref: deletedAt
required: true
- ref: updatedAt
required: true
... ...
version: v1
kind: Schema
metadata:
name: orderGoods
description: 订单产品对象
attributes:
- ref: orderGoodAmount
required: true
- ref: orderGoodName
required: true
- ref: orderGoodPrice
required: true
- ref: orderGoodQuantity
required: true
- ref: dividendsOrderNumber
description: 关联分红订单号
required: true
- ref: cooperationContractNumber
description: 关联的共创合约编号
required: true
- ref: orderGoodExpense
description: 订单产品费用
required: true
- ref: createdAt
required: true
- ref: deletedAt
required: true
- ref: updatedAt
required: true
... ...
version: v1
kind: Schema
metadata:
name: organization
description: 组织机构值对象
attributes:
- ref: organizationId
required: true
- ref: companyId
required: true
... ...
version: v1
kind: Schema
metadata:
name: referrer
description: 推荐人值对象
attributes:
- ref: userId
required: true
- ref: userBaseId
required: true
- ref: role
required: true
- ref: organizations
description: 用户关联的组织机构
required: true
- ref: organization
description: 用户所属的组织机构
required: true
- ref: department
description: 用户所属的部门
required: true
- ref: company
required: true
- ref: userInfo
required: true
- ref: userType
required: true
... ...
version: v1
kind: Schema
metadata:
name: regionInfo
description: 区域信息值对象
attributes:
- ref: regionNumber
required: true
- ref: regionName
required: true
... ...
version: v1
kind: Schema
metadata:
name: relevant
description: 共创合约相关人值对象
attributes:
- ref: userId
required: true
- ref: userBaseId
required: true
- ref: organization
description: 用户所属的组织机构
required: true
- ref: organizations
description: 用户关联的组织机构
required: true
- ref: department
description: 用户所属的部门
required: true
- ref: role
required: true
- ref: userInfo
required: true
- ref: userType
required: true
- ref: status
required: true
- ref: company
required: true
... ...
version: v1
kind: Schema
metadata:
name: role
description: 用户角色值对象
attributes:
- ref: roleId
required: true
- ref: roleName
required: true
... ...
version: v1
kind: Schema
metadata:
name: salesman
description: 业务员值对象
attributes:
- ref: userId
required: true
- ref: userBaseId
required: true
- ref: role
required: true
- ref: organizations
description: 用户关联的组织机构
required: true
- ref: organization
description: 用户所属的组织机构
required: true
- ref: department
description: 用户所属的部门
required: true
- ref: company
required: true
- ref: userInfo
required: true
- ref: userType
required: true
... ...
version: v1
kind: Schema
metadata:
name: undertaker
description: 共创合约承接方值对象
attributes:
- ref: userId
required: true
- ref: userBaseId
required: true
- ref: organization
description: 用户所属组织机构
required: true
- ref: organizations
description: 用户关联的组织机构
required: true
- ref: department
description: 用户所属的部门
required: true
- ref: role
required: true
- ref: userInfo
required: true
- ref: userType
required: true
- ref: status
required: true
- ref: company
required: true
- name: contractAttachment
description: 合同附件
type:
array: attachment
... ...
version: v1
kind: Schema
metadata:
name: user
description: 用户第三方服务防腐模型
attributes:
- ref: userId
required: true
- ref: userBaseId
required: true
- ref: organization
description: 用户所属组织机构
required: true
- ref: organizations
description: 用户关联的组织机构
required: true
- ref: department
description: 用户所属的部门
required:
- ref: role
required: true
- ref: userInfo
required: true
- ref: userType
description: 用户类型
required: true
- ref: status
required: true
- ref: company
description: 用户关联公司信息
required: true
... ...
version: v1
kind: Schema
metadata:
name: userInfo
description: 用户信息值对象
attributes:
- ref: userAvatar
required: true
- ref: userEmail
required: true
- ref: userName
required: true
- ref: userPhone
required: true
- ref: userAccount
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: 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
... ...
version: v1
kind: Method
metadata:
name: updateContractUndertakerFeedback
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: Service
metadata:
name: contractUndertakerFeedback
description: 共创合约反馈服务
... ...
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:
- 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
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: 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
... ...
version: v1
kind: Method
metadata:
name: updateCooperationApplication
type: command
description: 更新共创申请服务
payload:
- 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
type:
schema: cooperationApplication
required: true
... ...
version: v1
kind: Service
metadata:
name: cooperationApplication
description: 共创申请服务
... ...
version: v1
kind: Method
metadata:
name: createCooperationContract
type: command
description: 创建共创合约服务
payload:
- ref: cooperationContractDescription
required: true
- ref: cooperationContractNumber
required: true
- ref: cooperationProjectNumber
required: true
- ref: departmentNumber
description: 共创合约发起部门编码
required: true
- ref: cooperationContractUndertakerType
required: true
- ref: cooperationContractName
required: true
- ref: cooperationModeNumber
required: true
- name: sponsorUid
description: 共创合约发起人uid
type:
primitive: string
- name: dividendsIncentivesRules
description: 业绩分红激励规则列表
type:
array: dividendsIncentivesRule
- name: moneyIncentivesRules
description: 金额激励规则列表
type:
array: moneyIncentivesRule
- name: undertakers
description: 承接方列表
type:
array: undertaker
- name: relevants
description: 相关人列表
type:
array: relevant
result:
- name: cooperationContract
type:
schema: cooperationContract
required: true
... ...
version: v1
kind: Method
metadata:
name: getCooperationContract
type: query
description: 返回共创合约服务
payload:
- ref: cooperationContractId
required: true
- name: sponsorUid
description: 发起人uid
type:
primitive: string
result:
- name: cooperationContract
type:
schema: cooperationContract
required: true
... ...
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: removeCooperationContract
type: command
description: 移除共创合约服务
payload:
- ref: cooperationContractId
required: true
result:
- name: cooperationContract
type:
schema: cooperationContract
required: true
... ...
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
... ...
version: v1
kind: Method
metadata:
name: searchCooperationContractByUndertaker
type: query
description: 根据承接人返回共创项目合约
payload:
- ref: cooperationContractName
requird: false
- name: sponsorName
description: 项目发起人姓名
type:
primitive: string
required: false
result:
- ref: cooperationContractDescription
required: true
- ref: cooperationContractId
required: true
- ref: contractUndertaker
required: true
- ref: cooperationContractNumber
required: true
- ref: cooperationContractName
required: true
- ref: cooperationMode
required: true
- ref: cooperationContractSponsor
required: true
- ref: status
required: true
... ...
version: v1
kind: Method
metadata:
name: updateCooperationContract
type: command
description: 更新共创合约服务
payload:
- ref: cooperationContractDescription
required: true
- ref: cooperationContractNumber
required: true
- ref: cooperationProjectNumber
required: true
- ref: departmentNumber
required: true
- ref: cooperationContractUndertakerType
required: true
- ref: cooperationContractName
required: true
- ref: cooperationModeNumber
required: true
- name: sponsorUid
description: 共创合约发起人uid
type:
primitive: string
result:
- name: cooperationContract
type:
schema: cooperationContract
required: true
... ...
version: v1
kind: Service
metadata:
name: cooperationContract
description: 共创合约服务
... ...
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: createCooperationMode
type: command
description: 创建共创模式服务
payload:
- ref: cooperationModeName
required: true
- ref: cooperationModeNumber
required: true
- ref: remarks
required: true
result:
- name: cooperationMode
type:
schema: cooperationMode
required: true
... ...
version: v1
kind: Method
metadata:
name: getCooperationMode
type: query
description: 返回共创模式服务
payload:
- ref: cooperationModeId
required: true
result:
- name: cooperationMode
type:
schema: cooperationMode
required: true
... ...
version: v1
kind: Method
metadata:
name: listCooperationMode
type: query
description: 返回共创模式服务列表
payload:
- ref: offset
required: true
- ref: limit
required: true
result:
- ref: count
required: true
- name: cooperationModes
type:
array: cooperationMode
required: true
... ...
version: v1
kind: Method
metadata:
name: removeCooperationMode
type: command
description: 移除共创模式服务
payload:
- ref: cooperationModeId
required: true
result:
- name: cooperationMode
type:
schema: cooperationMode
required: true
... ...
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
... ...
version: v1
kind: Method
metadata:
name: updateCooperationMode
type: command
description: 更新共创模式服务
payload:
- ref: cooperationModeName
required: true
- ref: cooperationModeNumber
required: true
- ref: remarks
required: true
result:
- name: cooperationMode
type:
schema: cooperationMode
required: true
... ...
version: v1
kind: Service
metadata:
name: cooperationMode
description: 共创模式服务
... ...
version: v1
kind: Method
metadata:
name: createCooperationProject
type: command
description: 创建共创项目服务
payload:
- ref: cooperationProjectName
required: true
- ref: cooperationProjectUndertakerType
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:
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: 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
... ...
version: v1
kind: Method
metadata:
name: updateCooperationProject
type: command
description: 更新共创项目服务
payload:
- ref: cooperationProjectName
required: true
- ref: cooperationProjectUndertakerType
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:
schema: cooperationProject
required: true
... ...
version: v1
kind: Service
metadata:
name: cooperationProject
description: 共创项目服务
... ...
version: v1
kind: Method
metadata:
name: createCreditAccount
type: command
description: 创建账期结算单服务
result:
- name: creditAccount
type:
schema: creditAccount
required: true
... ...
version: v1
kind: Method
metadata:
name: getCreditAccount
type: query
description: 返回账期结算单服务
payload:
- ref: creditAccountId
required: true
result:
- name: creditAccount
type:
schema: creditAccount
required: true
... ...
version: v1
kind: Method
metadata:
name: listCreditAccount
type: query
description: 返回账期结算单服务列表
payload:
- ref: offset
required: true
- ref: limit
required: true
result:
- ref: count
required: true
- name: creditAccounts
type:
array: creditAccount
required: true
... ...
version: v1
kind: Method
metadata:
name: payCreditAccount
type: command
description: 支付账期结算
payload:
- ref: actuallyPaidAmount
required: true
- ref: remarks
required: true
result:
- name: creditAccount
type:
schema: creditAccount
required: true
... ...
version: v1
kind: Method
metadata:
name: removeCreditAccount
type: command
description: 移除账期结算单服务
payload:
- ref: creditAccountId
required: true
result:
- name: creditAccount
type:
schema: creditAccount
required: true
... ...
version: v1
kind: Method
metadata:
name: searchCreditAccount
type: query
description: 查询账期结算单
payload:
- ref: creditAccountOrderNum
required: true
- name: participatorName
description: 参与人姓名
type:
primitive: string
result:
- name: creditAccount
type:
schema: creditAccount
required: true
... ...
version: v1
kind: Method
metadata:
name: updateCreditAccount
type: command
description: 更新账期结算单服务
payload:
- ref: creditAccountId
required: true
result:
- name: creditAccount
type:
schema: creditAccount
required: true
... ...
version: v1
kind: Service
metadata:
name: creditAccount
description: 账期结算单服务
... ...
version: v1
kind: Method
metadata:
name: cancelDividendsEstimate
type: command
description: 取消分红预算
result:
- name: dividendsEstimate
type:
schema: dividendsEstimate
required: true
... ...
version: v1
kind: Method
metadata:
name: createDividendsEstimate
type: command
description: 创建分红预算服务
result:
- name: dividendsEstimate
type:
schema: dividendsEstimate
required: true
... ...
version: v1
kind: Method
metadata:
name: estimateDividendsIncentives
type: command
description: 确定预算分红激励
payload:
- ref: orderOrReturnedOrderNum
description: 分红订单号/退货单号
required: true
- ref: cooperationContractNumber
description: 合约编号
required: true
result:
- name: dividendsEstimate
type:
schema: dividendsEstimate
required: true
... ...
version: v1
kind: Method
metadata:
name: estimateMoneyIncentives
type: command
description: 确定预算金额激励分红
payload:
- ref: cooperationContractNumber
description: 共创项目合约编号
required: true
- ref: dividendsIncentivesStage
description: 分红阶段
required: true
- name: undertakerUid
decription: 承接人UID
type:
primitive: string
required: true
result:
- name: dividendsEstimate
type:
schema: dividendsEstimate
required: true
... ...
version: v1
kind: Method
metadata:
name: getDividendsEstimate
type: query
description: 返回分红预算服务
payload:
- ref: dividendsEstimateId
required: true
result:
- name: dividendsEstimate
type:
schema: dividendsEstimate
required: true
... ...
version: v1
kind: Method
metadata:
name: listDividendsEstimate
type: query
description: 返回分红预算服务列表
payload:
- ref: offset
required: true
- ref: limit
required: true
result:
- ref: count
required: true
- name: dividendsEstimates
type:
array: dividendsEstimate
required: true
... ...
version: v1
kind: Method
metadata:
name: listDividendsIncentives
type: query
description: 返回业绩激励分红
payload:
- ref: offset
required: true
- ref: limit
required: true
result:
- name: dividendsIncentives
type:
schema: dividendsIncentives
required: true
... ...
version: v1
kind: Method
metadata:
name: listMoneyIncentives
type: query
description: 返回金额激励分红
payload:
- ref: offset
required: true
- ref: limit
required: true
result:
- name: moneyIncentives
type:
schema: moneyIncentives
required: true
... ...
version: v1
kind: Method
metadata:
name: removeDividendsEstimate
type: command
description: 移除分红预算服务
payload:
- ref: dividendsEstimateId
required: true
result:
- name: dividendsEstimate
type:
schema: dividendsEstimate
required: true
... ...
version: v1
kind: Method
metadata:
name: searchDividendsEstimate
type: query
description: 查询分红预算单
payload:
- ref: dividendsEstimateOrderNumber
required: true
- ref: dividendsType
required: true
result:
- name: dividendsEstimate
type:
schema: dividendsEstimate
required: true
... ...
version: v1
kind: Method
metadata:
name: searchDividendsIncentives
type: query
description: 查询业绩分红
payload:
- ref: cooperationContractNumber
description: 合约编号
required: false
- ref: orderOrReturnedOrderNum
description: 分红订单号/退货单号
required: false
result:
- name: dividendsIncentives
type:
schema: dividendsIncentives
required: true
... ...
version: v1
kind: Method
metadata:
name: searchMoneyIncentives
type: query
description: 查询金额激励分红
payload:
- ref: cooperationContractName
description: 共创合约名称
required: false
- ref: departmentName
description: 发起部门名称
required: false
result:
- name: moneyIncentives
type:
schema: moneyIncentives
required: true
... ...
version: v1
kind: Method
metadata:
name: updateDividendsEstimate
type: command
description: 更新分红预算服务
payload:
- ref: dividendsEstimateId
required: true
result:
- name: dividendsEstimate
type:
schema: dividendsEstimate
required: true
... ...
version: v1
kind: Service
metadata:
name: dividendsEstimate
description: 分红预算服务
... ...
version: v1
kind: Method
metadata:
name: createDividendsIncentivesRule
type: command
description: 创建业绩分红激励规则服务,聚合到共创项目合约
payload:
- ref: cooperationContractNumber
required: true
- ref: dividendsIncentivesPercentage
required: true
- ref: dividendsIncentivesStage
required: true
- ref: dividendsIncentivesStageStart
required: true
- ref: dividendsIncentivesStageEnd
required: true
- ref: referrerPercentage
required: true
- ref: salesmanPercentage
required: true
result:
- name: dividendsIncentivesRule
type:
schema: dividendsIncentivesRule
required: true
... ...
version: v1
kind: Method
metadata:
name: getDividendsIncentivesRule
type: query
description: 返回业绩分红激励规则服务
payload:
- ref: dividendsIncentivesRuleId
required: true
result:
- name: dividendsIncentivesRule
type:
schema: dividendsIncentivesRule
required: true
... ...
version: v1
kind: Method
metadata:
name: listDividendsIncentivesRule
type: query
description: 返回业绩分红激励规则服务列表
payload:
- ref: offset
required: true
- ref: limit
required: true
result:
- ref: count
required: true
- name: dividendsIncentivesRules
type:
array: dividendsIncentivesRule
required: true
... ...
version: v1
kind: Method
metadata:
name: removeDividendsIncentivesRule
type: command
description: 移除业绩分红激励规则服务
payload:
- ref: dividendsIncentivesRuleId
required: true
result:
- name: dividendsIncentivesRule
type:
schema: dividendsIncentivesRule
required: true
... ...
version: v1
kind: Method
metadata:
name: updateDividendsIncentivesRule
type: command
description: 更新业绩分红激励规则服务
payload:
- ref: cooperationContractNumber
required: true
- ref: dividendsIncentivesPercentage
required: true
- ref: dividendsIncentivesStage
required: true
- ref: dividendsIncentivesStageStart
required: true
- ref: dividendsIncentivesStageEnd
required: true
- ref: referrerPercentage
required: true
- ref: salesmanPercentage
required: true
result:
- name: dividendsIncentivesRule
type:
schema: dividendsIncentivesRule
required: true
... ...
version: v1
kind: Service
metadata:
name: dividendsIncentivesRule
description: 业绩分红激励规则服务
... ...
version: v1
kind: Method
metadata:
name: createDividendsOrder
type: command
description: 创建分红订单实体对象
payload:
- ref: customerName
required: true
- ref: dividendsOrderAmount
required: true
- ref: dividendsOrderNumber
required: true
- ref: dividendsOriginalOrderNum
required: true
- ref: orderTime
required: true
- ref: remarks
required: true
- name: salesmanUid
description: 订单业务员uid
type:
primitive: string
- name: operatorUid
description: 订单操作人uid
type:
primitive: string
- name: orderGoods
description: 订单产品列表
type:
array: orderGoods
result:
- name: dividendsOrder
type:
schema: dividendsOrder
required: true
... ...
version: v1
kind: Method
metadata:
name: getDividendsOrder
type: query
description: 返回分红订单实体对象
payload:
- ref: dividendsOrderId
required: true
result:
- name: dividendsOrder
type:
schema: dividendsOrder
required: true
... ...
version: v1
kind: Method
metadata:
name: listDividendsOrders
type: query
description: 返回分红订单实体对象列表
payload:
- ref: offset
required: true
- ref: limit
required: true
result:
- ref: count
required: true
- name: dividendsOrders
type:
array: dividendsOrder
required: true
... ...
version: v1
kind: Method
metadata:
name: removeDividendsOrder
type: command
description: 移除分红订单实体对象
payload:
- ref: dividendsOrderId
required: true
result:
- name: dividendsOrder
type:
schema: dividendsOrder
required: true
... ...
version: v1
kind: Method
metadata:
name: searchDividendsOrder
type: query
description: 查询分红订单方法
payload:
- ref: dividendsOrderNumber
required: false
- ref: customerName
required: false
- ref: pageSize
required: false
- ref: pageNumber
required: false
result:
- name: dividendsOrders
type:
array: dividendsOrder
required: true
... ...
version: v1
kind: Method
metadata:
name: updateDividendsOrder
type: command
description: 更新分红订单实体对象
payload:
- ref: customerName
required: true
- ref: dividendsOrderAmount
required: true
- ref: dividendsOrderNumber
required: true
- ref: dividendsOriginalOrderNum
required: true
- ref: orderTime
required: true
- ref: remarks
required: true
- name: salesmanUid
description: 业务员uid
type:
primitive: string
- name: operatorUid
description: 操作人uid
type:
primitive: string
result:
- name: dividendsOrder
type:
schema: dividendsOrder
required: true
... ...
version: v1
kind: Service
metadata:
name: dividendsOrder
description: 分红订单实体对象
... ...
version: v1
kind: Method
metadata:
name: createDividendsReturnedOrder
type: command
description: 创建分红退货单服务
payload:
- ref: dividendsReturnedOrderRefund
required: true
- ref: dividendsReturnedCustomerName
required: true
- ref: originalOrderNum
required: true
- ref: remarks
required: true
- ref: dividendsReturnedDate
required: true
- name: regionName
description: 退货区域名称
type:
primitive: string
- name: orderGoods
description: 订单产品列表
type:
array: orderGoods
result:
- name: dividendsReturnedOrder
type:
schema: dividendsReturnedOrder
required: true
... ...
version: v1
kind: Method
metadata:
name: getDividendsReturnedOrder
type: query
description: 返回分红退货单服务
payload:
- ref: dividendsReturnedOrderId
require: true
result:
- name: dividendsReturnedOrders
type:
schema: dividendsReturnedOrder
required: true
... ...
version: v1
kind: Method
metadata:
name: importDividendsReturnedOrder
type: command
description: 导入分红退货单
payload:
- name: file
description: 导入文件
type:
primitive: string
- name: where
description: 参数列表
type:
primitive: string
result:
- name: dividendsReturnedOrder
type:
schema: dividendsReturnedOrder
required: true
... ...
version: v1
kind: Method
metadata:
name: listDividendsReturnedOrder
type: query
description: 返回分红退货单服务列表
payload:
- ref: offset
required: true
- ref: limit
required: true
result:
- ref: count
required: true
- name: dividendsReturnedOrders
type:
array: dividendsReturnedOrder
required: true
... ...
version: v1
kind: Method
metadata:
name: removeDividendsReturnedOrder
type: command
description: 移除分红退货单服务
result:
- name: dividendsReturnedOrder
type:
schema: dividendsReturnedOrder
required: true
... ...
version: v1
kind: Method
metadata:
name: searchDividendsReturnedOrder
type: query
description: 查找分红退货单
payload:
- ref: dividendsReturnedCustomerName
description: 退货客户姓名
required: false
- ref: dividendsReturnedOrderNumber
description: 分红退货单号
required: false
- ref: pageSize
required: false
- ref: pageNumber
required: false
result:
- name: dividendsReturnedOrders
type:
array: dividendsReturnedOrder
required: true
... ...
version: v1
kind: Method
metadata:
name: updateDividendsReturnedOrder
type: command
description: 更新分红退货单服务
payload:
- ref: dividendsReturnedOrderRefund
required: true
- ref: dividendsReturnedCustomerName
required: true
- ref: originalOrderNum
required: true
- ref: remarks
required: true
- ref: dividendsReturnedDate
required: true
- name: regionName
description: 退货区域
type:
primitive: string
- name: orderGoods
description: 订单产品列表
type:
array: orderGoods
result:
- name: dividendsReturnedOrder
type:
schema: dividendsReturnedOrder
required: true
... ...
version: v1
kind: Service
metadata:
name: dividendsReturnedOrder
description: 分红退货单服务
... ...
version: v1
kind: Method
metadata:
name: createMoneyIncentivesRule
type: command
description: 创建项目金额激励规则服务,聚合到共创合约
payload:
- ref: moneyIncentivesStageEnd
required: true
- ref: moneyIncentivesStageStart
required: true
- ref: moneyIncentivesStage
required: true
- ref: moneyIncentivesAmount
required: true
- ref: cooperationContractNumber
required: true
result:
- name: moneyIncentivesRule
type:
schema: moneyIncentivesRule
required: true
... ...
version: v1
kind: Method
metadata:
name: getMoneyIncentivesRule
type: query
description: 返回项目金额激励规则服务
payload:
- ref: moneyIncentivesRuleId
required: true
result:
- name: moneyIncentivesRule
type:
schema: moneyIncentivesRule
required: true
... ...
version: v1
kind: Method
metadata:
name: listMoneyIncentivesRules
type: query
description: 返回项目金额激励规则服务列表
payload:
- ref: offset
required: true
- ref: limit
required: true
result:
- ref: count
required: true
- name: moneyIncentivesRules
type:
array: moneyIncentivesRule
required: true
... ...
version: v1
kind: Method
metadata:
name: removeMoneyIncentivesRule
type: command
description: 移除项目金额激励规则服务
payload:
- ref: moneyIncentivesRuleId
required: true
result:
- name: moneyIncentivesRule
type:
schema: moneyIncentivesRule
required: true
... ...
version: v1
kind: Method
metadata:
name: updateMoneyIncentivesRule
type: command
description: 更新项目金额激励规则服务
payload:
- ref: moneyIncentivesStageEnd
required: true
- ref: moneyIncentivesStageStart
required: true
- ref: moneyIncentivesStage
required: true
- ref: moneyIncentivesAmount
required: true
- ref: cooperationContractNumber
required: true
result:
- name: moneyIncentivesRule
type:
schema: moneyIncentivesRule
required: true
... ...
version: v1
kind: Service
metadata:
name: moneyIncentivesRule
description: 项目金额激励规则服务
... ...