作者 yangfu
正在显示 134 个修改的文件 包含 1751 行增加73 行删除
... ... @@ -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: searchContractUndertakerFeedback
route:
post: /search
- method: listContractUndertakerFeedback
route:
get: /
params:
- name: offset
- name: limit
... ...
... ... @@ -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
... ...
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: listCooperationContract
route:
get: /
params:
- name: offset
- name: limit
... ...
... ... @@ -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: 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: Attribute
metadata:
name: regionId
description: 区域ID
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: pageNumber
description: 页面大小
type:
primitive: int32
... ...
version: v1
kind: Attribute
metadata:
name: pageSize
description: 页面大小
type:
primitive: int32
... ...
... ... @@ -4,4 +4,4 @@ metadata:
name: feedbackAttachment
description: 合约承接方反馈内容附件
type:
array: string
array: attachment
... ...
... ... @@ -4,4 +4,4 @@ metadata:
name: cooperationApplicationAttachment
description: 共创申请描述附件
type:
array: string
array: attachment
... ...
version: v1
kind: Attribute
metadata:
name: undertaker
name: undertakers
description: 承接人
type:
schema: datetime
primitive: string
... ...
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
... ...
... ... @@ -2,6 +2,6 @@ version: v1
kind: Attribute
metadata:
name: dividendsOrderNumber
description: 分红订单源单
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: orderNum
name: dividendsOriginalReturnedOrderNum
description: 来源单号,源单号,订单号
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: dividendsReturnedId
name: dividendsReturnedOrderId
description: 分红退货单记录ID
type:
primitive: string
... ...
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: regionNumber
description: 区域编号
type:
primitive: string
... ...
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
... ...
... ... @@ -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: 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: dividendsIncentivesRule
description: 金额激励规则实体
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: 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: moneyIncentivesRule
description: 金额激励规则实体
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: orderGood
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
... ...
... ... @@ -4,7 +4,7 @@ metadata:
name: regionInfo
description: 区域信息值对象
attributes:
- ref: regionId
- ref: regionNumber
required: true
- ref: regionName
required: true
... ...
version: v1
kind: Schema
metadata:
name: relevant
description: 共创合约相关人
attributes:
- ref: userId
required: true
- ref: orgnization
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: undertaker
description: 共创合约承接方
attributes:
- ref: userId
required: true
- ref: orgnization
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: 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: 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: 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: dividendsIncentivesRules
- name: moneyIncentivesRules
description: 金额激励规则列表
type:
array: moneyIncentivesRules
- 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: Attribute描述
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: 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: 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:
... ...
... ... @@ -3,7 +3,7 @@ kind: Method
metadata:
name: createDividendsIncentivesRule
type: command
description: 创建业绩分红激励规则服务
description: 创建业绩分红激励规则服务,聚合到共创项目合约
payload:
- ref: cooperationContractNumber
required: true
... ...
... ... @@ -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
... ...
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: Attribute描述
type:
primitive: string
- name: operatorUid
description: Attribute描述
type:
primitive: string
result:
- name: dividendsOrder
type:
schema: dividendsOrder
required: true
... ...
version: v1
kind: Service
metadata:
name: dividendsOrder
description: 分红订单实体对象
... ...
... ... @@ -3,7 +3,7 @@ kind: Method
metadata:
name: createMoneyIncentivesRule
type: command
description: 创建项目金额激励规则服务
description: 创建项目金额激励规则服务,聚合到共创合约
payload:
- ref: moneyIncentivesStageEnd
required: true
... ...
... ... @@ -15,8 +15,6 @@ metadata:
required: true
- ref: cooperationContractNumber
required: true
- ref: moneyIncentivesRulesId
required: true
result:
- name: moneyIncentivesRule
type:
... ...
version: v1
kind: HttpApi
metadata:
service: cooperationApplication
path: /cooperation-applications
endpoints:
- method: createCooperationApplication
route:
post: /
- method: updateCooperationApplication
route:
put: /{applicationId}
- method: getCooperationApplication
route:
get: /{applicationId}
- method: listCooperationApplication
route:
get: /
params:
- name: offset
- name: limit
- method: auditCooperationApplication
route:
put: /audit
... ...
version: v1
kind: HttpApi
metadata:
service: cooperationMode
path: /cooperation-modes
endpoints:
- method: createCooperationMode
route:
post: /
- method: updateCooperationMode
route:
put: /{modeId}
- method: getCooperationMode
route:
get: /{modeId}
- method: removeCooperationMode
route:
delete: /{modeId}
- method: listCooperationMode
route:
get: /
params:
- name: offset
- name: limit
... ...
version: v1
kind: HttpApi
metadata:
service: cooperationProject
path: /cooperation-projects
endpoints:
- method: createCooperationProject
route:
post: /
- method: updateCooperationProject
route:
put: /{projectId}
- method: getCooperationProject
route:
get: /{projectId}
- method: listCooperationProject
route:
get: /
params:
- name: offset
- name: limit
... ...
version: v1
kind: Attribute
metadata:
name: attachmentName
description: 附件名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: attachmentType
description: 附件类型
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: attachmentUrl
description: 附件下载地址
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: fileSize
description: 文件大小
type:
primitive: string
... ...
... ... @@ -3,5 +3,5 @@ kind: Attribute
metadata:
name: cooperationApplicationAttachment
description: 共创申请描述附件
type:
array: string
type:
array: attachment
... ...
version: v1
kind: Attribute
metadata:
name: cooperationContractDescription
description: 共创合约描述
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: cooperationContractId
description: 共创合约ID
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: cooperationContractIncentivesRules
description: 共创合约激励规则列表
type:
array: dividendsIncentivesRules
... ...
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: 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: cooperationMode
description: 共创模式
type:
schema: cooperationMode
... ...
version: v1
kind: Attribute
metadata:
name: cooperationProjectDepartment
description: 发起部门
type:
schema: orgs
... ...
... ... @@ -3,5 +3,5 @@ kind: Attribute
metadata:
name: cooperationProjectPublisher
description: 共创项目发布人
type:
schema: user
type:
schema: users
... ...
... ... @@ -3,5 +3,5 @@ kind: Attribute
metadata:
name: cooperationProjectSponsor
description: 共创项目发起人
type:
schema: user
type:
schema: users
... ...
version: v1
kind: Attribute
metadata:
name: dividendsPercentage
description: 分红规则激励百分点
type:
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: dividendsRuleId
description: 分红规则ID
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: dividendsStage
description: 分红规则激励阶段,阶段返回时需要转换为中文数字
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: dividendsStageEnd
description: 分红规则激励阶段结束
type:
primitive: datetime
... ...
version: v1
kind: Attribute
metadata:
name: dividendsStageStart
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: Schema
metadata:
name: attachment
description: 附件信息
attributes:
- ref: attachmentUrl
required: true
- ref: attachmentType
required: true
- ref: attachmentName
required: true
- ref: fileSize
required: true
... ...
version: v1
kind: Schema
metadata:
name: cooperationApplication
description: 共创申请
attributes:
- ref: cooperationApplicationApplicant
required: true
- ref: cooperationApplicationAttachment
required: true
- ref: cooperationApplicationDescription
required: true
- ref: cooperationApplicationId
required: true
- ref: cooperationApplicationStatus
required: true
- ref: cooperationApplicationVerifier
required: true
- ref: cooperationApplicationVerifyDescription
required: true
- ref: cooperationApplicationVerifyTime
required: true
- ref: cooperationApplyTime
required: true
- ref: cooperationProjectId
required: true
- ref: cooperationProjectNumber
required: true
- ref: companyId
required: true
- ref: orgName
required: true
- ref: orgId
required: true
... ...
version: v1
kind: Schema
metadata:
name: cooperationInfo
description: 共创信息
attributes:
- ref: usersCode
required: true
- ref: usersId
required: true
- ref: orgId
required: true
- ref: orgName
required: true
- ref: usersName
required: true
- ref: phone
required: true
- ref: status
required: true
- name: statusName
description: 状态描述
type:
primitive: string
- name: referrer
type:
schema: users
... ...
... ... @@ -4,26 +4,35 @@ 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: remarks
required: true
- ref: operator
required: true
- ref: operateTime
required: true
- ref: updatedAt
required: true
- ref: deletedAt
required: true
- ref: createdAt
required: true
- ref: cooperationModeId
required: true
- ref: companyId
required: true
- ref: orgId
required: true
- ref: orgName
- ref: cooperationModeNumber
description: 模式编码,唯一确定
required: true
- ref: cooperationModeName
description: 模式名称,唯一确定
required: true
- ref: status
description: 共创模式状态,1启用,2禁用
required: true
- name: statusName
description: 状态描述
type:
primitive: string
- 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: cooperationProjectDescription
required: true
- ref: cooperationProjectId
required: true
- ref: cooperationProjectName
required: true
- ref: cooperationProjectNumber
required: true
- ref: cooperationProjectPublishTime
required: true
- ref: cooperationProjectPublisher
required: true
- ref: cooperationProjectSponsor
required: true
- ref: cooperationProjectUndertakerType
required: true
- ref: companyId
required: true
- ref: orgName
required: true
- ref: orgId
required: true
- ref: cooperationModeName
- ref: cooperationModeNumber
description: 模式编码,唯一确定
- ref: cooperationProjectDepartment
- name: cooperationMode
description: 共创模式
type:
schema: cooperationMode
... ...
version: v1
kind: Schema
metadata:
name: dividendsIncentivesRules
description: 金额激励规则实体
attributes:
- ref: dividendsIncentivesRuleId
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: updatedAt
required: true
- ref: deletedAt
required: true
- ref: createdAt
required: true
... ...
... ... @@ -26,6 +26,10 @@ metadata:
required: true
- ref: status
required: true
- name: statusName
description: 状态描述
type:
primitive: string
- ref: usersCode
required: true
- ref: usersId
... ...
version: v1
kind: Method
metadata:
name: auditCooperationApplication
type: command
description: 审核共创申请
payload:
- ref: cooperationApplicationId
required: true
- name: userId
description: 审核人id
type:
primitive: int64
- ref: cooperationApplicationStatus
required: true
- ref: cooperationApplicationVerifyDescription
required: true
result:
- ref: cooperationApplicationId
... ...
version: v1
kind: Method
metadata:
name: createCooperationApplication
type: command
description: 创建共创申请管理
payload:
- ref: cooperationApplicationDescription
required: true
- name: userId
description: 申请人的id
type:
primitive: int64
- name: attachment
description: 附件列表
type:
array: attachment
result:
- name: cooperationApplication
type:
schema: cooperationApplication
required: true
- name: cooperationProject
type:
schema: cooperationProject
... ...
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: 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: 共创申请管理
... ...
... ... @@ -3,10 +3,27 @@ kind: Method
metadata:
name: createCooperationProject
type: command
description: 创建共创项目服务
description: 创建共创项目管理
payload:
- ref: cooperationModeNumber
description: 模式编码,唯一确定
required: true
- ref: orgId
required: true
- ref: cooperationProjectName
required: true
- name: cooperationProjectSponsor
description: 共创发起人id
type:
primitive: int64
- name: cooperationProjectUndertakerType
description: 项目承接对象
type:
array: int32
- ref: cooperationProjectDescription
required: true
result:
- name: cooperationProject
type:
schema: cooperationProject
required: true
- name: cooperationProject
type:
schema: cooperationProject
required: true
... ...
... ... @@ -3,12 +3,15 @@ kind: Method
metadata:
name: getCooperationProject
type: query
description: 返回共创项目服务
description: 返回共创项目管理
payload:
- ref: cooperationProjectId
required: true
- ref: cooperationProjectId
required: true
result:
- name: cooperationProject
type:
schema: cooperationProject
required: true
- name: cooperationProject
type:
schema: cooperationProject
required: true
- name: application
type:
array: cooperationApplication
... ...
... ... @@ -3,7 +3,7 @@ kind: Method
metadata:
name: listCooperationProject
type: query
description: 返回共创项目服务列表
description: 返回共创项目管理列表
payload:
- ref: offset
required: true
... ...
... ... @@ -3,12 +3,29 @@ kind: Method
metadata:
name: updateCooperationProject
type: command
description: 更新共创项目服务
description: 更新共创项目管理
payload:
- ref: cooperationProjectId
required: true
- ref: cooperationProjectId
required: true
- ref: cooperationModeNumber
description: 模式编码,唯一确定
required: true
- ref: orgId
required: true
- ref: cooperationProjectName
required: true
- name: cooperationProjectSponsor
description: 共创发起人id
type:
primitive: int64
- name: cooperationProjectUndertakerType
description: 项目承接对象
type:
array: int32
- ref: cooperationProjectDescription
required: true
result:
- name: cooperationProject
type:
schema: cooperationProject
required: true
- name: cooperationProject
type:
schema: cooperationProject
required: true
... ...
... ... @@ -2,4 +2,4 @@ version: v1
kind: Service
metadata:
name: cooperationProject
description: 共创项目服务
description: 共创项目管理
... ...
version: v1
kind: Method
metadata:
name: AuthCodeToAccessToken
type: query
description: 获取具体的进入系统的凭证
payload:
- name: authCode
description: 登录认证的凭证
type:
primitive: string
- name: companyId
description: 公司id
type:
primitive: string
- name: organizationId
description: 组织id
type:
primitive: string
result:
- name: accessToken
description: 登录系统的凭证
type:
primitive: string
... ...
version: v1
kind: Method
metadata:
name: changeIdentity
type: query
description: 切换公司组织
payload:
- name: accessToken
description: 登录凭证
type:
primitive: string
- name: companyId
description: 公司id
type:
primitive: int64
result:
- name: accessToken
description: 登录系统的凭证
type:
primitive: string
... ...
version: v1
kind: Method
metadata:
name: menuUpdate
type: query
description: 设置收藏菜单
payload:
- ref: companyId
required: true
- ref: menuId
required: true
result:
- name: menusId
type:
array: int64
required: true
... ...
... ... @@ -5,10 +5,20 @@ metadata:
type: command
description: 编辑共创用户信息
payload:
- name: userinfo
description: 共创用户信息
type:
schema: cooperationUser
- ref: usersId
required: true
- ref: usersCode
required: true
- ref: usersName
required: true
- ref: cooperationCompany
required: true
- ref: cooperationDeadline
required: true
- ref: enableStatus
required: true
- ref: email
required: true
result:
- name: usersId
type:
... ...