作者 陈志颖

feat:生成基础框架代码

正在显示 380 个修改的文件 包含 6011 行增加52 行删除
不能预览此文件类型
FROM golang:latest
MAINTAINER 陈志颖 <steve.d.chan@qq.com>
ENV APP_DIR $GOPATH/src/allied-creation-cooperation
RUN mkdir -p $APP_DIR
WORKDIR $APP_DIR/
COPY ./pkg pkg
COPY ./conf conf
COPY ./go.mod go.mod
COPY ./go.sum go.sum
COPY ./main.go main.go
RUN ["ln","-sf","/usr/share/zoneinfo/Asia/Shanghai","/etc/localtime"]
ENV GO111MODULE on
ENV GOPROXY https://goproxy.io
RUN ["go","mod","tidy"]
RUN ["ls"]
RUN ["go","build"]
ENTRYPOINT ["./allied-creation-cooperation"]
\ No newline at end of file
... ...
apiVersion: v1
kind: Service
metadata:
name: allied-creation-cooperation
namespace: <replace-your-k8s-namespace>
labels:
k8s-app: allied-creation-cooperation
spec:
ports:
- name: "http"
port: 80
targetPort: 8082
selector:
k8s-app: allied-creation-cooperation
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: allied-creation-cooperation
namespace: <replace-your-k8s-namespace>
labels:
k8s-app: allied-creation-cooperation
spec:
replicas: 1
template:
metadata:
labels:
k8s-app: allied-creation-cooperation
spec:
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- preference: {}
weight: 100
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- cn-hangzhou.i-bp1djh1xn7taumbue1ze
- cn-hangzhou.i-bp1djh1xn7taumbue1zd
- cn-hangzhou.i-bp1euf5u1ph9kbhtndhb
- cn-hangzhou.i-bp1hyp5oips9cdwxxgxy
containers:
- name: allied-creation-cooperation
image: 192.168.0.243:5000/mmm/allied-creation-cooperation:dev
imagePullPolicy: Always
ports:
- containerPort: 8082
volumeMounts:
- mountPath: /opt/logs
name: accesslogs
env:
- name: LOG_LEVEL
value: "debug"
- name: ERROR_BASE_CODE
value: "1"
- name: ERROR_BASE_CODE_MULTIPLE
value: "1000"
volumes:
- name: accesslogs
emptyDir: {}
\ No newline at end of file
... ...
#!/bin/bash
export PATH=/root/local/bin:$PATH
kubectl -n <replace-your-k8s-namespace> get pods | grep -q allied-creation-cooperation
if [ "$?" == "1" ];then
kubectl create -f /tmp/dev/allied-creation-cooperation/allied-creation-cooperation.yaml --record
kubectl -n <replace-your-k8s-namespace> get svc | grep -q allied-creation-cooperation
if [ "$?" == "0" ];then
echo "allied-creation-cooperation service install success!"
else
echo "allied-creation-cooperation service install fail!"
fi
kubectl -n <replace-your-k8s-namespace> get pods | grep -q allied-creation-cooperation
if [ "$?" == "0" ];then
echo "allied-creation-cooperation deployment install success!"
else
echo "allied-creation-cooperation deployment install fail!"
fi
else
kubectl delete -f /tmp/dev/allied-creation-cooperation/allied-creation-cooperation.yaml
kubectl -n <replace-your-k8s-namespace> get svc | grep -q allied-creation-cooperation
while [ "$?" == "0" ]
do
kubectl -n <replace-your-k8s-namespace> get svc | grep -q allied-creation-cooperation
done
kubectl -n <replace-your-k8s-namespace> get pods | grep -q allied-creation-cooperation
while [ "$?" == "0" ]
do
kubectl -n <replace-your-k8s-namespace> get pods | grep -q allied-creation-cooperation
done
kubectl create -f /tmp/dev/allied-creation-cooperation/allied-creation-cooperation.yaml --record
kubectl -n <replace-your-k8s-namespace> get svc | grep -q allied-creation-cooperation
if [ "$?" == "0" ];then
echo "allied-creation-cooperation service update success!"
else
echo "allied-creation-cooperation service update fail!"
fi
kubectl -n <replace-your-k8s-namespace> get pods | grep -q allied-creation-cooperation
if [ "$?" == "0" ];then
echo "allied-creation-cooperation deployment update success!"
else
echo "allied-creation-cooperation deployment update fail!"
fi
fi
\ No newline at end of file
... ...
不能预览此文件类型
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: cooperationGoodsStatistics
path: /cooperation-goods-statistics
endpoints:
- method: searchCooperationGoodsStatistics
route:
post: /statistics
... ...
version: v1
kind: HttpApi
metadata:
service: cooperationModeStatistics
path: /cooperation-mode-statistics
endpoints:
- method: searchCooperationModeStatistics
route:
post: /statistics
... ...
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: cooperationPersonStatistics
path: /cooperation-person-statistics
endpoints:
- method: searchCooperationPersonStatistics
route:
post: /statistics
... ...
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: checkUndertaker
route:
post: /check
- 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: currentMonthDividendsStatistics
path: /current-month-dividends-statistics
endpoints:
- method: searchCurrentMonthDividendsStatistics
route:
post: /statistics
... ...
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: listDividendsOrders
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: HttpApi
metadata:
service: projectOverviewStatistics
path: /project-overview-statistics
endpoints:
- method: searchProjectOverviewStatistics
route:
post: /statistics
... ...
version: v1
kind: Attribute
metadata:
name: rank
description: 排名
type:
primitive: int32
... ...
version: v1
kind: Attribute
metadata:
name: rankAmount
description: 排名金额
type:
primitive: float64
... ...
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: count
description: 匹配数目
type:
primitive: int64
... ...
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: limit
description: 查询限制
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: offset
description: 查询偏离量
type:
primitive: int
... ...
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: cooperationProject
description: 共创项目
type:
schema: cooperationProject
... ...
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: data
description: 柱状图数据二维数组
type:
array: any
... ...
version: v1
kind: Attribute
metadata:
name: dimension
description: 结算分布坐标值
type:
array: any
... ...
version: v1
kind: Attribute
metadata:
name: series
description: 结算分布坐标值
type:
array: float64
... ...
version: v1
kind: Attribute
metadata:
name: xAxis
description: 结算分布X轴标签
type:
array: string
... ...
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: dividendsExpense
description: 分红支出
type:
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: dividendsExpenseByTypes
description: 具体分红类型支出
type:
array: dividendsExpenseByType
... ...
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: dividendsExpenseByType
description: 具体分红类型支出
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: dividendsTypeName
description: 分红类型名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: accounted
description: 已结算
type:
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: paid
description: 已支付
type:
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: toBeAccounted
description: 待结算
type:
primitive: float64
... ...
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: goodAmount
description: 共创产品总金额统计
type:
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: goodName
description: 共创产品名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: goodRatio
description: 共创产品在TOP5中的占比统计
type:
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: rank
description: 共创产品TOP5排名
type:
primitive: int32
... ...
version: v1
kind: Attribute
metadata:
name: cooperationPeople
description: 共创人数统计
type:
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: dividendsEstimate
description: 分红预算统计
type:
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: orderAmount
description: 订单金额统计
type:
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: cooperationTime
description: 共创时间
type:
primitive: datetime
... ...
version: v1
kind: Attribute
metadata:
name: cooperationTypes
description: 合伙类型,即共创模式
type:
array: cooperationMode
... ...
version: v1
kind: Attribute
metadata:
name: dividendsDetails
description: 分红明细
type:
schema: dividendsDetails
... ...
version: v1
kind: Attribute
metadata:
name: orderDetails
description: 订单明细
type:
schema: orderDetails
... ...
version: v1
kind: Attribute
metadata:
name: userName
description: 共创人员姓名
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: creditAccount
description: 本月账期结算统计
type:
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: dividendsEstimate
description: 本月分红预算统计
type:
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: orderAmount
description: 本月订单金额统计
type:
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: annualDividendsExpense
description: 分红支出-年度分红支出
type:
schema: annualDividendsExpense
... ...
version: v1
kind: Attribute
metadata:
name: dividendsExpenseDetail
description: 企业分红支出明细
type:
schema: dividendsExpenseDetail
... ...
version: v1
kind: Attribute
metadata:
name: quarterDividendsExpense
description: 分红支出-季度分红支出
type:
schema: quarterDividendsExpense
... ...
version: v1
kind: Attribute
metadata:
name: totalDividendsExpense
description: 合约分红-全部分红支出
type:
schema: totalDividendsExpense
... ...
version: v1
kind: Attribute
metadata:
name: totalExpense
description: 总支出
type:
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: contractSum
description: 共创合约总数统计
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: cooperationUserCount
description: 共创用户数统计
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: projectSum
description: 共创项目总数统计
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: code
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: orderAmount
description: 具体成交类型的订单金额
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: orderTypeName
description: 成交订单类型名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: orderAmount
description: 成交订单金额
type:
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: orderAmountByTypes
description: 具体订单类型的金额明细
type:
array: orderAmountByType
... ...
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: orgId
description: 组织机构ID
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: orgName
description: 组织名称
type:
primitive: string
... ...
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: code
description: 返回码
type:
primitive: int32
... ...
version: v1
kind: Attribute
metadata:
name: msg
description: 返回信息
type:
primitive: int32
... ...
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: projectOverview
description: 项目概览
type:
schema: projectOverview
... ...
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: org
description: 用户所属组织机构
type:
schema: org
... ...
version: v1
kind: Attribute
metadata:
name: orgs
description: 关联的组织机构
type:
array: org
... ...
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
... ...
version: v1
kind: Project
metadata:
name: allied-creation-cooperation
description: 天联共创
version: 1.0.0
repository: gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation
contact:
name: 陈志颖
email: steve.d.chan@qq.com
... ...
version: v1
kind: Schema
metadata:
name: annualDividendsExpense
description: 企业年度分红总支出
attributes:
- ref: totalExpense
required: true
- ref: dividendsExpenseDetail
required: true
... ...
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: org
description: 数据所属组织机构
required: true
- ref: company
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: cooperationProject
description: 共创项目编号
required: true
- ref: org
description: 数据所属组织机构
required: true
- ref: company
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
description: 共创合约编号
required: true
- ref: cooperationContractReferrer
required: true
- ref: cooperationContractSalesman
required: true
- ref: cooperationContractUndertakerType
required: true
- ref: cooperationContractSponsor
required: true
- ref: cooperationMode
description: 共创模式或者合伙模式
required: true
- ref: status
description: 合约状态,1启用,2禁用
required: true
- ref: org
description: 数据所属组织机构
required: true
- ref: company
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: cooperationContractByUndertaker
description: 根据承接人返回共创项目合约
attributes:
- ref: cooperationContractId
required: true
- ref: cooperationContractDescription
required: true
- ref: cooperationContractNumber
required: true
- ref: cooperationContractName
required: true
- ref: cooperationMode
required: true
- ref: cooperationContractSponsor
required: true
- ref: status
required: true
- ref: contractUndertaker
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: company
required: true
- ref: operator
required: true
- ref: updatedAt
required: true
- ref: deletedAt
required: true
- ref: createdAt
required: true
... ...
version: v1
kind: Schema
metadata:
name: cooperationGoodsStatistics
description: 共创产品统计
attributes:
- ref: goodAmount
required: true
- ref: goodName
required: true
- ref: goodRatio
required: true
- ref: rank
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: org
description: 数据所属组织机构
required: true
- ref: company
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: cooperationModeStatistics
description: 共创模式统计
attributes:
- ref: cooperationPeople
required: true
- ref: dividendsEstimate
required: true
- ref: orderAmount
required: true
... ...
version: v1
kind: Schema
metadata:
name: cooperationPersonStatistics
description: 共创人员信息统计
attributes:
- ref: cooperationTime
required: true
- ref: cooperationTypes
required: true
- ref: dividendsDetails
required: true
- ref: orderDetails
required: true
- ref: userName
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: org
description: 数据所属组织机构
required: true
- ref: company
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: org
description: 数据所属组织机构
required: true
- ref: company
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: creditAccountDistribution
description: 账期结算分布(柱状图)
attributes:
- ref: series
required: true
- ref: xAxis
required: true
... ...
version: v1
kind: Schema
metadata:
name: creditAccountRanking
description: 账期结算单排名
attributes:
- ref: rank
required: true
- ref: rankAmount
required: true
- ref: userName
required: true
... ...
version: v1
kind: Schema
metadata:
name: currentMonthDividendsStatistics
description: 本月分红统计
attributes:
- ref: creditAccount
required: true
- ref: dividendsEstimate
required: true
- ref: orderAmount
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: dividendsDetails
description: 分红明细
attributes:
- ref: dividendsExpense
required: true
- ref: dividendsExpenseByTypes
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: org
description: 数据所属组织机构
required: true
- ref: company
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: dividendsExpenseByType
description: 具体分红类型支出
attributes:
- ref: dividendsExpenseByType
required: true
- ref: dividendsTypeName
required: true
... ...
version: v1
kind: Schema
metadata:
name: dividendsExpenseDetail
description: 企业分红支出明细
attributes:
- ref: toBeAccounted
required: true
- ref: accounted
required: true
- ref: paid
required: true
... ...
version: v1
kind: Schema
metadata:
name: dividendsExpenseStatistics
description: 企业分红支出统计
attributes:
- ref: annualDividendsExpense
required: true
- ref: quarterDividendsExpense
required: true
- ref: totalDividendsExpense
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: org
description: 数据所属组织机构
required: true
- ref: company
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: org
description: 数据所属组织机构
required: true
- ref: company
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: org
description: 数据所属组织机构
required: true
- ref: company
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: org
description: 数据所属组织机构
required: true
- ref: company
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: orderAmountByType
description: 具体成交类型的订单明细
attributes:
- ref: orderAmount
required: true
- ref: orderTypeName
required: true
... ...
version: v1
kind: Schema
metadata:
name: orderDetails
description: 订单明细
attributes:
- ref: orderAmount
required: true
- ref: orderAmountByTypes
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: 订单产品对象DTO
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
... ...
version: v1
kind: Schema
metadata:
name: org
description: 组织机构值对象
attributes:
- ref: orgId
required: true
- ref: orgName
required: true
- ref: company
required: true
... ...
version: v1
kind: Schema
metadata:
name: projectOverviewStatistics
description: 项目概览统计
attributes:
- ref: contractSum
required: true
- ref: projectSum
required: true
- ref: cooperationUserCount
required: true
... ...
version: v1
kind: Schema
metadata:
name: quarterDividendsExpense
description: 企业季度分红支出
attributes:
- ref: totalExpense
required: true
- ref: dividendsExpenseDetail
required: true
... ...
version: v1
kind: Schema
metadata:
name: referrer
description: 推荐人值对象
attributes:
- ref: userId
required: true
- ref: userBaseId
required: true
- ref: role
required: true
- ref: orgs
description: 用户关联的组织机构
required: true
- ref: org
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: org
description: 用户所属的组织机构
required: true
- ref: orgs
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: orgs
description: 用户关联的组织机构
required: true
- ref: org
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: totalDividendsExpense
description: 企业分红总支出
attributes:
- ref: totalExpense
required: true
- ref: dividendsExpenseDetail
required: true
... ...
version: v1
kind: Schema
metadata:
name: undertaker
description: 共创合约承接方值对象
attributes:
- ref: userId
required: true
- ref: userBaseId
required: true
- ref: org
description: 用户所属组织机构
required: true
- ref: orgs
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: org
description: 用户所属组织机构
required: true
- ref: orgs
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
description: 用户账号,区别于手机号,冗余字段
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
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
required: true
result:
- name: contractUndertakerFeedback
type:
schema: contractUndertakerFeedback
required: true
... ...
version: v1
kind: Method
metadata:
name: getContractUndertakerFeedback
type: query
description: 返回共创合约反馈服务
payload:
- ref: feedbackId
required: true
- name: underTakerUid
description: 承接人uid
type:
primitive: string
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
required: true
result:
- name: contractUndertakerFeedback
type:
schema: contractUndertakerFeedback
required: true
... ...
version: v1
kind: Method
metadata:
name: listContractUndertakerFeedback
type: query
description: 返回共创合约反馈服务列表
payload:
- ref: offset
required: false
- ref: limit
required: false
- name: underTakerUid
description: 承接人uid
type:
primitive: string
required: true
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
required: true
result:
- ref: count
required: true
- name: contractUndertakerFeedbacks
type:
array: contractUndertakerFeedback
required: true
... ...
version: v1
kind: Method
metadata:
name: removeContractUndertakerFeedback
type: command
description: 移除共创合约反馈服务
payload:
- ref: feedbackId
required: true
- name: underTakerUid
description: 承接人uid
type:
primitive: string
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
required: true
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
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
required: true
- name: matchWord
description: 查询关键词
required: false
type:
primitive: string
result:
- name: contractUndertakerFeedbacks
type:
array: contractUndertakerFeedback
required: true
- ref: count
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
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
required: true
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
- ref: companyId
required: true
- ref: orgId
description: 组织机构id
required: true
- ref: code
description: 菜单编码,APP端必须
required: true
- ref: userId
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
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
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
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
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
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
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
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
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
- ref: companyId
required: true
- ref: orgId
description: 组织机构id
required: true
- ref: code
description: 菜单模块编码,APP端必须
required: true
- ref: userId
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
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
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: cooperationApplicationStatus
description: 共创申请审核状态,1待审核,2已同意,3已拒绝
required: false
- ref: pageSize
required: false
- ref: pageNumber
required: false
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
required: true
result:
- name: cooperationApplications
type:
array: cooperationApplication
required: true
- ref: count
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
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
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
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
required: true
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
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
required: true
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
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
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
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
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
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
required: true
result:
- name: cooperationContracts
type:
array: cooperationContract
required: true
... ...
version: v1
kind: Method
metadata:
name: searchCooperationContractByUndertaker
type: query
description: 根据承接人返回共创项目合约
payload:
- ref: cooperationContractName
required: false
- name: sponsorName
description: 项目发起人姓名
type:
primitive: string
required: false
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
required: true
result:
- name: cooperationContractByUndertaker
description: 根据承接人返回的共创项目合约
type:
array: cooperationContractByUndertaker
- ref: count
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
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
required: true
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
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
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
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
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
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
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
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
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
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
required: true
result:
- name: cooperationContractChangeLogs
type:
array: cooperationContractChangeLog
required: true
- ref: count
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
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
required: true
result:
- name: cooperationContractChangeLog
type:
schema: cooperationContractChangeLog
required: true
... ...
version: v1
kind: Service
metadata:
name: cooperationContractChangeLog
description: 共创合约变更日志
... ...
version: v1
kind: Method
metadata:
name: searchCooperationGoodsStatistics
type: query
description: 返回企业共创产品统计数据
payload:
- name: rankingType
description: 排行榜类型,1月榜,2年榜 3总榜,默认展示年榜
type:
primitive: int32
required: false
- ref: companyId
description: 企业ID,企业和组织id二选一
required: false
- ref: orgId
description: 组织机构id,组织和企业id二选一
required: false
- ref: userId
required: true
- ref: pageSize
required: false
- ref: pageNumber
required: false
result:
- name: cooperationGoodsStatistics
type:
schema: cooperationGoodsStatistics
required: true
... ...
version: v1
kind: Service
metadata:
name: cooperationGoodsStatistics
description: 共创产品数据统计
... ...
version: v1
kind: Method
metadata:
name: createCooperationMode
type: command
description: 创建共创模式服务
payload:
- ref: cooperationModeName
required: true
- ref: cooperationModeNumber
required: true
- ref: remarks
required: true
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
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
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
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
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
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
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
required: true
result:
- name: cooperationMode
type:
schema: cooperationMode
required: true
... ...
version: v1
kind: Method
metadata:
name: searchCooperationMode
type: query
description: 查询共创模式
payload:
- ref: pageNumber
required: true
- ref: pageSize
required: true
- ref: cooperationModeName
required: true
- name: organizationName
description: 组织机构名称
type:
primitive: string
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
required: true
result:
- name: cooperationModes
type:
array: cooperationMode
required: true
- ref: count
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
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
required: true
result:
- name: cooperationMode
type:
schema: cooperationMode
required: true
... ...
version: v1
kind: Service
metadata:
name: cooperationMode
description: 共创模式服务
... ...
version: v1
kind: Method
metadata:
name: searchCooperationModeStatistics
type: query
description: 返回企业共创模式数据统计
payload:
- ref: companyId
description: 企业id,企业和组织二选一
required: false
- ref: orgId
description: 组织id,组织和企业二选一
required: false
- ref: userId
required: true
result:
- name: cooperationModeStatistics
type:
schema: cooperationModeStatistics
required: true
... ...
version: v1
kind: Service
metadata:
name: cooperationModeStatistics
description: 共创模式统计服务
... ...
version: v1
kind: Method
metadata:
name: searchCooperationPersonStatistics
type: query
description: 返回企业共创人员信息统计
payload:
- ref: companyId
description: 查看的目标公司id,公司和组织入参二选一
required: false
- ref: orgId
description: 查看的目标组织id,组织和公司入参二选一
required: false
- ref: userId
required: true
result:
- name: cooperationPersonStatistics
type:
schema: cooperationPersonStatistics
required: true
... ...
version: v1
kind: Service
metadata:
name: cooperationPersonStatistics
description: 共创人员信息统计
... ...
version: v1
kind: Method
metadata:
name: checkUndertaker
type: query
description: 判断当前勾选的承接对象是否存在用户
payload:
- ref: cooperationProjectUndertakerType
required: true
- ref: cooperationProjectId
required: true
result:
- name: cooperationProject
type:
schema: cooperationProject
required: true
... ...
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
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
required: true
result:
- name: cooperationProject
type:
schema: cooperationProject
required: true
... ...
version: v1
kind: Method
metadata:
name: getCooperationProject
type: query
description: 返回共创项目服务
payload:
- ref: cooperationProjectId
required: true
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
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
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
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
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
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
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
required: true
result:
- name: cooperationProject
type:
schema: cooperationProject
required: true
... ...
version: v1
kind: Method
metadata:
name: searchCooperationProject
type: query
description: 查询共创项目
payload:
- ref: pageNumber
required: false
- ref: pageSize
required: false
- ref: cooperationProjectName
required: false
- ref: departmentName
required: false
- ref: status
description: 共创项目状态,根据共创项目状态筛选项目数据
required: false
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
required: true
result:
- name: cooperationProjects
type:
array: cooperationProject
required: true
- ref: count
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
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
required: true
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: 创建账期结算单服务
payload:
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
required: true
result:
- name: creditAccount
type:
schema: creditAccount
required: true
... ...
version: v1
kind: Method
metadata:
name: creditAccountRanking
type: query
description: 账期结算单排名
payload:
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
required: true
- name: period
description: 统计周期
type:
primitive: string
result:
- name: creditAccountRanking
type:
schema: creditAccountRanking
required: true
... ...
version: v1
kind: Method
metadata:
name: getCreditAccount
type: query
description: 返回账期结算单服务
payload:
- ref: creditAccountId
required: true
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
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
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
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
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
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
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
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
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
required: true
- ref: paymentStatus
description: 账期结算支付状态,1待支付,2已支付,APP端结算记录返回已结算的账期结算单
required: true
- name: period
description: 结算周期,按年“2021”或者按月结算”2021-07“
type:
primitive: datetime
required: false
result:
- name: creditAccounts
type:
array: creditAccount
required: true
- ref: count
required: true
- name: sum
description: 本月结算或本年度结算总和
type:
primitive: float64
required: true
... ...
version: v1
kind: Method
metadata:
name: updateCreditAccount
type: command
description: 更新账期结算单服务
payload:
- ref: creditAccountId
required: true
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
required: true
result:
- name: creditAccount
type:
schema: creditAccount
required: true
... ...
version: v1
kind: Service
metadata:
name: creditAccount
description: 账期结算单服务
... ...
version: v1
kind: Method
metadata:
name: searchCurrentMonthDividendsStatistics
type: query
description: 返回共创企业本月分红统计
payload:
- ref: companyId
description: 企业id,企业和组织二选一
required: false
- ref: orgId
description: 组织id,组织和企业二选一
required: false
- ref: userId
required: true
result:
- name: currentMonthDividendsStatistics
type:
schema: currentMonthDividendsStatistics
required: true
... ...
version: v1
kind: Service
metadata:
name: currentMonthDividendsStatistics
description: 共创企业本月分红统计
... ...
version: v1
kind: Method
metadata:
name: cancelDividendsEstimate
type: command
description: 取消分红预算
payload:
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
required: true
result:
- name: dividendsEstimate
type:
schema: dividendsEstimate
required: true
... ...
version: v1
kind: Method
metadata:
name: createDividendsEstimate
type: command
description: 创建分红预算服务
payload:
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
required: true
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
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
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
description: 承接人UID
type:
primitive: string
required: true
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
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
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
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
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
required: true
result:
- name: dividendsEstimates
type:
array: dividendsEstimate
required: true
- ref: count
required: true
... ...
version: v1
kind: Method
metadata:
name: listDividendsIncentives
type: query
description: 返回业绩激励分红
payload:
- ref: offset
required: true
- ref: limit
required: true
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
required: true
result:
- name: dividendsIncentives
type:
schema: dividendsIncentives
required: true
- ref: count
required: true
... ...
version: v1
kind: Method
metadata:
name: listMoneyIncentives
type: query
description: 返回金额激励分红
payload:
- ref: offset
required: true
- ref: limit
required: true
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
required: true
result:
- name: moneyIncentives
type:
schema: moneyIncentives
required: true
- ref: count
required: true
... ...
version: v1
kind: Method
metadata:
name: removeDividendsEstimate
type: command
description: 移除分红预算服务
payload:
- ref: dividendsEstimateId
required: true
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
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
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
required: true
result:
- name: dividendsEstimate
type:
schema: dividendsEstimate
required: true
- ref: count
required: true
... ...
version: v1
kind: Method
metadata:
name: searchDividendsIncentives
type: query
description: 查询业绩分红
payload:
- ref: cooperationContractNumber
description: 合约编号
required: false
- ref: orderOrReturnedOrderNum
description: 分红订单号/退货单号
required: false
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
required: true
result:
- name: dividendsIncentives
type:
schema: dividendsIncentives
required: true
- ref: count
required: true
... ...
version: v1
kind: Method
metadata:
name: searchMoneyIncentives
type: query
description: 查询金额激励分红
payload:
- ref: cooperationContractName
description: 共创合约名称
required: false
- ref: departmentName
description: 发起部门名称
required: false
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
required: true
result:
- name: moneyIncentives
type:
array: moneyIncentives
required: true
- ref: count
required: true
... ...
version: v1
kind: Method
metadata:
name: updateDividendsEstimate
type: command
description: 更新分红预算服务
payload:
- ref: dividendsEstimateId
required: true
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
required: true
result:
- name: dividendsEstimate
type:
schema: dividendsEstimate
required: true
... ...
version: v1
kind: Service
metadata:
name: dividendsEstimate
description: 分红预算服务
... ...
version: v1
kind: Method
metadata:
name: searchDividendsExpenseStatistics
type: query
description: 返回企业分红支出统计
payload:
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
required: true
result:
- name: dividendsExpenseStatistics
type:
schema: dividendsExpenseStatistics
required: true
... ...
version: v1
kind: Service
metadata:
name: dividendsExpenseStatistics
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
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
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
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
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
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
required: true
result:
- name: dividendsIncentivesRules
type:
array: dividendsIncentivesRule
required: true
- ref: count
required: true
... ...
version: v1
kind: Method
metadata:
name: removeDividendsIncentivesRule
type: command
description: 移除业绩分红激励规则服务
payload:
- ref: dividendsIncentivesRuleId
required: true
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
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
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
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
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
required: true
result:
- name: dividendsOrder
type:
schema: dividendsOrder
required: true
... ...
version: v1
kind: Method
metadata:
name: getDividendsOrder
type: query
description: 返回分红订单实体对象
payload:
- ref: dividendsOrderId
required: true
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
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
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
required: true
result:
- name: dividendsOrders
type:
array: dividendsOrder
required: true
- ref: count
required: true
... ...
version: v1
kind: Method
metadata:
name: removeDividendsOrder
type: command
description: 移除分红订单实体对象
payload:
- ref: dividendsOrderId
required: true
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
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
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
required: true
result:
- name: dividendsOrders
type:
array: dividendsOrder
required: true
- ref: count
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
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
required: true
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
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
required: true
result:
- name: dividendsReturnedOrder
type:
schema: dividendsReturnedOrder
required: true
... ...
version: v1
kind: Method
metadata:
name: getDividendsReturnedOrder
type: query
description: 返回分红退货单服务
payload:
- ref: dividendsReturnedOrderId
required: true
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
required: 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
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
required: true
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
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
required: true
result:
- name: dividendsReturnedOrders
type:
array: dividendsReturnedOrder
required: true
- ref: count
required: true
... ...
version: v1
kind: Method
metadata:
name: removeDividendsReturnedOrder
type: command
description: 移除分红退货单服务
payload:
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
required: true
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
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
required: true
result:
- name: dividendsReturnedOrders
type:
array: dividendsReturnedOrder
required: true
- ref: count
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
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
required: true
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
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
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
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
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
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
required: true
result:
- name: moneyIncentivesRules
type:
array: moneyIncentivesRule
required: true
- ref: count
required: true
... ...
version: v1
kind: Method
metadata:
name: removeMoneyIncentivesRule
type: command
description: 移除项目金额激励规则服务
payload:
- ref: moneyIncentivesRuleId
required: true
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
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
- ref: companyId
required: true
- ref: orgId
required: true
- ref: userId
required: true
result:
- name: moneyIncentivesRule
type:
schema: moneyIncentivesRule
required: true
... ...
version: v1
kind: Service
metadata:
name: moneyIncentivesRule
description: 项目金额激励规则服务
... ...
version: v1
kind: Method
metadata:
name: searchProjectOverviewStatistics
type: query
description: 返回共创企业项目概览统计
payload:
- ref: companyId
description: 企业id,企业和组织二选一
required: false
- ref: orgId
description: 组织id,组织和企业二选一
required: false
- ref: userId
required: true
result:
- name: projectOverviewStatistics
type:
schema: projectOverviewStatistics
required: true
... ...
version: v1
kind: Service
metadata:
name: projectOverviewStatistics
description: 共创项目概览统计
... ...
此 diff 太大无法显示。
此 diff 太大无法显示。
此 diff 太大无法显示。
... ... @@ -268,8 +268,8 @@ paths:
post:
tags:
- cooperation-application
summary: 同意共创申请
description: 同意共创申请
summary: 审核-同意共创申请
description: 审核-同意共创申请
operationId: cooperation-application#agreeCooperationApplication
parameters:
- name: AgreeCooperationApplicationRequestBody
... ... @@ -308,8 +308,8 @@ paths:
post:
tags:
- cooperation-application
summary: 拒绝共创申请
description: 拒绝共创申请
summary: 审核-拒绝共创申请
description: 审核-拒绝共创申请
operationId: cooperation-application#rejectCooperationApplication
parameters:
- name: RejectCooperationApplicationRequestBody
... ... @@ -639,29 +639,29 @@ paths:
/cooperation-goods-statistics/statistics:
post:
tags:
- cooperation-goods-statistic
summary: 返回共创产品统计数据
description: 返回共创产品统计数据
operationId: cooperation-goods-statistic#searchCooperationGoodsStatistics
- cooperation-goods-statistics
summary: 返回企业共创产品统计数据
description: 返回企业共创产品统计数据
operationId: cooperation-goods-statistics#searchCooperationGoodsStatistics
parameters:
- name: SearchCooperationGoodsStatisticsRequestBody
in: body
required: true
schema:
$ref: '#/definitions/CooperationGoodsStatisticSearchCooperationGoodsStatisticsRequestBody'
$ref: '#/definitions/CooperationGoodsStatisticsSearchCooperationGoodsStatisticsRequestBody'
responses:
"200":
description: OK response.
schema:
$ref: '#/definitions/CooperationGoodsStatisticSearchCooperationGoodsStatisticsResponseBody'
$ref: '#/definitions/CooperationGoodsStatisticsSearchCooperationGoodsStatisticsResponseBody'
schemes:
- http
/cooperation-mode-statistics/statistics:
post:
tags:
- cooperation-mode-statistics
summary: 返回共创模式数据统计
description: 返回共创模式数据统计
summary: 返回企业共创模式数据统计
description: 返回企业共创模式数据统计
operationId: cooperation-mode-statistics#searchCooperationModeStatistics
parameters:
- name: SearchCooperationModeStatisticsRequestBody
... ... @@ -816,8 +816,8 @@ paths:
post:
tags:
- cooperation-person-statistics
summary: 返回共创人员信息统计
description: 返回共创人员信息统计
summary: 返回企业共创人员信息统计
description: 返回企业共创人员信息统计
operationId: cooperation-person-statistics#searchCooperationPersonStatistics
parameters:
- name: SearchCooperationPersonStatisticsRequestBody
... ... @@ -948,6 +948,26 @@ paths:
$ref: '#/definitions/CooperationProjectRemoveCooperationProjectResponseBody'
schemes:
- http
/cooperation-projects/check:
post:
tags:
- cooperation-project
summary: 判断当前勾选的承接对象是否存在用户
description: 判断当前勾选的承接对象是否存在用户
operationId: cooperation-project#checkUndertaker
parameters:
- name: CheckUndertakerRequestBody
in: body
required: true
schema:
$ref: '#/definitions/CooperationProjectCheckUndertakerRequestBody'
responses:
"200":
description: OK response.
schema:
$ref: '#/definitions/CooperationProjectCheckUndertakerResponseBody'
schemes:
- http
/cooperation-projects/release-cooperation-project:
post:
tags:
... ... @@ -1109,8 +1129,8 @@ paths:
post:
tags:
- credit-account
summary: 支付账期结算
description: 支付账期结算
summary: 支付账期结算(支付分红)
description: 支付账期结算(支付分红)
operationId: credit-account#payCreditAccount
parameters:
- name: PayCreditAccountRequestBody
... ... @@ -1741,8 +1761,8 @@ paths:
post:
tags:
- project-overview-statistics
summary: 返回共创项目概览统计
description: 返回共创项目概览统计
summary: 返回共创企业项目概览统计
description: 返回共创企业项目概览统计
operationId: project-overview-statistics#searchProjectOverviewStatistics
parameters:
- name: SearchProjectOverviewStatisticsRequestBody
... ... @@ -1784,6 +1804,11 @@ definitions:
description: 合约承接方反馈内容
required:
- feedbackContent
orgId:
type: integer
description: 组织机构ID
required:
- orgId
underTakerUid:
type: string
description: 承接人uid
... ... @@ -1812,6 +1837,11 @@ definitions:
description: 合约承接方反馈记录ID
required:
- feedbackId
orgId:
type: integer
description: 组织机构ID
required:
- orgId
underTakerUid:
type: string
description: 承接人uid
... ... @@ -1855,6 +1885,11 @@ definitions:
description: 合约承接方反馈记录ID
required:
- feedbackId
orgId:
type: integer
description: 组织机构ID
required:
- orgId
underTakerUid:
type: string
description: 承接人uid
... ... @@ -1883,6 +1918,14 @@ definitions:
description: 共创合约名称
required:
- cooperationContractName
matchWord:
type: string
description: 查询关键词
orgId:
type: integer
description: 组织机构ID
required:
- orgId
pageNumber:
type: integer
description: 页面大小
... ... @@ -1911,6 +1954,11 @@ definitions:
$ref: '#/definitions/contractUndertakerFeedbackResponseBody'
required:
- contractUndertakerFeedbacks
count:
type: integer
description: 匹配数目
required:
- count
ContractUndertakerFeedbackUpdateContractUndertakerFeedbackRequestBody:
title: ContractUndertakerFeedbackUpdateContractUndertakerFeedbackRequestBody
type: object
... ... @@ -1937,6 +1985,11 @@ definitions:
description: 合约承接方反馈内容
required:
- feedbackContent
orgId:
type: integer
description: 组织机构ID
required:
- orgId
underTakerUid:
type: string
description: 承接人用户uid
... ... @@ -1955,6 +2008,11 @@ definitions:
title: CooperationApplicationAgreeCooperationApplicationRequestBody
type: object
properties:
code:
type: string
description: 菜单编码,APP端必须
required:
- code
companyId:
type: integer
description: 公司ID,通过集成REST上下文获取
... ... @@ -1970,6 +2028,11 @@ definitions:
description: 共创申请审核描述
required:
- cooperationApplicationVerifyDescription
orgId:
type: integer
description: 组织机构id
required:
- orgId
userId:
type: integer
description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
... ... @@ -2019,6 +2082,11 @@ definitions:
description: 共创项目编号,自生成,生成规则:XM+6位年月日+#+3位流水,例XM210601#001
required:
- cooperationProjectNumber
orgId:
type: integer
description: 组织机构ID
required:
- orgId
userId:
type: integer
description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
... ... @@ -2057,6 +2125,11 @@ definitions:
description: 关联的共创项目编号
required:
- cooperationProjectNumber
orgId:
type: integer
description: 组织机构ID
required:
- orgId
userId:
type: integer
description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
... ... @@ -2077,6 +2150,11 @@ definitions:
description: 公司ID,通过集成REST上下文获取
required:
- companyId
orgId:
type: integer
description: 组织机构ID
required:
- orgId
userId:
type: integer
description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
... ... @@ -2107,6 +2185,11 @@ definitions:
title: CooperationApplicationRejectCooperationApplicationRequestBody
type: object
properties:
code:
type: string
description: 菜单模块编码,APP端必须
required:
- code
companyId:
type: integer
description: 公司ID,通过集成REST上下文获取
... ... @@ -2122,6 +2205,11 @@ definitions:
description: 共创申请审核描述
required:
- cooperationApplicationVerifyDescription
orgId:
type: integer
description: 组织机构id
required:
- orgId
userId:
type: integer
description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
... ... @@ -2142,6 +2230,11 @@ definitions:
description: 公司ID,通过集成REST上下文获取
required:
- companyId
orgId:
type: integer
description: 组织机构ID
required:
- orgId
userId:
type: integer
description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
... ... @@ -2174,6 +2267,11 @@ definitions:
description: 共创项目名称
required:
- cooperationProjectName
orgId:
type: integer
description: 组织机构ID
required:
- orgId
pageNumber:
type: integer
description: 页面大小
... ... @@ -2197,6 +2295,11 @@ definitions:
$ref: '#/definitions/cooperationApplicationResponseBody'
required:
- cooperationApplications
count:
type: integer
description: 匹配数目
required:
- count
CooperationApplicationUpdateCooperationApplicationRequestBody:
title: CooperationApplicationUpdateCooperationApplicationRequestBody
type: object
... ... @@ -2224,6 +2327,11 @@ definitions:
description: 关联的共创项目编号
required:
- cooperationProjectNumber
orgId:
type: integer
description: 组织机构ID
required:
- orgId
userId:
type: integer
description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
... ... @@ -2264,6 +2372,11 @@ definitions:
description: 合约变更操作类型,1编辑、2暂停、3恢复
required:
- operationType
orgId:
type: integer
description: 组织机构ID
required:
- orgId
undertakers:
type: string
description: 承接人
... ... @@ -2289,6 +2402,11 @@ definitions:
description: 公司ID,通过集成REST上下文获取
required:
- companyId
orgId:
type: integer
description: 组织机构ID
required:
- orgId
userId:
type: integer
description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
... ... @@ -2324,6 +2442,11 @@ definitions:
description: 公司ID,通过集成REST上下文获取
required:
- companyId
orgId:
type: integer
description: 组织机构ID
required:
- orgId
userId:
type: integer
description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
... ... @@ -2351,6 +2474,11 @@ definitions:
type: integer
description: 合约变更操作类型,1编辑、2暂停、3恢复
format: int32
orgId:
type: integer
description: 组织机构ID
required:
- orgId
pageNumber:
type: integer
description: 页面大小
... ... @@ -2374,6 +2502,11 @@ definitions:
$ref: '#/definitions/cooperationContractChangeLogResponseBody'
required:
- cooperationContractChangeLogs
count:
type: integer
description: 匹配数目
required:
- count
CooperationContractChangeLogUpdateCooperationContractChangeLogRequestBody:
title: CooperationContractChangeLogUpdateCooperationContractChangeLogRequestBody
type: object
... ... @@ -2403,6 +2536,11 @@ definitions:
description: 合约变更操作类型,1编辑、2暂停、3恢复
required:
- operationType
orgId:
type: integer
description: 组织机构ID
required:
- orgId
undertakers:
type: string
description: 承接人
... ... @@ -2476,6 +2614,11 @@ definitions:
items:
$ref: '#/definitions/moneyIncentivesRuleRequestBody'
description: 金额激励规则列表
orgId:
type: integer
description: 组织机构ID
required:
- orgId
relevants:
type: array
items:
... ... @@ -2509,6 +2652,11 @@ definitions:
description: 公司ID,通过集成REST上下文获取
required:
- companyId
orgId:
type: integer
description: 组织机构ID
required:
- orgId
sponsorUid:
type: string
description: 发起人uid
... ... @@ -2547,6 +2695,11 @@ definitions:
description: 公司ID,通过集成REST上下文获取
required:
- companyId
orgId:
type: integer
description: 组织机构ID
required:
- orgId
userId:
type: integer
description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
... ... @@ -2570,6 +2723,11 @@ definitions:
cooperationContractName:
type: string
description: 共创合约名称
orgId:
type: integer
description: 组织机构ID
required:
- orgId
sponsorName:
type: string
description: 项目发起人姓名
... ... @@ -2587,6 +2745,11 @@ definitions:
items:
$ref: '#/definitions/cooperationContractByUndertakerResponseBody'
description: 根据承接人返回的共创项目合约
count:
type: integer
description: 匹配数目
required:
- count
CooperationContractSearchCooperationContractRequestBody:
title: CooperationContractSearchCooperationContractRequestBody
type: object
... ... @@ -2601,6 +2764,11 @@ definitions:
description: 共创合约编号
required:
- cooperationContractNumber
orgId:
type: integer
description: 组织机构ID
required:
- orgId
pageNumber:
type: integer
description: 页面大小
... ... @@ -2676,6 +2844,11 @@ definitions:
description: 部门编码
required:
- departmentNumber
orgId:
type: integer
description: 组织机构ID
required:
- orgId
sponsorUid:
type: string
description: 共创合约发起人uid
... ... @@ -2690,15 +2863,18 @@ definitions:
properties:
cooperationContract:
$ref: '#/definitions/cooperationContractResponseBody'
CooperationGoodsStatisticSearchCooperationGoodsStatisticsRequestBody:
title: CooperationGoodsStatisticSearchCooperationGoodsStatisticsRequestBody
CooperationGoodsStatisticsSearchCooperationGoodsStatisticsRequestBody:
title: CooperationGoodsStatisticsSearchCooperationGoodsStatisticsRequestBody
type: object
properties:
companyId:
type: integer
description: 公司ID,通过集成REST上下文获取
required:
- companyId
description: 企业ID,企业和组织id二选一
format: int64
orgId:
type: integer
description: 组织机构id,组织和企业id二选一
format: int64
pageNumber:
type: integer
description: 页面大小
... ... @@ -2716,8 +2892,8 @@ definitions:
description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
required:
- userId
CooperationGoodsStatisticSearchCooperationGoodsStatisticsResponseBody:
title: 'Mediatype identifier: CooperationGoodsStatisticSearchCooperationGoodsStatisticsResponseBody'
CooperationGoodsStatisticsSearchCooperationGoodsStatisticsResponseBody:
title: 'Mediatype identifier: CooperationGoodsStatisticsSearchCooperationGoodsStatisticsResponseBody'
type: object
properties:
cooperationGoodsStatistics:
... ... @@ -2741,6 +2917,11 @@ definitions:
description: 共创模式编码,手动输入,唯一确定
required:
- cooperationModeNumber
orgId:
type: integer
description: 组织机构ID
required:
- orgId
remarks:
type: string
description: 备注
... ... @@ -2766,6 +2947,11 @@ definitions:
description: 公司ID,通过集成REST上下文获取
required:
- companyId
orgId:
type: integer
description: 组织机构ID
required:
- orgId
userId:
type: integer
description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
... ... @@ -2801,6 +2987,11 @@ definitions:
description: 公司ID,通过集成REST上下文获取
required:
- companyId
orgId:
type: integer
description: 组织机构ID
required:
- orgId
userId:
type: integer
description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
... ... @@ -2826,6 +3017,11 @@ definitions:
description: 共创模式名称
required:
- cooperationModeName
orgId:
type: integer
description: 组织机构ID
required:
- orgId
organizationName:
type: string
description: 组织机构名称
... ... @@ -2854,15 +3050,23 @@ definitions:
$ref: '#/definitions/cooperationModeResponseBody'
required:
- cooperationModes
count:
type: integer
description: 匹配数目
required:
- count
CooperationModeStatisticsSearchCooperationModeStatisticsRequestBody:
title: CooperationModeStatisticsSearchCooperationModeStatisticsRequestBody
type: object
properties:
companyId:
type: integer
description: 公司ID,通过集成REST上下文获取
required:
- companyId
description: 企业id,企业和组织二选一
format: int64
orgId:
type: integer
description: 组织id,组织和企业二选一
format: int64
userId:
type: integer
description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
... ... @@ -2893,6 +3097,11 @@ definitions:
description: 共创模式编码,手动输入,唯一确定
required:
- cooperationModeNumber
orgId:
type: integer
description: 组织机构ID
required:
- orgId
remarks:
type: string
description: 备注
... ... @@ -2915,9 +3124,12 @@ definitions:
properties:
companyId:
type: integer
description: 公司ID,通过集成REST上下文获取
required:
- companyId
description: 查看的目标公司id,公司和组织入参二选一
format: int64
orgId:
type: integer
description: 查看的目标组织id,组织和公司入参二选一
format: int64
userId:
type: integer
description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
... ... @@ -2929,6 +3141,29 @@ definitions:
properties:
cooperationPersonStatistics:
$ref: '#/definitions/cooperationPersonStatisticsResponseBody'
CooperationProjectCheckUndertakerRequestBody:
title: CooperationProjectCheckUndertakerRequestBody
type: object
properties:
cooperationProjectId:
type: integer
description: 共创项目ID
required:
- cooperationProjectId
cooperationProjectUndertakerType:
type: array
items:
type: integer
format: int32
description: 共创项目承接对象,1员工,2共创用户,3公开,可以多选
required:
- cooperationProjectUndertakerType
CooperationProjectCheckUndertakerResponseBody:
title: 'Mediatype identifier: CooperationProjectCheckUndertakerResponseBody'
type: object
properties:
cooperationProject:
$ref: '#/definitions/cooperationProjectResponseBody'
CooperationProjectCreateCooperationProjectRequestBody:
title: CooperationProjectCreateCooperationProjectRequestBody
type: object
... ... @@ -2954,6 +3189,11 @@ definitions:
description: 承接对象,1员工,2共创用户,3公开,可以多选
required:
- cooperationProjectUndertakerType
orgId:
type: integer
description: 组织机构ID
required:
- orgId
publisherUid:
type: string
description: 共创项目发布人uid
... ... @@ -2984,6 +3224,11 @@ definitions:
description: 公司ID,通过集成REST上下文获取
required:
- companyId
orgId:
type: integer
description: 组织机构ID
required:
- orgId
userId:
type: integer
description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
... ... @@ -3044,6 +3289,11 @@ definitions:
description: 共创项目承接对象,1员工,2共创用户,3公开,可以多选
required:
- cooperationProjectUndertakerType
orgId:
type: integer
description: 组织机构ID
required:
- orgId
userId:
type: integer
description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
... ... @@ -3064,6 +3314,11 @@ definitions:
description: 公司ID,通过集成REST上下文获取
required:
- companyId
orgId:
type: integer
description: 组织机构ID
required:
- orgId
userId:
type: integer
description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
... ... @@ -3090,6 +3345,11 @@ definitions:
departmentName:
type: string
description: 部门名称
orgId:
type: integer
description: 组织机构ID
required:
- orgId
pageNumber:
type: integer
description: 页面大小
... ... @@ -3117,6 +3377,11 @@ definitions:
$ref: '#/definitions/cooperationProjectResponseBody'
required:
- cooperationProjects
count:
type: integer
description: 匹配数目
required:
- count
CooperationProjectUpdateCooperationProjectRequestBody:
title: CooperationProjectUpdateCooperationProjectRequestBody
type: object
... ... @@ -3142,6 +3407,11 @@ definitions:
description: 承接对象,1员工,2共创用户,3公开,可以多选
required:
- cooperationProjectUndertakerType
orgId:
type: integer
description: 组织机构ID
required:
- orgId
publisherUid:
type: string
description: 共创项目发布人uid
... ... @@ -3172,6 +3442,11 @@ definitions:
description: 公司ID,通过集成REST上下文获取
required:
- companyId
orgId:
type: integer
description: 组织机构ID
required:
- orgId
userId:
type: integer
description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
... ... @@ -3192,6 +3467,11 @@ definitions:
description: 公司ID,通过集成REST上下文获取
required:
- companyId
orgId:
type: integer
description: 组织机构ID
required:
- orgId
userId:
type: integer
description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
... ... @@ -3232,6 +3512,11 @@ definitions:
description: 公司ID,通过集成REST上下文获取
required:
- companyId
orgId:
type: integer
description: 组织机构ID
required:
- orgId
remarks:
type: string
description: 备注
... ... @@ -3257,6 +3542,11 @@ definitions:
description: 公司ID,通过集成REST上下文获取
required:
- companyId
orgId:
type: integer
description: 组织机构ID
required:
- orgId
userId:
type: integer
description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
... ... @@ -3282,9 +3572,23 @@ definitions:
description: 账期结算单号
required:
- creditAccountOrderNum
orgId:
type: integer
description: 组织机构ID
required:
- orgId
participatorName:
type: string
description: 参与人姓名
paymentStatus:
type: integer
description: 账期结算支付状态,1待支付,2已支付,APP端结算记录返回已结算的账期结算单
required:
- paymentStatus
period:
type: string
description: 结算周期,按年“2021”或者按月结算”2021-07“
format: datetime
userId:
type: integer
description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
... ... @@ -3294,12 +3598,22 @@ definitions:
title: 'Mediatype identifier: CreditAccountSearchCreditAccountResponseBody'
type: object
properties:
count:
type: integer
description: 匹配数目
required:
- count
creditAccounts:
type: array
items:
$ref: '#/definitions/creditAccountResponseBody'
required:
- creditAccounts
sum:
type: number
description: 本月结算或本年度结算总和
required:
- sum
CreditAccountUpdateCreditAccountRequestBody:
title: CreditAccountUpdateCreditAccountRequestBody
type: object
... ... @@ -3309,6 +3623,11 @@ definitions:
description: 公司ID,通过集成REST上下文获取
required:
- companyId
orgId:
type: integer
description: 组织机构ID
required:
- orgId
userId:
type: integer
description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
... ... @@ -3326,9 +3645,12 @@ definitions:
properties:
companyId:
type: integer
description: 公司ID,通过集成REST上下文获取
required:
- companyId
description: 企业id,企业和组织二选一
format: int64
orgId:
type: integer
description: 组织id,组织和企业二选一
format: int64
userId:
type: integer
description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
... ... @@ -3349,6 +3671,11 @@ definitions:
description: 公司ID,通过集成REST上下文获取
required:
- companyId
orgId:
type: integer
description: 组织机构ID
required:
- orgId
userId:
type: integer
description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
... ... @@ -3369,6 +3696,11 @@ definitions:
description: 公司ID,通过集成REST上下文获取
required:
- companyId
orgId:
type: integer
description: 组织机构ID
required:
- orgId
userId:
type: integer
description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
... ... @@ -3399,6 +3731,11 @@ definitions:
description: 分红订单号/退货单号
required:
- orderOrReturnedOrderNum
orgId:
type: integer
description: 组织机构ID
required:
- orgId
userId:
type: integer
description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
... ... @@ -3429,6 +3766,11 @@ definitions:
description: 分红阶段
required:
- dividendsIncentivesStage
orgId:
type: integer
description: 组织机构ID
required:
- orgId
undertakerUid:
type: string
description: 承接人UID
... ... @@ -3454,6 +3796,11 @@ definitions:
description: 公司ID,通过集成REST上下文获取
required:
- companyId
orgId:
type: integer
description: 组织机构ID
required:
- orgId
userId:
type: integer
description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
... ... @@ -3499,6 +3846,11 @@ definitions:
description: 查询偏离量
required:
- offset
orgId:
type: integer
description: 组织机构ID
required:
- orgId
userId:
type: integer
description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
... ... @@ -3508,6 +3860,11 @@ definitions:
title: 'Mediatype identifier: DividendsEstimateListDividendsIncentivesResponseBody'
type: object
properties:
count:
type: integer
description: 匹配数目
required:
- count
dividendsIncentives:
$ref: '#/definitions/dividendsIncentivesResponseBody'
DividendsEstimateListMoneyIncentivesRequestBody:
... ... @@ -3529,6 +3886,11 @@ definitions:
description: 查询偏离量
required:
- offset
orgId:
type: integer
description: 组织机构ID
required:
- orgId
userId:
type: integer
description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
... ... @@ -3538,6 +3900,11 @@ definitions:
title: 'Mediatype identifier: DividendsEstimateListMoneyIncentivesResponseBody'
type: object
properties:
count:
type: integer
description: 匹配数目
required:
- count
moneyIncentives:
$ref: '#/definitions/moneyIncentivesResponseBody'
DividendsEstimateRemoveDividendsEstimateRequestBody:
... ... @@ -3549,6 +3916,11 @@ definitions:
description: 公司ID,通过集成REST上下文获取
required:
- companyId
orgId:
type: integer
description: 组织机构ID
required:
- orgId
userId:
type: integer
description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
... ... @@ -3579,6 +3951,11 @@ definitions:
description: 分红类型,1订单分红,2退货冲销,3金额激励
required:
- dividendsType
orgId:
type: integer
description: 组织机构ID
required:
- orgId
userId:
type: integer
description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
... ... @@ -3588,6 +3965,11 @@ definitions:
title: 'Mediatype identifier: DividendsEstimateSearchDividendsEstimateResponseBody'
type: object
properties:
count:
type: integer
description: 匹配数目
required:
- count
dividendsEstimate:
$ref: '#/definitions/dividendsEstimateResponseBody'
DividendsEstimateSearchDividendsIncentivesRequestBody:
... ... @@ -3605,6 +3987,11 @@ definitions:
orderOrReturnedOrderNum:
type: string
description: 分红订单号/退货单号
orgId:
type: integer
description: 组织机构ID
required:
- orgId
userId:
type: integer
description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
... ... @@ -3614,6 +4001,11 @@ definitions:
title: 'Mediatype identifier: DividendsEstimateSearchDividendsIncentivesResponseBody'
type: object
properties:
count:
type: integer
description: 匹配数目
required:
- count
dividendsIncentives:
$ref: '#/definitions/dividendsIncentivesResponseBody'
DividendsEstimateSearchMoneyIncentivesRequestBody:
... ... @@ -3631,6 +4023,11 @@ definitions:
departmentName:
type: string
description: 发起部门名称
orgId:
type: integer
description: 组织机构ID
required:
- orgId
userId:
type: integer
description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
... ... @@ -3640,6 +4037,11 @@ definitions:
title: 'Mediatype identifier: DividendsEstimateSearchMoneyIncentivesResponseBody'
type: object
properties:
count:
type: integer
description: 匹配数目
required:
- count
moneyIncentives:
type: array
items:
... ... @@ -3655,6 +4057,11 @@ definitions:
description: 公司ID,通过集成REST上下文获取
required:
- companyId
orgId:
type: integer
description: 组织机构ID
required:
- orgId
userId:
type: integer
description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
... ... @@ -3708,6 +4115,11 @@ definitions:
description: 订单产生时间
required:
- orderTime
orgId:
type: integer
description: 组织机构ID
required:
- orgId
remarks:
type: string
description: 备注
... ... @@ -3736,6 +4148,11 @@ definitions:
description: 公司ID,通过集成REST上下文获取
required:
- companyId
orgId:
type: integer
description: 组织机构ID
required:
- orgId
userId:
type: integer
description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
... ... @@ -3771,6 +4188,11 @@ definitions:
description: 公司ID,通过集成REST上下文获取
required:
- companyId
orgId:
type: integer
description: 组织机构ID
required:
- orgId
userId:
type: integer
description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
... ... @@ -3798,6 +4220,11 @@ definitions:
type: integer
description: 分红订单号
format: int64
orgId:
type: integer
description: 组织机构ID
required:
- orgId
pageNumber:
type: integer
description: 页面大小
... ... @@ -3815,6 +4242,11 @@ definitions:
title: 'Mediatype identifier: DividendsOrderSearchDividendsOrderResponseBody'
type: object
properties:
count:
type: integer
description: 匹配数目
required:
- count
dividendsOrders:
type: array
items:
... ... @@ -3858,6 +4290,11 @@ definitions:
description: 订单产生时间
required:
- orderTime
orgId:
type: integer
description: 组织机构ID
required:
- orgId
remarks:
type: string
description: 备注
... ... @@ -3906,6 +4343,11 @@ definitions:
items:
$ref: '#/definitions/orderGoodsRequestBody'
description: 订单产品列表
orgId:
type: integer
description: 组织机构ID
required:
- orgId
originalOrderNum:
type: string
description: 来源单号,源单号,订单号
... ... @@ -3939,6 +4381,11 @@ definitions:
description: 公司ID,通过集成REST上下文获取
required:
- companyId
orgId:
type: integer
description: 组织机构ID
required:
- orgId
userId:
type: integer
description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
... ... @@ -3962,6 +4409,11 @@ definitions:
file:
type: string
description: 导入文件
orgId:
type: integer
description: 组织机构ID
required:
- orgId
userId:
type: integer
description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
... ... @@ -4000,6 +4452,11 @@ definitions:
description: 公司ID,通过集成REST上下文获取
required:
- companyId
orgId:
type: integer
description: 组织机构ID
required:
- orgId
userId:
type: integer
description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
... ... @@ -4026,6 +4483,11 @@ definitions:
dividendsReturnedOrderNumber:
type: string
description: 分红退货单号
orgId:
type: integer
description: 组织机构ID
required:
- orgId
pageNumber:
type: integer
description: 页面大小
... ... @@ -4043,6 +4505,11 @@ definitions:
title: 'Mediatype identifier: DividendsReturnedOrderSearchDividendsReturnedOrderResponseBody'
type: object
properties:
count:
type: integer
description: 匹配数目
required:
- count
dividendsReturnedOrders:
type: array
items:
... ... @@ -4078,6 +4545,11 @@ definitions:
items:
$ref: '#/definitions/orderGoodsRequestBody'
description: 订单产品列表
orgId:
type: integer
description: 组织机构ID
required:
- orgId
originalOrderNum:
type: string
description: 来源单号,源单号,订单号
... ... @@ -4108,9 +4580,12 @@ definitions:
properties:
companyId:
type: integer
description: 公司ID,通过集成REST上下文获取
required:
- companyId
description: 企业id,企业和组织二选一
format: int64
orgId:
type: integer
description: 组织id,组织和企业二选一
format: int64
userId:
type: integer
description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
... ... @@ -4309,11 +4784,8 @@ definitions:
description: 共创申请时间
required:
- cooperationApplyTime
cooperationProjectNumber:
type: string
description: 共创项目编号,自生成,生成规则:XM+6位年月日+#+3位流水,例XM210601#001
required:
- cooperationProjectNumber
cooperationProject:
$ref: '#/definitions/cooperationProjectResponseBody'
createdAt:
type: string
description: 创建时间
... ... @@ -4510,7 +4982,7 @@ definitions:
- goodRatio
rank:
type: integer
description: 共创产品TOP5排名
description: 排名
required:
- rank
description: 共创产品统计
... ... @@ -4532,7 +5004,7 @@ definitions:
- cooperationModeName
cooperationModeNumber:
type: string
description: 模式编码,唯一确定
description: 共创模式编码,唯一确定
required:
- cooperationModeNumber
createdAt:
... ... @@ -4585,8 +5057,8 @@ definitions:
required:
- dividendsEstimate
orderAmount:
type: string
description: 具体成交类型的订单金额
type: number
description: 订单金额统计
required:
- orderAmount
description: 共创模式统计
... ... @@ -4785,8 +5257,8 @@ definitions:
required:
- dividendsEstimate
orderAmount:
type: string
description: 具体成交类型的订单金额
type: number
description: 订单金额统计
required:
- orderAmount
description: 本月分红统计
... ... @@ -5307,8 +5779,8 @@ definitions:
type: object
properties:
orderAmount:
type: string
description: 具体成交类型的订单金额
type: number
description: 订单金额统计
required:
- orderAmount
orderTypeName:
... ... @@ -5322,8 +5794,8 @@ definitions:
type: object
properties:
orderAmount:
type: string
description: 具体成交类型的订单金额
type: number
description: 订单金额统计
required:
- orderAmount
orderAmountByTypes:
... ...
package main
import "fmt"
func main() {
fmt.Print("")
}
... ...
package factory
import (
"fmt"
"github.com/linmadan/egglib-go/core/application"
"github.com/linmadan/egglib-go/message/publisher/kafkaMessage/sarama"
localMessagePublisher "github.com/linmadan/egglib-go/message/publisher/localMessage"
localMessageReceiver "github.com/linmadan/egglib-go/message/receiver/localMessage"
. "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation"
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/constant"
)
func CreateMessagePublisher(options map[string]interface{}) (application.MessagePublisher, error) {
if localMessageOptions, ok := options["localMessageOptions"]; ok {
var storeType string
var storeOptions map[string]interface{}
if value, ok := localMessageOptions.(map[string]interface{})["storeType"]; ok {
storeType = value.(string)
} else {
return nil, fmt.Errorf("LocalMessagePublisher缺少参数storeType")
}
if value, ok := localMessageOptions.(map[string]interface{})["storeOptions"]; ok {
storeOptions = value.(map[string]interface{})
} else {
return nil, fmt.Errorf("LocalMessagePublisher缺少参数storeOptions")
}
return localMessagePublisher.NewLocalMessagePublisher(storeType, storeOptions)
} else {
return sarama.NewKafkaSaramaMessagePublisher(constant.KAFKA_HOSTS, Logger)
}
}
func CreateMessageReceiver(options map[string]interface{}) (application.MessageReceiver, error) {
if localMessageOptions, ok := options["localMessageOptions"]; ok {
var converterType string
if value, ok := localMessageOptions.(map[string]interface{})["converterType"]; ok {
converterType = value.(string)
} else {
return nil, fmt.Errorf("LocalMessageReceiver缺少参数converterType")
}
var storeType string
var storeOptions map[string]interface{}
if value, ok := localMessageOptions.(map[string]interface{})["storeType"]; ok {
storeType = value.(string)
} else {
return nil, fmt.Errorf("LocalMessageReceiver缺少参数storeType")
}
if value, ok := localMessageOptions.(map[string]interface{})["storeOptions"]; ok {
storeOptions = value.(map[string]interface{})
} else {
return nil, fmt.Errorf("LocalMessageReceiver缺少参数storeOptions")
}
return localMessageReceiver.NewLocalMessageReceiver(converterType, nil, storeType, storeOptions)
} else {
return nil, fmt.Errorf("缺少参数localMessageOptions")
}
}
... ...
package factory
import (
"github.com/linmadan/egglib-go/core/application"
pG "github.com/linmadan/egglib-go/transaction/pg"
)
func CreateTransactionContext(options map[string]interface{}) (application.TransactionContext, error) {
return pG.NewPGTransactionContext(pg.DB), nil
}
... ...
package application
import (
"github.com/beego/beego/v2/core/validation"
"github.com/linmadan/egglib-go/validation/beego"
)
func init() {
validation.MessageTmpls = beego.ValidationMessageTmpls
}
... ...
package constant
import "os"
const SERVICE_NAME = "allied-creation-cooperation"
var LOG_LEVEL = "debug"
func init() {
if os.Getenv("LOG_LEVEL") != "" {
LOG_LEVEL = os.Getenv("LOG_LEVEL")
}
}
... ...
package constant
import "os"
var KAFKA_HOSTS = ""
func init() {
if os.Getenv("KAFKA_HOSTS") != "" {
KAFKA_HOSTS = os.Getenv("KAFKA_HOSTS")
}
}
... ...
package constant
import "os"
var POSTGRESQL_DB_NAME = "allied-creation-cooperation"
var POSTGRESQL_USER = "postgres"
var POSTGRESQL_PASSWORD = ""
var POSTGRESQL_HOST = "127.0.0.1"
var POSTGRESQL_PORT = "32432"
var DISABLE_CREATE_TABLE = false
var DISABLE_SQL_GENERATE_PRINT = false
func init() {
if os.Getenv("POSTGRESQL_DB_NAME") != "" {
POSTGRESQL_DB_NAME = os.Getenv("POSTGRESQL_DB_NAME")
}
if os.Getenv("POSTGRESQL_USER") != "" {
POSTGRESQL_USER = os.Getenv("POSTGRESQL_USER")
}
if os.Getenv("POSTGRESQL_PASSWORD") != "" {
POSTGRESQL_PASSWORD = os.Getenv("POSTGRESQL_PASSWORD")
}
if os.Getenv("POSTGRESQL_HOST") != "" {
POSTGRESQL_HOST = os.Getenv("POSTGRESQL_HOST")
}
if os.Getenv("POSTGRESQL_PORT") != "" {
POSTGRESQL_PORT = os.Getenv("POSTGRESQL_PORT")
}
if os.Getenv("DISABLE_CREATE_TABLE") != "" {
DISABLE_CREATE_TABLE = true
}
if os.Getenv("DISABLE_SQL_GENERATE_PRINT") != "" {
DISABLE_SQL_GENERATE_PRINT = true
}
}
... ...
package pg
import (
"github.com/go-pg/pg/v10/orm"
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/constant"
//_ "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/infrastructure/pg/models"
"github.com/linmadan/egglib-go/persistent/pg/comment"
"github.com/linmadan/egglib-go/persistent/pg/hooks"
)
var DB *pg.DB
func init() {
DB = pg.Connect(&pg.Options{
User: constant.POSTGRESQL_USER,
Password: constant.POSTGRESQL_PASSWORD,
Database: constant.POSTGRESQL_DB_NAME,
Addr: fmt.Sprintf("%s:%s", constant.POSTGRESQL_HOST, constant.POSTGRESQL_PORT),
})
if !constant.DISABLE_SQL_GENERATE_PRINT {
DB.AddQueryHook(hooks.SqlGeneratePrintHook{})
}
if !constant.DISABLE_CREATE_TABLE {
for _, model := range []interface{}{} {
err := DB.Model(model).CreateTable(&orm.CreateTableOptions{
Temp: false,
IfNotExists: true,
FKConstraints: true,
})
if err != nil {
panic(err)
}
comment.AddComments(DB, model)
}
}
}
... ...
package log
import (
"github.com/linmadan/egglib-go/log"
"github.com/linmadan/egglib-go/log/logrus"
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/constant"
)
var Logger log.Logger
func init() {
Logger = logrus.NewLogrusLogger()
Logger.SetServiceName(constant.SERVICE_NAME)
Logger.SetLevel(constant.LOG_LEVEL)
}
... ...
package beego
import (
"github.com/beego/beego/v2/server/web"
"github.com/linmadan/egglib-go/web/beego/filters"
//_ "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/port/beego/routers"
. "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/log"
)
func init() {
web.BConfig.AppName = "allied-creation-cooperation"
web.BConfig.CopyRequestBody = true
web.BConfig.RunMode = "dev"
web.BConfig.Listen.HTTPPort = 8080
web.BConfig.Listen.EnableAdmin = false
web.BConfig.WebConfig.CommentRouterPath = "/pkg/port/beego"
if os.Getenv("RUN_MODE") != "" {
web.BConfig.RunMode = os.Getenv("RUN_MODE")
}
if os.Getenv("HTTP_PORT") != "" {
portStr := os.Getenv("HTTP_PORT")
if port, err := strconv.Atoi(portStr); err == nil {
web.BConfig.Listen.HTTPPort = port
}
}
web.InsertFilter("/*", web.BeforeExec, filters.AllowCors())
web.InsertFilter("/*", web.BeforeExec, filters.CreateRequstLogFilter(Logger))
web.InsertFilter("/*", web.AfterExec, filters.CreateResponseLogFilter(Logger), web.WithReturnOnOutput(false))
}
... ...
package sarama
import (
"github.com/Shopify/sarama"
saramaConsumer "github.com/linmadan/egglib-go/mom/kafka/sarama"
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/constant"
. "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/log"
// "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/port/sarama/messageHandler"
)
func Run() {
messageHandlerMap := make(map[string]func(message *sarama.ConsumerMessage) error)
messageHandlerMap[constant.PUSH_MESSAGE_COMMAND] = messageHandler.PushMessageCommandHandler
saramaConsumer.StartConsume(constant.KAFKA_HOSTS, constant.SERVICE_NAME, messageHandlerMap, Logger)
}
... ...