作者 陈志颖

feat:开发共创模式功能

正在显示 391 个修改的文件 包含 1386 行增加5151 行删除
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
... ...
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/prd/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/prd/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/prd/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: 共创项目概览统计
... ... @@ -2,4 +2,29 @@ module gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation
go 1.16
require github.com/linmadan/egglib-go v0.0.0-20210527091316-06b0732fb5f6 // indirect
require (
github.com/Shopify/sarama v1.25.0
github.com/ajg/form v1.5.1 // indirect
github.com/beego/beego/v2 v2.0.1
github.com/fasthttp-contrib/websocket v0.0.0-20160511215533-1f3b11f56072 // indirect
github.com/fatih/structs v1.1.0 // indirect
github.com/gavv/httpexpect v2.0.0+incompatible
github.com/go-pg/pg/v10 v10.7.7
github.com/google/go-querystring v1.1.0 // indirect
github.com/gorilla/websocket v1.4.2 // indirect
github.com/imkira/go-interpol v1.1.0 // indirect
github.com/linmadan/egglib-go v0.0.0-20210527091316-06b0732fb5f6
github.com/mattn/go-colorable v0.1.8 // indirect
github.com/moul/http2curl v1.0.0 // indirect
github.com/onsi/ginkgo v1.14.2
github.com/onsi/gomega v1.10.3
github.com/sergi/go-diff v1.2.0 // indirect
github.com/sirupsen/logrus v1.8.1 // indirect
github.com/smartystreets/goconvey v1.6.4 // indirect
github.com/valyala/fasthttp v1.28.0 // indirect
github.com/xeipuuv/gojsonschema v1.2.0 // indirect
github.com/yalp/jsonpath v0.0.0-20180802001716-5cc68e5049a0 // indirect
github.com/yudai/gojsondiff v1.0.0 // indirect
github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82 // indirect
github.com/yudai/pp v2.0.1+incompatible // indirect
)
... ...
... ... @@ -3,22 +3,30 @@ github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03
github.com/Knetic/govaluate v3.0.0+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0=
github.com/Shopify/sarama v1.25.0 h1:ch1ywjRLjfJtU+EaiJ+l0rWffQ6TRpyYmW4DX7Cb2SU=
github.com/Shopify/sarama v1.25.0/go.mod h1:y/CFFTO9eaMTNriwu/Q+W4eioLqiDMGkA1W+gmdfj8w=
github.com/Shopify/toxiproxy v2.1.4+incompatible h1:TKdv8HiTLgE5wdJuEML90aBgNWsokNbMijUGhmcoBJc=
github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI=
github.com/ajg/form v1.5.1 h1:t9c7v8JUKu/XxOGBU0yjNpaMloxGEJhUkqFRq0ibGeU=
github.com/ajg/form v1.5.1/go.mod h1:uL1WgH+h2mgNtvBq0339dVnzXdBETtL2LeUXaIv25UY=
github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
github.com/alicebob/gopher-json v0.0.0-20180125190556-5a6b3ba71ee6/go.mod h1:SGnFV6hVsYE877CKEZ6tDNTjaSXYUk6QqoIK6PrAtcc=
github.com/alicebob/miniredis v2.5.0+incompatible/go.mod h1:8HZjEj4yU0dwhYHky+DxYx+6BMjkBbe5ONFIF1MXffk=
github.com/andybalholm/brotli v1.0.2 h1:JKnhI/XQ75uFBTiuzXpzFrUriDPiZjlOSzh6wXogP0E=
github.com/andybalholm/brotli v1.0.2/go.mod h1:loMXtMfwqflxFJPmdbJO0a3KNoPuLBgiu3qAvBg8x/Y=
github.com/beego/beego/v2 v2.0.1 h1:07a7Z0Ok5vbqyqh+q53sDPl9LdhKh0ZDy3gbyGrhFnE=
github.com/beego/beego/v2 v2.0.1/go.mod h1:8zyHi1FnWO1mZLwTn62aKRIZF/aIKvkCBB2JYs+eqQI=
github.com/beego/goyaml2 v0.0.0-20130207012346-5545475820dd/go.mod h1:1b+Y/CofkYwXMUU0OhQqGvsY2Bvgr4j6jfT699wyZKQ=
github.com/beego/x2j v0.0.0-20131220205130-a0352aadc542/go.mod h1:kSeGC/p1AbBiEp5kat81+DSQrZenVBZXklMLaELspWU=
github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=
github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8=
github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=
github.com/bradfitz/gomemcache v0.0.0-20180710155616-bc664df96737/go.mod h1:PmM6Mmwb0LSuEubjR8N7PtNe1KxZLtOUHtbeikc5h60=
github.com/casbin/casbin v1.7.0/go.mod h1:c67qKN6Oum3UF5Q1+BByfFxkwKvhwW57ITjqwtzR1KE=
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
github.com/cespare/xxhash/v2 v2.1.1 h1:6MnRN8NT7+YBpUIWxHtefFZOKTAPgGjpQSxqLNn0+qY=
github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
github.com/cloudflare/golz4 v0.0.0-20150217214814-ef862a3cdc58/go.mod h1:EOBUe0h4xcZ5GoxqC5SDxFQ8gwyZPKQoEzownBlhI80=
... ... @@ -42,22 +50,35 @@ github.com/eapache/queue v1.1.0 h1:YOEu7KNc61ntiQlcEeUIoDTJ2o8mQznoNvUhiigpIqc=
github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I=
github.com/edsrzf/mmap-go v0.0.0-20170320065105-0bce6a688712/go.mod h1:YO35OhQPt3KJa3ryjFM5Bs14WD66h8eGKpfaBNrHW5M=
github.com/elastic/go-elasticsearch/v6 v6.8.5/go.mod h1:UwaDJsD3rWLM5rKNFzv9hgox93HoX8utj1kxD9aFUcI=
github.com/elazarl/go-bindata-assetfs v1.0.0 h1:G/bYguwHIzWq9ZoyUQqrjTmJbbYn3j3CKKpKinvZLFk=
github.com/elazarl/go-bindata-assetfs v1.0.0/go.mod h1:v+YaWX3bdea5J/mo8dSETolEo7R71Vk1u8bnjau5yw4=
github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
github.com/fasthttp-contrib/websocket v0.0.0-20160511215533-1f3b11f56072 h1:DddqAaWDpywytcG8w/qoQ5sAN8X12d3Z3koB0C3Rxsc=
github.com/fasthttp-contrib/websocket v0.0.0-20160511215533-1f3b11f56072/go.mod h1:duJ4Jxv5lDcvg4QuQr0oowTf7dz4/CR8NtyCooz9HL8=
github.com/fatih/structs v1.1.0 h1:Q7juDM0QtcnhCpeyLGQKyg4TOIghuNXrkL32pHAUMxo=
github.com/fatih/structs v1.1.0/go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga6PJ7M=
github.com/fortytw2/leaktest v1.3.0 h1:u8491cBMTQ8ft8aeV+adlcytMZylmA5nnwwkRZjI8vw=
github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g=
github.com/frankban/quicktest v1.4.1 h1:Wv2VwvNn73pAdFIVUQRXYDFp31lXKbqblIXo/Q5GPSg=
github.com/frankban/quicktest v1.4.1/go.mod h1:36zfPVQyHxymz4cH7wlDmVwDrJuljRB60qkgn7rorfQ=
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
github.com/fsnotify/fsnotify v1.4.9 h1:hsms1Qyu0jgnwNXIxa+/V/PDsU6CfLf6CNO8H7IWoS4=
github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=
github.com/gavv/httpexpect v2.0.0+incompatible h1:1X9kcRshkSKEjNJJxX9Y9mQ5BRfbxU5kORdjhlA1yX8=
github.com/gavv/httpexpect v2.0.0+incompatible/go.mod h1:x+9tiU1YnrOvnB725RkpoLv1M62hOWzwo5OXotisrKc=
github.com/glendc/gopher-json v0.0.0-20170414221815-dc4743023d0c/go.mod h1:Gja1A+xZ9BoviGJNA2E9vFkPjjsl+CoJxSXiQM1UXtw=
github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE=
github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk=
github.com/go-pg/pg/v10 v10.7.7 h1:jPooLMqrVVV5Ejpcxpwxv9R2gECT/+UEpz+qIzOUJ9A=
github.com/go-pg/pg/v10 v10.7.7/go.mod h1:d0w17Xw5x2DtbD/UgB9rnZg3FAck3eDHXff0Srrzuuk=
github.com/go-pg/zerochecker v0.2.0 h1:pp7f72c3DobMWOb2ErtZsnrPaSvHd2W4o9//8HtF4mU=
github.com/go-pg/zerochecker v0.2.0/go.mod h1:NJZ4wKL0NmTtz0GKCoJ8kym6Xn/EQzXRl2OnAe7MmDo=
github.com/go-redis/redis v6.14.2+incompatible/go.mod h1:NAIEuMOZ/fxfXJIrKDQDz8wamY7mA7PouImQ2Jvg6kA=
github.com/go-redis/redis/v7 v7.4.0/go.mod h1:JDNMw23GTyLNC4GZu9njt15ctBQVn7xjRfnwdHj/Dcg=
github.com/go-sql-driver/mysql v1.5.0 h1:ozyZYNQW3x3HtqT1jira07DN2PArx2v7/mN66gGcHOs=
github.com/go-sql-driver/mysql v1.5.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg=
github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=
github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ=
... ... @@ -74,64 +95,98 @@ github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:W
github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0=
github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8=
github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
github.com/golang/protobuf v1.4.3 h1:JjCZWpVbqXDqFVmTfYWEVTMIYrL/NPdPSCHPJ0T/raM=
github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
github.com/golang/snappy v0.0.0-20170215233205-553a64147049/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
github.com/golang/snappy v0.0.1 h1:Qgr9rKW7uDUkrbSmQeiDsGa8SjGyCOGtuasMWwvp2P4=
github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
github.com/golang/snappy v0.0.3 h1:fHPg5GQYlCeLIPB9BZqMVR5nR9A+IM5zcgeTdjMYmLA=
github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
github.com/gomodule/redigo v2.0.0+incompatible/go.mod h1:B4C85qUVwatsJoIUNIfCRsp7qO0iAmpGFZ4EELWSbC4=
github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-cmp v0.5.4 h1:L8R9j+yAqZuZjsqh/z+F1NCffTKKLShY6zXTItVIZ8M=
github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8=
github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU=
github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI=
github.com/google/uuid v1.1.1 h1:Gkbcsh/GbpXz7lPftLA3P6TYMwjCLYm83jiFQZF/3gY=
github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1 h1:EGx4pi6eqNxGaHF6qqu48+N2wcFQ5qg5FXgOdqsJ5d8=
github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY=
github.com/gorilla/websocket v1.4.2 h1:+/TMaTYc4QFitKJxsQ7Yye35DkWvkdLcvGKqM+x0Ufc=
github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk=
github.com/hashicorp/go-uuid v1.0.1 h1:fv1ep09latC32wFoVwnqcnKJGnMSdBanPczbHAYm1BE=
github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro=
github.com/hashicorp/golang-lru v0.5.4 h1:YDjusn29QI/Das2iO9M0BHnIbxPeyuCHsjMW+lJfyTc=
github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4=
github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=
github.com/imkira/go-interpol v1.1.0 h1:KIiKr0VSG2CUW1hl1jpiyuzuJeKUUpC8iM1AIE7N1Vk=
github.com/imkira/go-interpol v1.1.0/go.mod h1:z0h2/2T3XF8kyEPpRgJ3kmNv+C43p+I/CoI+jC3w2iA=
github.com/jcmturner/gofork v0.0.0-20190328161633-dc7c13fece03 h1:FUwcHNlEqkqLjLBdCp5PRlCFijNjvcYANOZXzCfXwCM=
github.com/jcmturner/gofork v0.0.0-20190328161633-dc7c13fece03/go.mod h1:MK8+TM0La+2rjBD4jE12Kj1pCCxK7d2LK/UM3ncEo0o=
github.com/jinzhu/inflection v1.0.0 h1:K317FqzuhWc8YvSVlFMCCUb36O/S9MCKRDI7QkRKD/E=
github.com/jinzhu/inflection v1.0.0/go.mod h1:h+uFLlag+Qp1Va5pdKtLDYj+kHp5pxUVkryuEj+Srlc=
github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU=
github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
github.com/jtolds/gls v4.20.0+incompatible h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7C0MuV77Wo=
github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU=
github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w=
github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00=
github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
github.com/klauspost/compress v1.9.7 h1:hYW1gP94JUmAhBtJ+LNz5My+gBobDxPR1iVuKug26aA=
github.com/klauspost/compress v1.9.7/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A=
github.com/klauspost/compress v1.12.2 h1:2KCfW3I9M7nSc5wOqXAlW2v2U6v+w6cbjvbfp+OykW8=
github.com/klauspost/compress v1.12.2/go.mod h1:8dP1Hq4DHOhN9w426knH3Rhby4rFm6D8eO+e+Dq5Gzg=
github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc=
github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI=
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
github.com/ledisdb/ledisdb v0.0.0-20200510135210-d35789ec47e6/go.mod h1:n931TsDuKuq+uX4v1fulaMbA/7ZLLhjc85h7chZGBCQ=
github.com/lib/pq v1.0.0 h1:X5PMW56eZitiTeO7tKzZxFCSpbFZJtkMMooicw2us9A=
github.com/lib/pq v1.0.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo=
github.com/linmadan/egglib-go v0.0.0-20210527091316-06b0732fb5f6 h1:nyhVnOIXsESuhZ95Ak6VRSF+0fHeKlYWq0EvHByt5RU=
github.com/linmadan/egglib-go v0.0.0-20210527091316-06b0732fb5f6/go.mod h1:ZZuSWicGxpgN0OulARhuKwFJuJ9we0otaPVAJtz10yk=
github.com/magefile/mage v1.10.0/go.mod h1:z5UZb/iS3GoOSn0JgWuiw7dxlurVYTu+/jHXqQg881A=
github.com/mattn/go-colorable v0.1.8 h1:c1ghPdyEDarC70ftn0y+A/Ee++9zz8ljHG1b13eJ0s8=
github.com/mattn/go-colorable v0.1.8/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc=
github.com/mattn/go-isatty v0.0.12 h1:wuysRhFDzyxgEmMf5xjvJ2M9dZoWAXNNr5LSBS7uHXY=
github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
github.com/mattn/go-sqlite3 v2.0.3+incompatible h1:gXHsfypPkaMZrKbD5209QV9jbUTJKjyR5WD3HYQSd+U=
github.com/mattn/go-sqlite3 v2.0.3+incompatible/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc=
github.com/matttproud/golang_protobuf_extensions v1.0.1 h1:4hp9jkHxhMHkqkrB3Ix0jegS5sx/RkqARlsWZ6pIwiU=
github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0=
github.com/mitchellh/mapstructure v1.3.3 h1:SzB1nHZ2Xi+17FP0zVQBHIZqvwRN9408fJO8h+eeNA8=
github.com/mitchellh/mapstructure v1.3.3/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
github.com/moul/http2curl v1.0.0 h1:dRMWoAtb+ePxMlLkrCbAqh4TlPHXvoGUSQ323/9Zahs=
github.com/moul/http2curl v1.0.0/go.mod h1:8UbvGypXm98wA/IqH45anm5Y2Z6ep6O31QGOAZ3H0fQ=
github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs=
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno=
github.com/nxadm/tail v1.4.4 h1:DQuhQpB1tVlglWS2hLQ5OV6B5r8aGxSrPc5Qo6uTN78=
github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A=
github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
github.com/onsi/ginkgo v1.10.1/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
github.com/onsi/ginkgo v1.12.0/go.mod h1:oUhWkIvk5aDxtKvDDuw8gItl8pKl42LzjC9KZE0HfGg=
github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk=
github.com/onsi/ginkgo v1.14.2 h1:8mVmC9kjFFmA8H4pKMUhcblgifdkOIXPvbhN1T36q1M=
github.com/onsi/ginkgo v1.14.2/go.mod h1:iSB4RoI2tjJc9BBv4NKIKWKya62Rps+oPG/Lv9klQyY=
github.com/onsi/gomega v1.7.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY=
github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY=
github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo=
github.com/onsi/gomega v1.10.3 h1:gph6h/qe9GSUw1NhH1gp+qb+h8rXD8Cy60Z32Qw3ELA=
github.com/onsi/gomega v1.10.3/go.mod h1:V9xEwhxec5O8UDM77eCW8vLymOMltsqPVYWrpDsH8xc=
github.com/opentracing/opentracing-go v1.2.0/go.mod h1:GxEUsuufX4nBwe+T+Wl9TAgYrxe9dPLANfrWvHYVTgc=
github.com/pelletier/go-toml v1.0.1/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic=
... ... @@ -141,23 +196,32 @@ github.com/pierrec/lz4 v2.2.6+incompatible h1:6aCX4/YZ9v8q69hTyiR7dNLnTA3fgtKHVV
github.com/pierrec/lz4 v2.2.6+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY=
github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw=
github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo=
github.com/prometheus/client_golang v1.7.0 h1:wCi7urQOGBsYcQROHqpUUX4ct84xp40t9R9JX0FuA/U=
github.com/prometheus/client_golang v1.7.0/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M=
github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo=
github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
github.com/prometheus/client_model v0.2.0 h1:uq5h0d+GuxiXLJLNABMgp2qUWDPiLvgCzz2dUR+/W/M=
github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4=
github.com/prometheus/common v0.10.0 h1:RyRA7RzGXQZiW+tGMr7sxa85G1z0yOpM1qq5c8lNawc=
github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo=
github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk=
github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA=
github.com/prometheus/procfs v0.1.3 h1:F0+tqvhOksq22sc6iCHF5WGlWjdwj92p0udFh1VFBS8=
github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU=
github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a h1:9ZKAASQSHhDYGoxY8uLVpewe1GDZ2vu2Tr/vTdVAkFQ=
github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4=
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
github.com/sergi/go-diff v1.2.0 h1:XU+rvMAioB0UC3q1MFrIQy4Vo5/4VsRDQQXHsEya6xQ=
github.com/sergi/go-diff v1.2.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM=
github.com/shiena/ansicolor v0.0.0-20151119151921-a422bbe96644 h1:X+yvsM2yrEktyI+b2qND5gpH8YhURn0k8OCaeRnkINo=
github.com/shiena/ansicolor v0.0.0-20151119151921-a422bbe96644/go.mod h1:nkxAfR/5quYxwPZhyDxgasBMnRtBZd0FCEpawpjMUFg=
github.com/siddontang/go v0.0.0-20170517070808-cb568a3e5cc0/go.mod h1:3yhqj7WBBfRhbBlzyOC3gUxftwsU0u8gqevxwIHQpMw=
github.com/siddontang/goredis v0.0.0-20150324035039-760763f78400/go.mod h1:DDcKzU3qCuvj/tPnimWSsZZzvk9qvkvrIL5naVBPh5s=
... ... @@ -165,6 +229,12 @@ github.com/siddontang/rdb v0.0.0-20150307021120-fc89ed2e418d/go.mod h1:AMEsy7v5z
github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo=
github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE=
github.com/sirupsen/logrus v1.8.0/go.mod h1:4GuYW9TZmE769R5STWrRakJc4UqQ3+QQ95fyz7ENv1A=
github.com/sirupsen/logrus v1.8.1 h1:dJKuHgqk1NNQlqoA6BTlM1Wf9DOH3NBjQyu0h9+AZZE=
github.com/sirupsen/logrus v1.8.1/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0=
github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d h1:zE9ykElWQ6/NYmHa3jpm/yHnI4xSofP+UP6SpjHcSeM=
github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc=
github.com/smartystreets/goconvey v1.6.4 h1:fv0U8FUIMPNf1L9lnHLvLhgicrIVChEkdzIKYqbNC9s=
github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA=
github.com/ssdb/gossdb v0.0.0-20180723034631-88f6b59b84ec/go.mod h1:QBvMkMya+gXctz3kmljlUCu/yB3GZ6oee+dUozsezQE=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
... ... @@ -173,24 +243,53 @@ github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UV
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/syndtr/goleveldb v0.0.0-20160425020131-cfa635847112/go.mod h1:Z4AUp2Km+PwemOoO/VB5AOx9XSsIItzFjoJlOSiYmn0=
github.com/syndtr/goleveldb v0.0.0-20181127023241-353a9fca669c/go.mod h1:Z4AUp2Km+PwemOoO/VB5AOx9XSsIItzFjoJlOSiYmn0=
github.com/tmthrgd/go-hex v0.0.0-20190904060850-447a3041c3bc h1:9lRDQMhESg+zvGYmW5DyG0UqvY96Bu5QYsTLvCHdrgo=
github.com/tmthrgd/go-hex v0.0.0-20190904060850-447a3041c3bc/go.mod h1:bciPuU6GHm1iF1pBvUfxfsH0Wmnc2VbpgvbI9ZWuIRs=
github.com/ugorji/go v0.0.0-20171122102828-84cb69a8af83/go.mod h1:hnLbHMwcvSihnDhEfx2/BzKp2xb0Y+ErdfYcrs9tkJQ=
github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw=
github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc=
github.com/valyala/fasthttp v1.28.0 h1:ruVmTmZaBR5i67NqnjvvH5gEv0zwHfWtbjoyW98iho4=
github.com/valyala/fasthttp v1.28.0/go.mod h1:cmWIqlu99AO/RKcp1HWaViTqc57FswJOfYYdPJBl8BA=
github.com/valyala/tcplisten v1.0.0/go.mod h1:T0xQ8SeCZGxckz9qRXTfG43PvQ/mcWh7FwZEA7Ioqkc=
github.com/vmihailenco/bufpool v0.1.11 h1:gOq2WmBrq0i2yW5QJ16ykccQ4wH9UyEsgLm6czKAd94=
github.com/vmihailenco/bufpool v0.1.11/go.mod h1:AFf/MOy3l2CFTKbxwt0mp2MwnqjNEs5H/UxrkA5jxTQ=
github.com/vmihailenco/msgpack/v5 v5.2.0 h1:ZhIAtVUP1mme8GIlpiAnmTzjSWMexA/uNF2We85DR0w=
github.com/vmihailenco/msgpack/v5 v5.2.0/go.mod h1:fEM7KuHcnm0GvDCztRpw9hV0PuoO2ciTismP6vjggcM=
github.com/vmihailenco/tagparser v0.1.2 h1:gnjoVuB/kljJ5wICEEOpx98oXMWPLj22G67Vbd1qPqc=
github.com/vmihailenco/tagparser v0.1.2/go.mod h1:OeAg3pn3UbLjkWt+rN9oFYB6u/cQgqMEUPoW2WPyhdI=
github.com/vmihailenco/tagparser/v2 v2.0.0 h1:y09buUbR+b5aycVFQs/g70pqKVZNBmxwAhO7/IwNM9g=
github.com/vmihailenco/tagparser/v2 v2.0.0/go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV6mEfg5OIWRZA9qds=
github.com/wendal/errors v0.0.0-20130201093226-f66c77a7882b/go.mod h1:Q12BUT7DqIlHRmgv3RskH+UCM/4eqVMgI0EMmlSpAXc=
github.com/xdg/scram v0.0.0-20180814205039-7eeb5667e42c/go.mod h1:lB8K/P019DLNhemzwFU4jHLhdvlE6uDZjXFejJXr49I=
github.com/xdg/stringprep v1.0.0/go.mod h1:Jhud4/sHMO4oL310DaZAKk9ZaJ08SJfe+sJh0HrGL1Y=
github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f h1:J9EGpcZtP0E/raorCMxlFGSTBrsSlaDGf3jU/qvAE2c=
github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU=
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 h1:EzJWgHovont7NscjpAxXsDA8S8BMYve8Y5+7cuRE7R0=
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415/go.mod h1:GwrjFmJcFw6At/Gs6z4yjiIwzuJ1/+UwLxMQDVQXShQ=
github.com/xeipuuv/gojsonschema v1.2.0 h1:LhYJRs+L4fBtjZUfuSZIKGeVu0QRy8e5Xi7D17UxZ74=
github.com/xeipuuv/gojsonschema v1.2.0/go.mod h1:anYRn/JVcOK2ZgGU+IjEV4nwlhoK5sQluxsYJ78Id3Y=
github.com/yalp/jsonpath v0.0.0-20180802001716-5cc68e5049a0 h1:6fRhSjgLCkTD3JnJxvaJ4Sj+TYblw757bqYgZaOq5ZY=
github.com/yalp/jsonpath v0.0.0-20180802001716-5cc68e5049a0/go.mod h1:/LWChgwKmvncFJFHJ7Gvn9wZArjbV5/FppcK2fKk/tI=
github.com/yudai/gojsondiff v1.0.0 h1:27cbfqXLVEJ1o8I6v3y9lg8Ydm53EKqHXAOMxEGlCOA=
github.com/yudai/gojsondiff v1.0.0/go.mod h1:AY32+k2cwILAkW1fbgxQ5mUmMiZFgLIV+FBNExI05xg=
github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82 h1:BHyfKlQyqbsFN5p3IfnEUduWvb9is428/nNb5L3U01M=
github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82/go.mod h1:lgjkn3NuSvDfVJdfcVVdX+jpBxNmX4rDAzaS45IcYoM=
github.com/yudai/pp v2.0.1+incompatible h1:Q4//iY4pNF6yPLZIigmvcl7k/bPgrcTPIFIcmawg5bI=
github.com/yudai/pp v2.0.1+incompatible/go.mod h1:PuxR/8QJ7cyCkFp/aUDS+JY727OFEZkTdatxwunjIkc=
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/gopher-lua v0.0.0-20171031051903-609c9cd26973/go.mod h1:aEV29XrmTYFr3CiRxZeGHpkvbwq+prZduBqMaascyCU=
go.etcd.io/etcd v3.3.25+incompatible/go.mod h1:yaeTdrJi5lOmYerz05bd8+V7KubZs8YSFZfzsF9A6aI=
go.opentelemetry.io/otel v0.17.0 h1:6MKOu8WY4hmfpQ4oQn34u6rYhnf2sWf1LXYO/UFm71U=
go.opentelemetry.io/otel v0.17.0/go.mod h1:Oqtdxmf7UtEvL037ohlgnaYa1h7GtMh0NcSd9eqkC9s=
go.opentelemetry.io/otel/metric v0.17.0 h1:t+5EioN8YFXQ2EH+1j6FHCKMUj+57zIDSnSGr/mWuug=
go.opentelemetry.io/otel/metric v0.17.0/go.mod h1:hUz9lH1rNXyEwWAhIWCMFWKhYtpASgSnObJFnU26dJ0=
go.opentelemetry.io/otel/oteltest v0.17.0 h1:TyAihUowTDLqb4+m5ePAsR71xPJaTBJl4KDArIdi9k4=
go.opentelemetry.io/otel/oteltest v0.17.0/go.mod h1:JT/LGFxPwpN+nlsTiinSYjdIx3hZIGqHCpChcIZmdoE=
go.opentelemetry.io/otel/trace v0.17.0 h1:SBOj64/GAOyWzs5F680yW1ITIfJkm6cJWL2YAvuL9xY=
go.opentelemetry.io/otel/trace v0.17.0/go.mod h1:bIujpqg6ZL6xUTubIUgziI1jSaUPthmabA/ygf/6Cfg=
go.uber.org/atomic v1.6.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ=
go.uber.org/multierr v1.5.0/go.mod h1:FeouvMocqHpRaaGuG9EjoKcStLC43Zu/fmqdUMPcKYU=
... ... @@ -203,8 +302,9 @@ golang.org/x/crypto v0.0.0-20190404164418-38d8ce5564a5/go.mod h1:WFFai1msRO1wXaE
golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/crypto v0.0.0-20210218145215-b8e89b74b9df h1:y7QZzfUiTwWam+xBn29Ulb8CBwVN5UdzmMDavl9Whlw=
golang.org/x/crypto v0.0.0-20210218145215-b8e89b74b9df/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I=
golang.org/x/crypto v0.0.0-20210513164829-c07d793c2f9a h1:kr2P4QFmQr29mSLA43kwrOcgcReGTfbE9N577tCTuBc=
golang.org/x/crypto v0.0.0-20210513164829-c07d793c2f9a/go.mod h1:P+XmwS30IXTQdn5tA2iutPOUgjI07+tq3H3K9MVA1s8=
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU=
... ... @@ -213,6 +313,7 @@ golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHl
golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc=
golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg=
golang.org/x/mod v0.3.0 h1:RM4zey1++hCTbCVQfnWeKs9/IEsaBLA8vTkd0WVtmH4=
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
... ... @@ -227,8 +328,10 @@ golang.org/x/net v0.0.0-20190923162816-aa69164e4478/go.mod h1:z5CRVTTTmAJ677TzLL
golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
golang.org/x/net v0.0.0-20201006153459-a7d1128ccaa0/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
golang.org/x/net v0.0.0-20201110031124-69a78807bb2b h1:uwuIcX0g4Yl1NC5XAz37xsr2lTtcqevgzYNVt49waME=
golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
golang.org/x/net v0.0.0-20210510120150-4163338589ed h1:p9UgmWI9wKpfYmgaV/IZKGdXc5qEK45tDwwwDyjS26I=
golang.org/x/net v0.0.0-20210510120150-4163338589ed/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
... ... @@ -250,20 +353,30 @@ golang.org/x/sys v0.0.0-20191010194322-b09406accb47/go.mod h1:h1NjWce9XRLGQEsW7w
golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200519105757-fe76b779f299/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210218155724-8ebf48af031b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210514084401-e8d321eab015 h1:hZR0X1kPW+nwyJ9xRxqZk1vx5RUObAPBdKVvXPDUH/E=
golang.org/x/sys v0.0.0-20210514084401-e8d321eab015/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.6 h1:aRYxNxv6iGQlyVaZmk6ZgYEDa+Jg18DxebPSrd6bg1M=
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
... ... @@ -271,10 +384,12 @@ golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5/go.mod h1:b+2E5dAYhXwXZwtn
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
golang.org/x/tools v0.0.0-20201211185031-d93e913c1a58 h1:1Bs6RVeBFtLZ8Yi1Hk07DiOqzvwLD/4hln4iahvFlag=
golang.org/x/tools v0.0.0-20201211185031-d93e913c1a58/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE=
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
... ... @@ -293,11 +408,13 @@ google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzi
google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
google.golang.org/protobuf v1.25.0 h1:Ejskq+SyPohKW+1uil0JJMtmHCgJPJ/qWTxr8qp+R4c=
google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c=
gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f h1:BLraFXnmrev5lT+xlilqcH8XK9/i0At2xKjWk4p6zsU=
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI=
gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys=
... ... @@ -305,22 +422,27 @@ gopkg.in/jcmturner/aescts.v1 v1.0.1 h1:cVVZBK2b1zY26haWB4vbBiZrfFQnfbTVrE3xZq6hr
gopkg.in/jcmturner/aescts.v1 v1.0.1/go.mod h1:nsR8qBOg+OucoIW+WMhB3GspUQXq9XorLnQb9XtvcOo=
gopkg.in/jcmturner/dnsutils.v1 v1.0.1 h1:cIuC1OLRGZrld+16ZJvvZxVJeKPsvd5eUIvxfoN5hSM=
gopkg.in/jcmturner/dnsutils.v1 v1.0.1/go.mod h1:m3v+5svpVOhtFAP/wSz+yzh4Mc0Fg7eRhxkJMWSIz9Q=
gopkg.in/jcmturner/goidentity.v3 v3.0.0 h1:1duIyWiTaYvVx3YX2CYtpJbUFd7/UuPYCfgXtQ3VTbI=
gopkg.in/jcmturner/goidentity.v3 v3.0.0/go.mod h1:oG2kH0IvSYNIu80dVAyu/yoefjq1mNfM5bm88whjWx4=
gopkg.in/jcmturner/gokrb5.v7 v7.2.3 h1:hHMV/yKPwMnJhPuPx7pH2Uw/3Qyf+thJYlisUc44010=
gopkg.in/jcmturner/gokrb5.v7 v7.2.3/go.mod h1:l8VISx+WGYp+Fp7KRbsiUuXTTOnxIc3Tuvyavf11/WM=
gopkg.in/jcmturner/rpc.v1 v1.1.0 h1:QHIUxTX1ISuAv9dD2wJ9HWQVuWDX/Zc0PfeC2tjc4rU=
gopkg.in/jcmturner/rpc.v1 v1.1.0/go.mod h1:YIdkC4XfD6GXbzje11McwsDuOlZQSb9W4vfLvuNnlv8=
gopkg.in/mgo.v2 v2.0.0-20190816093944-a6b53ec6cb22/go.mod h1:yeKp02qBN3iKW1OzL3MGk2IdtZzaj7SFntXj72NppTA=
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ=
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw=
gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.3.0 h1:clyUAQHOM3G0M3f5vQj7LuJrETvjVot3Z5el9nffUtU=
gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg=
honnef.co/go/tools v0.0.1-2020.1.5/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
mellium.im/sasl v0.2.1 h1:nspKSRg7/SyO0cRGY71OkfHab8tf9kCts6a6oTDut0w=
mellium.im/sasl v0.2.1/go.mod h1:ROaEDLQNuf9vjKqE1SrAfnsobm2YKXT1gnN1uDp1PjQ=
... ...
package main
import "fmt"
import (
"fmt"
"github.com/beego/beego/v2/server/web"
_ "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/infrastructure/pg"
)
func main() {
fmt.Print("")
fmt.Print("Server Started!")
// web主服务
web.Run()
}
... ...
package command
import (
"fmt"
"reflect"
"strings"
"github.com/beego/beego/v2/core/validation"
)
type CreateCooperationModeCommand struct {
// 共创模式名称
CooperationModeName string `cname:"共创模式名称" json:"cooperationModeName" valid:"Required"`
// 共创模式编码,手动输入,唯一确定
CooperationModeNumber string `cname:"共创模式编码,手动输入,唯一确定" json:"cooperationModeNumber" valid:"Required"`
// 备注
Remarks string `cname:"备注" json:"remarks" valid:"Required"`
// 公司ID,通过集成REST上下文获取
CompanyId int64 `cname:"公司ID,通过集成REST上下文获取" json:"companyId,string" valid:"Required"`
// 组织机构ID
OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
// 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
}
func (createCooperationModeCommand *CreateCooperationModeCommand) Valid(validation *validation.Validation) {
validation.SetError("CustomValid", "未实现的自定义认证")
}
func (createCooperationModeCommand *CreateCooperationModeCommand) ValidateCommand() error {
valid := validation.Validation{}
b, err := valid.Valid(createCooperationModeCommand)
if err != nil {
return err
}
if !b {
elem := reflect.TypeOf(createCooperationModeCommand).Elem()
for _, validErr := range valid.Errors {
field, isExist := elem.FieldByName(validErr.Field)
if isExist {
return fmt.Errorf(strings.Replace(validErr.Message, validErr.Field, field.Tag.Get("cname"), -1))
} else {
return fmt.Errorf(validErr.Message)
}
}
}
return nil
}
... ...
package command
import (
"fmt"
"reflect"
"strings"
"github.com/beego/beego/v2/core/validation"
)
type RemoveCooperationModeCommand struct {
// 共创模式ID
CooperationModeId int64 `cname:"共创模式ID" json:"cooperationModeId,string" valid:"Required"`
// 公司ID,通过集成REST上下文获取
CompanyId int64 `cname:"公司ID,通过集成REST上下文获取" json:"companyId,string" valid:"Required"`
// 组织机构ID
OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
// 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
}
func (removeCooperationModeCommand *RemoveCooperationModeCommand) Valid(validation *validation.Validation) {
validation.SetError("CustomValid", "未实现的自定义认证")
}
func (removeCooperationModeCommand *RemoveCooperationModeCommand) ValidateCommand() error {
valid := validation.Validation{}
b, err := valid.Valid(removeCooperationModeCommand)
if err != nil {
return err
}
if !b {
elem := reflect.TypeOf(removeCooperationModeCommand).Elem()
for _, validErr := range valid.Errors {
field, isExist := elem.FieldByName(validErr.Field)
if isExist {
return fmt.Errorf(strings.Replace(validErr.Message, validErr.Field, field.Tag.Get("cname"), -1))
} else {
return fmt.Errorf(validErr.Message)
}
}
}
return nil
}
... ...
package command
import (
"fmt"
"reflect"
"strings"
"github.com/beego/beego/v2/core/validation"
)
type UpdateCooperationModeCommand struct {
// 共创模式ID
CooperationModeId string `cname:"共创模式id" json:"cooperationModeId" valid:"Required"`
// 共创模式名称
CooperationModeName string `cname:"共创模式名称" json:"cooperationModeName" valid:"Required"`
// 共创模式编码,手动输入,唯一确定
CooperationModeNumber string `cname:"共创模式编码,手动输入,唯一确定" json:"cooperationModeNumber" valid:"Required"`
// 备注
Remarks string `cname:"备注" json:"remarks" valid:"Required"`
// 公司ID,通过集成REST上下文获取
CompanyId int64 `cname:"公司ID,通过集成REST上下文获取" json:"companyId,string" valid:"Required"`
// 组织机构ID
OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
// 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
}
func (updateCooperationModeCommand *UpdateCooperationModeCommand) Valid(validation *validation.Validation) {
validation.SetError("CustomValid", "未实现的自定义认证")
}
func (updateCooperationModeCommand *UpdateCooperationModeCommand) ValidateCommand() error {
valid := validation.Validation{}
b, err := valid.Valid(updateCooperationModeCommand)
if err != nil {
return err
}
if !b {
elem := reflect.TypeOf(updateCooperationModeCommand).Elem()
for _, validErr := range valid.Errors {
field, isExist := elem.FieldByName(validErr.Field)
if isExist {
return fmt.Errorf(strings.Replace(validErr.Message, validErr.Field, field.Tag.Get("cname"), -1))
} else {
return fmt.Errorf(validErr.Message)
}
}
}
return nil
}
... ...
package query
import (
"fmt"
"reflect"
"strings"
"github.com/beego/beego/v2/core/validation"
)
type GetCooperationModeQuery struct {
// 共创模式ID
CooperationModeId int64 `cname:"共创模式ID" json:"cooperationModeId,string" valid:"Required"`
// 公司ID,通过集成REST上下文获取
CompanyId int64 `cname:"公司ID,通过集成REST上下文获取" json:"companyId,string" valid:"Required"`
// 组织机构ID
OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
// 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
}
func (getCooperationModeQuery *GetCooperationModeQuery) Valid(validation *validation.Validation) {
validation.SetError("CustomValid", "未实现的自定义认证")
}
func (getCooperationModeQuery *GetCooperationModeQuery) ValidateQuery() error {
valid := validation.Validation{}
b, err := valid.Valid(getCooperationModeQuery)
if err != nil {
return err
}
if !b {
elem := reflect.TypeOf(getCooperationModeQuery).Elem()
for _, validErr := range valid.Errors {
field, isExist := elem.FieldByName(validErr.Field)
if isExist {
return fmt.Errorf(strings.Replace(validErr.Message, validErr.Field, field.Tag.Get("cname"), -1))
} else {
return fmt.Errorf(validErr.Message)
}
}
}
return nil
}
... ...
package query
import (
"fmt"
"reflect"
"strings"
"github.com/beego/beego/v2/core/validation"
)
type ListCooperationModeQuery struct {
// 查询偏离量
Offset int `cname:"查询偏离量" json:"offset" valid:"Required"`
// 查询限制
Limit int `cname:"查询限制" json:"limit" valid:"Required"`
// 公司ID,通过集成REST上下文获取
CompanyId int64 `cname:"公司ID,通过集成REST上下文获取" json:"companyId,string" valid:"Required"`
// 组织机构ID
OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
// 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
}
func (listCooperationModeQuery *ListCooperationModeQuery) Valid(validation *validation.Validation) {
validation.SetError("CustomValid", "未实现的自定义认证")
}
func (listCooperationModeQuery *ListCooperationModeQuery) ValidateQuery() error {
valid := validation.Validation{}
b, err := valid.Valid(listCooperationModeQuery)
if err != nil {
return err
}
if !b {
elem := reflect.TypeOf(listCooperationModeQuery).Elem()
for _, validErr := range valid.Errors {
field, isExist := elem.FieldByName(validErr.Field)
if isExist {
return fmt.Errorf(strings.Replace(validErr.Message, validErr.Field, field.Tag.Get("cname"), -1))
} else {
return fmt.Errorf(validErr.Message)
}
}
}
return nil
}
... ...
package query
import (
"fmt"
"reflect"
"strings"
"github.com/beego/beego/v2/core/validation"
)
type SearchCooperationModeQuery struct {
// 页面大小
PageNumber int32 `cname:"页面大小" json:"pageNumber" valid:"Required"`
// 页面大小
PageSize int32 `cname:"页面大小" json:"pageSize" valid:"Required"`
// 共创模式名称
CooperationModeName string `cname:"共创模式名称" json:"cooperationModeName" valid:"Required"`
// 组织机构名称
OrganizationName string `cname:"组织机构名称" json:"organizationName,omitempty"`
// 公司ID,通过集成REST上下文获取
CompanyId int64 `cname:"公司ID,通过集成REST上下文获取" json:"companyId,string" valid:"Required"`
// 组织机构ID
OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
// 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
}
func (searchCooperationModeQuery *SearchCooperationModeQuery) Valid(validation *validation.Validation) {
validation.SetError("CustomValid", "未实现的自定义认证")
}
func (searchCooperationModeQuery *SearchCooperationModeQuery) ValidateQuery() error {
valid := validation.Validation{}
b, err := valid.Valid(searchCooperationModeQuery)
if err != nil {
return err
}
if !b {
elem := reflect.TypeOf(searchCooperationModeQuery).Elem()
for _, validErr := range valid.Errors {
field, isExist := elem.FieldByName(validErr.Field)
if isExist {
return fmt.Errorf(strings.Replace(validErr.Message, validErr.Field, field.Tag.Get("cname"), -1))
} else {
return fmt.Errorf(validErr.Message)
}
}
}
return nil
}
... ...
package service
import (
"fmt"
"github.com/linmadan/egglib-go/core/application"
"github.com/linmadan/egglib-go/utils/tool_funs"
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/cooperationMode/command"
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/cooperationMode/query"
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/factory"
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/domain"
)
// 共创模式服务
type CooperationModeService struct {
}
// 创建共创模式服务
func (cooperationModeService *CooperationModeService) CreateCooperationMode(createCooperationModeCommand *command.CreateCooperationModeCommand) (interface{}, error) {
if err := createCooperationModeCommand.ValidateCommand(); err != nil {
return nil, application.ThrowError(application.ARG_ERROR, err.Error())
}
transactionContext, err := factory.CreateTransactionContext(nil)
if err != nil {
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
}
if err := transactionContext.StartTransaction(); err != nil {
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
}
defer func() {
transactionContext.RollbackTransaction()
}()
newCooperationMode := &domain.CooperationMode{
CooperationModeName: createCooperationModeCommand.CooperationModeName,
CooperationModeNumber: createCooperationModeCommand.CooperationModeNumber,
Remarks: createCooperationModeCommand.Remarks,
//CompanyId: createCooperationModeCommand.CompanyId,
//OrgId: createCooperationModeCommand.OrgId,
//UserId: createCooperationModeCommand.UserId,
}
var cooperationModeRepository domain.CooperationModeRepository
if value, err := factory.CreateCooperationModeRepository(map[string]interface{}{
"transactionContext": transactionContext,
}); err != nil {
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
} else {
cooperationModeRepository = value
}
if cooperationMode, err := cooperationModeRepository.Save(newCooperationMode); err != nil {
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
} else {
if err := transactionContext.CommitTransaction(); err != nil {
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
}
return cooperationMode, nil
}
}
// 返回共创模式服务
func (cooperationModeService *CooperationModeService) GetCooperationMode(getCooperationModeQuery *query.GetCooperationModeQuery) (interface{}, error) {
if err := getCooperationModeQuery.ValidateQuery(); err != nil {
return nil, application.ThrowError(application.ARG_ERROR, err.Error())
}
transactionContext, err := factory.CreateTransactionContext(nil)
if err != nil {
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
}
if err := transactionContext.StartTransaction(); err != nil {
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
}
defer func() {
transactionContext.RollbackTransaction()
}()
var cooperationModeRepository domain.CooperationModeRepository
if value, err := factory.CreateCooperationModeRepository(map[string]interface{}{
"transactionContext": transactionContext,
}); err != nil {
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
} else {
cooperationModeRepository = value
}
cooperationMode, err := cooperationModeRepository.FindOne(map[string]interface{}{"cooperationModeId": getCooperationModeQuery.CooperationModeId})
if err != nil {
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
}
if cooperationMode == nil {
return nil, application.ThrowError(application.RES_NO_FIND_ERROR, fmt.Sprintf("%s", string(getCooperationModeQuery.CooperationModeId)))
} else {
if err := transactionContext.CommitTransaction(); err != nil {
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
}
return cooperationMode, nil
}
}
// 返回共创模式服务列表
func (cooperationModeService *CooperationModeService) ListCooperationMode(listCooperationModeQuery *query.ListCooperationModeQuery) (interface{}, error) {
if err := listCooperationModeQuery.ValidateQuery(); err != nil {
return nil, application.ThrowError(application.ARG_ERROR, err.Error())
}
transactionContext, err := factory.CreateTransactionContext(nil)
if err != nil {
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
}
if err := transactionContext.StartTransaction(); err != nil {
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
}
defer func() {
transactionContext.RollbackTransaction()
}()
var cooperationModeRepository domain.CooperationModeRepository
if value, err := factory.CreateCooperationModeRepository(map[string]interface{}{
"transactionContext": transactionContext,
}); err != nil {
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
} else {
cooperationModeRepository = value
}
if count, cooperationModes, err := cooperationModeRepository.Find(tool_funs.SimpleStructToMap(listCooperationModeQuery)); err != nil {
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
} else {
if err := transactionContext.CommitTransaction(); err != nil {
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
}
return map[string]interface{}{
"count": count,
"cooperationModes": cooperationModes,
}, nil
}
}
// 移除共创模式服务
func (cooperationModeService *CooperationModeService) RemoveCooperationMode(removeCooperationModeCommand *command.RemoveCooperationModeCommand) (interface{}, error) {
if err := removeCooperationModeCommand.ValidateCommand(); err != nil {
return nil, application.ThrowError(application.ARG_ERROR, err.Error())
}
transactionContext, err := factory.CreateTransactionContext(nil)
if err != nil {
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
}
if err := transactionContext.StartTransaction(); err != nil {
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
}
defer func() {
transactionContext.RollbackTransaction()
}()
var cooperationModeRepository domain.CooperationModeRepository
if value, err := factory.CreateCooperationModeRepository(map[string]interface{}{
"transactionContext": transactionContext,
}); err != nil {
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
} else {
cooperationModeRepository = value
}
cooperationMode, err := cooperationModeRepository.FindOne(map[string]interface{}{"cooperationModeId": removeCooperationModeCommand.CooperationModeId})
if err != nil {
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
}
if cooperationMode == nil {
return nil, application.ThrowError(application.RES_NO_FIND_ERROR, fmt.Sprintf("%s", string(removeCooperationModeCommand.CooperationModeId)))
}
if cooperationMode, err := cooperationModeRepository.Remove(cooperationMode); err != nil {
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
} else {
if err := transactionContext.CommitTransaction(); err != nil {
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
}
return cooperationMode, nil
}
}
// 查询共创模式
func (cooperationModeService *CooperationModeService) SearchCooperationMode(searchCooperationModeQuery *query.SearchCooperationModeQuery) (interface{}, error) {
if err := searchCooperationModeQuery.ValidateQuery(); err != nil {
return nil, application.ThrowError(application.ARG_ERROR, err.Error())
}
transactionContext, err := factory.CreateTransactionContext(nil)
if err != nil {
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
}
if err := transactionContext.StartTransaction(); err != nil {
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
}
defer func() {
transactionContext.RollbackTransaction()
}()
if err := transactionContext.CommitTransaction(); err != nil {
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
}
return nil, nil
}
// 更新共创模式服务
func (cooperationModeService *CooperationModeService) UpdateCooperationMode(updateCooperationModeCommand *command.UpdateCooperationModeCommand) (interface{}, error) {
if err := updateCooperationModeCommand.ValidateCommand(); err != nil {
return nil, application.ThrowError(application.ARG_ERROR, err.Error())
}
transactionContext, err := factory.CreateTransactionContext(nil)
if err != nil {
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
}
if err := transactionContext.StartTransaction(); err != nil {
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
}
defer func() {
transactionContext.RollbackTransaction()
}()
var cooperationModeRepository domain.CooperationModeRepository
if value, err := factory.CreateCooperationModeRepository(map[string]interface{}{
"transactionContext": transactionContext,
}); err != nil {
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
} else {
cooperationModeRepository = value
}
cooperationMode, err := cooperationModeRepository.FindOne(map[string]interface{}{"cooperationModeId": updateCooperationModeCommand.CooperationModeId})
if err != nil {
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
}
if cooperationMode == nil {
return nil, application.ThrowError(application.RES_NO_FIND_ERROR, fmt.Sprintf("%s", string(updateCooperationModeCommand.CooperationModeId)))
}
if err := cooperationMode.Update(tool_funs.SimpleStructToMap(updateCooperationModeCommand)); err != nil {
return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error())
}
if cooperationMode, err := cooperationModeRepository.Save(cooperationMode); err != nil {
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
} else {
if err := transactionContext.CommitTransaction(); err != nil {
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
}
return cooperationMode, nil
}
}
func NewCooperationModeService(options map[string]interface{}) *CooperationModeService {
newCooperationModeService := &CooperationModeService{}
return newCooperationModeService
}
... ...
package factory
import (
"github.com/linmadan/egglib-go/transaction/pg"
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/domain"
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/infrastructure/repository"
)
func CreateCooperationModeRepository(options map[string]interface{}) (domain.CooperationModeRepository, error) {
var transactionContext *pg.TransactionContext
if value, ok := options["transactionContext"]; ok {
... ...
... ... @@ -5,9 +5,17 @@ import "os"
const SERVICE_NAME = "allied-creation-cooperation"
var LOG_LEVEL = "debug"
var LOG_FILE = "app.log"
var LOG_PREFIX = "[allied-creation-cooperation]"
func init() {
if os.Getenv("LOG_LEVEL") != "" {
LOG_LEVEL = os.Getenv("LOG_LEVEL")
}
if os.Getenv("LOG_FILE") != "" {
LOG_FILE = os.Getenv("LOG_FILE")
}
if os.Getenv("LOG_PREFIX") != "" {
LOG_PREFIX = os.Getenv("LOG_PREFIX")
}
}
... ...
... ... @@ -2,10 +2,23 @@ package constant
import "os"
// kafka 地址
var KAFKA_HOSTS = ""
// kafka topic log stash
var TOPIC_LOG_STASH = "go_stash_dev"
// 是否启用日志收集 (本地不启用)
var ENABLE_KAFKA_LOG = false
func init() {
if os.Getenv("KAFKA_HOSTS") != "" {
KAFKA_HOSTS = os.Getenv("KAFKA_HOSTS")
}
if os.Getenv("TOPIC_LOG_STASH") != "" {
POSTGRESQL_PORT = os.Getenv("TOPIC_LOG_STASH")
}
if os.Getenv("ENABLE_KAFKA_LOG") != "" {
DISABLE_CREATE_TABLE = true
}
}
... ...
package pg
import (
"fmt"
"github.com/go-pg/pg/v10"
"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"
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/log"
//_ "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"
_ "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/infrastructure/pg/models"
)
var DB *pg.DB
... ... @@ -19,10 +23,19 @@ func init() {
Addr: fmt.Sprintf("%s:%s", constant.POSTGRESQL_HOST, constant.POSTGRESQL_PORT),
})
if !constant.DISABLE_SQL_GENERATE_PRINT {
DB.AddQueryHook(hooks.SqlGeneratePrintHook{})
DB.AddQueryHook(hooks.SqlGeneratePrintHook{Logger: log.Logger})
}
if !constant.DISABLE_CREATE_TABLE {
for _, model := range []interface{}{} {
for _, model := range []interface{}{
&models.ContractUndertakerFeedback{},
&models.CooperationApplication{},
&models.CooperationContract{},
&models.CooperationMode{},
&models.CooperationProject{},
&models.DividendsEstimate{},
&models.DividendsIncentivesRule{},
&models.MoneyIncentivesRule{},
} {
err := DB.Model(model).CreateTable(&orm.CreateTableOptions{
Temp: false,
IfNotExists: true,
... ...
package models
import (
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/domain"
"time"
)
type ContractUndertakerFeedback struct {
tableName string `comment:"承接人反馈信息" pg:"contract_undertaker_feedbacks,alias:contract_undertaker_feedback"`
// 合约承接方反馈记录ID
FeedbackId int64 `comment:"合约承接方反馈记录ID"`
// 合约承接方反馈内容附件
FeedbackAttachment []*Attachment `comment:"合约承接方反馈内容附件" pg:",array"`
FeedbackAttachment []*domain.Attachment `comment:"合约承接方反馈内容附件"`
// 合约承接方反馈内容
FeedbackContent string `comment:"合约承接方反馈内容"`
// 共创合约编号
CooperationContractNumber string `comment:"共创合约编号"`
// 共创合约承接人
ContractUndertaker *User `comment:"共创合约承接人"`
ContractUndertaker *domain.User `comment:"共创合约承接人"`
// 共创模式
CooperationMode *CooperationMode `comment:"共创模式"`
// 数据所属组织机构
Org *Org `comment:"数据所属组织机构"`
Org *domain.Org `comment:"数据所属组织机构"`
// 公司
Company *Company `comment:"公司"`
Company *domain.Company `comment:"公司"`
// 更新时间
UpdatedAt time.Time `comment:"更新时间"`
// 删除时间
... ...
package models
import (
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/domain"
"time"
)
type CooperationApplication struct {
tableName string `comment:"共创申请实体" pg:"cooperation_applications,alias:cooperation_application"`
// 共创申请ID
CooperationApplicationId int64 `comment:"共创申请ID" pg:"pk:cooperation_application_id"`
// 共创申请人
CooperationApplicationApplicant *User `comment:"共创申请人"`
CooperationApplicationApplicant *domain.User `comment:"共创申请人"`
// 共创申请描述附件
CooperationApplicationAttachment []*Attachment `comment:"共创申请描述附件" pg:",array"`
CooperationApplicationAttachment []*domain.Attachment `comment:"共创申请描述附件"`
// 共创申请描述
CooperationApplicationDescription string `comment:"共创申请描述"`
// 共创申请审核状态,1待审核,2已同意,3已拒绝
CooperationApplicationStatus int32 `comment:"共创申请审核状态,1待审核,2已同意,3已拒绝"`
// 共创申请审核人
CooperationApplicationVerifier *User `comment:"共创申请审核人"`
CooperationApplicationVerifier *domain.User `comment:"共创申请审核人"`
// 共创申请审核描述
CooperationApplicationVerifyDescription string `comment:"共创申请审核描述"`
// 共创申请审核时间
... ... @@ -23,9 +28,9 @@ type CooperationApplication struct {
// 共创项目编号
CooperationProject *CooperationProject `comment:"共创项目编号"`
// 数据所属组织机构
Org *Org `comment:"数据所属组织机构"`
Org *domain.Org `comment:"数据所属组织机构"`
// 公司
Company *Company `comment:"公司"`
Company *domain.Company `comment:"公司"`
// 创建时间
CreatedAt time.Time `comment:"创建时间"`
// 删除时间
... ...
package models
import (
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/domain"
"time"
)
type CooperationContract struct {
tableName string `comment:"共创项目合约实体" pg:"cooperation_contracts,alias:cooperation_contract"`
// 共创合约ID
... ... @@ -11,23 +16,23 @@ type CooperationContract struct {
// 共创合约编号
CooperationContractNumber string `comment:"共创合约编号"`
// 合约推荐人
CooperationContractReferrer *User `comment:"合约推荐人"`
CooperationContractReferrer *domain.User `comment:"合约推荐人"`
// 共创合约业务员
CooperationContractSalesman *User `comment:"共创合约业务员"`
CooperationContractSalesman *domain.User `comment:"共创合约业务员"`
// 共创合约承接对象,1员工,2共创用户,3公开
CooperationContractUndertakerType []int32 `comment:"共创合约承接对象,1员工,2共创用户,3公开" pg:",array"`
// 共创合约发起人
CooperationContractSponsor *User `comment:"共创合约发起人"`
CooperationContractSponsor *domain.User `comment:"共创合约发起人"`
// 共创模式或者合伙模式
CooperationMode *CooperationMode `comment:"共创模式或者合伙模式"`
// 合约状态,1启用,2禁用
Status int32 `comment:"合约状态,1启用,2禁用"`
// 数据所属组织机构
Org *Org `comment:"数据所属组织机构"`
Org *domain.Org `comment:"数据所属组织机构"`
// 公司
Company *Company `comment:"公司"`
Company *domain.Company `comment:"公司"`
// 操作人
Operator *User `comment:"操作人"`
Operator *domain.User `comment:"操作人"`
// 操作时间
OperateTime time.Time `comment:"操作时间"`
// 创建时间
... ...
package models
import (
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/domain"
"time"
)
type MoneyIncentivesRule struct {
tableName string `comment:"金额激励规则实体" pg:"money_incentives_rules,alias:money_incentives_rule"`
// 金额激励规则ID
MoneyIcentivesRuleId int64 `comment:"金额激励规则ID"`
MoneyIncentivesRuleId int64 `comment:"金额激励规则ID"`
// 关联的共创合约编号
CooperationContractNumber string `comment:"关联的共创合约编号"`
// 激励金额
... ... @@ -21,9 +26,9 @@ type MoneyIncentivesRule struct {
// 业务员抽成比例
SalesmanPercentage float64 `comment:"业务员抽成比例"`
// 数据所属组织机构
Org *Org `comment:"数据所属组织机构"`
Org *domain.Org `comment:"数据所属组织机构"`
// 公司
Company *Company `comment:"公司"`
Company *domain.Company `comment:"公司"`
// 更新时间
UpdatedAt time.Time `comment:"更新时间"`
// 删除时间
... ...
... ... @@ -7,7 +7,7 @@ import (
func TransformToMoneyIncentivesRuleDomainModelFromPgModels(moneyIncentivesRuleModel *models.MoneyIncentivesRule) (*domain.MoneyIncentivesRule, error) {
return &domain.MoneyIncentivesRule{
MoneyIcentivesRuleId: moneyIncentivesRuleModel.MoneyIcentivesRuleId,
MoneyIncentivesRuleId: moneyIncentivesRuleModel.MoneyIncentivesRuleId,
CooperationContractNumber: moneyIncentivesRuleModel.CooperationContractNumber,
MoneyIncentivesAmount: moneyIncentivesRuleModel.MoneyIncentivesAmount,
MoneyIncentivesStage: moneyIncentivesRuleModel.MoneyIncentivesStage,
... ...
... ... @@ -12,4 +12,9 @@ func init() {
Logger = logrus.NewLogrusLogger()
Logger.SetServiceName(constant.SERVICE_NAME)
Logger.SetLevel(constant.LOG_LEVEL)
if constant.ENABLE_KAFKA_LOG {
w, _ := logrus.NewKafkaWriter(constant.KAFKA_HOSTS, constant.TOPIC_LOG_STASH, false)
Logger.AddHook(w)
}
}
... ...
... ... @@ -2,12 +2,15 @@ package beego
import (
"github.com/beego/beego/v2/server/web"
"github.com/beego/beego/v2/server/web/context"
"github.com/linmadan/egglib-go/web/beego/filters"
"net/http"
"os"
"strconv"
"time"
//_ "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/port/beego/routers"
. "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/log"
_ "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/port/beego/routers"
)
func init() {
... ... @@ -26,7 +29,25 @@ func init() {
web.BConfig.Listen.HTTPPort = port
}
}
web.InsertFilter("/*", web.BeforeRouter, AllowCors())
web.InsertFilter("/*", web.BeforeExec, filters.AllowCors())
web.InsertFilter("/*", web.BeforeExec, filters.CreateRequstLogFilter(Logger))
web.InsertFilter("/*", web.AfterExec, filters.CreateResponseLogFilter(Logger), web.WithReturnOnOutput(false))
// 默认时区设置
timeLocal, _ := time.LoadLocation("Asia/Chongqing")
time.Local = timeLocal
}
func AllowCors() func(ctx *context.Context) {
return func(ctx *context.Context) {
ctx.Output.Header("Access-Control-Allow-Methods", "OPTIONS,DELETE,POST,GET,PUT,PATCH")
ctx.Output.Header("Access-Control-Allow-Headers", "Content-Type,X-Requested-With,X-MMM-DeviceType,X-MMM-Version,X-MMM-Timestamp,X-MMM-Uuid,X-MMM-Sign,X-MMM-AccessToken,X-MMM-AppName,X-MMM-AppProject,Authorization")
ctx.Output.Header("Access-Control-Allow-Credentials", "true")
ctx.Output.Header("Access-Control-Allow-Origin", "*")
if ctx.Input.Method() == http.MethodOptions {
ctx.Output.SetStatus(http.StatusOK)
_ = ctx.Output.Body([]byte("options support"))
}
}
}
... ...
package controllers
import (
"github.com/linmadan/egglib-go/web/beego"
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/cooperationMode/command"
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/cooperationMode/query"
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/cooperationMode/service"
)
type CooperationModeController struct {
beego.BaseController
}
func (controller *CooperationModeController) CreateCooperationMode() {
cooperationModeService := service.NewCooperationModeService(nil)
createCooperationModeCommand := &command.CreateCooperationModeCommand{}
controller.Unmarshal(createCooperationModeCommand)
data, err := cooperationModeService.CreateCooperationMode(createCooperationModeCommand)
controller.Response(data, err)
}
func (controller *CooperationModeController) UpdateCooperationMode() {
cooperationModeService := service.NewCooperationModeService(nil)
updateCooperationModeCommand := &command.UpdateCooperationModeCommand{}
controller.Unmarshal(updateCooperationModeCommand)
cooperationModeId := controller.GetString(":cooperationModeId")
updateCooperationModeCommand.CooperationModeId = cooperationModeId
data, err := cooperationModeService.UpdateCooperationMode(updateCooperationModeCommand)
controller.Response(data, err)
}
func (controller *CooperationModeController) GetCooperationMode() {
cooperationModeService := service.NewCooperationModeService(nil)
getCooperationModeQuery := &query.GetCooperationModeQuery{}
cooperationModeId, _ := controller.GetInt64(":cooperationModeId")
getCooperationModeQuery.CooperationModeId = cooperationModeId
data, err := cooperationModeService.GetCooperationMode(getCooperationModeQuery)
controller.Response(data, err)
}
func (controller *CooperationModeController) RemoveCooperationMode() {
cooperationModeService := service.NewCooperationModeService(nil)
removeCooperationModeCommand := &command.RemoveCooperationModeCommand{}
controller.Unmarshal(removeCooperationModeCommand)
cooperationModeId, _ := controller.GetInt64(":cooperationModeId")
removeCooperationModeCommand.CooperationModeId = cooperationModeId
data, err := cooperationModeService.RemoveCooperationMode(removeCooperationModeCommand)
controller.Response(data, err)
}
func (controller *CooperationModeController) SearchCooperationMode() {
cooperationModeService := service.NewCooperationModeService(nil)
searchCooperationModeQuery := &query.SearchCooperationModeQuery{}
data, err := cooperationModeService.SearchCooperationMode(searchCooperationModeQuery)
controller.Response(data, err)
}
func (controller *CooperationModeController) ListCooperationMode() {
cooperationModeService := service.NewCooperationModeService(nil)
listCooperationModeQuery := &query.ListCooperationModeQuery{}
offset, _ := controller.GetInt("offset")
listCooperationModeQuery.Offset = offset
limit, _ := controller.GetInt("limit")
listCooperationModeQuery.Limit = limit
data, err := cooperationModeService.ListCooperationMode(listCooperationModeQuery)
controller.Response(data, err)
}
... ...
package routers
import (
"github.com/beego/beego/v2/server/web"
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/port/beego/controllers"
)
func init() {
web.Router("/cooperation-modes/", &controllers.CooperationModeController{}, "Post:CreateCooperationMode")
web.Router("/cooperation-modes/:cooperationModeId", &controllers.CooperationModeController{}, "Put:UpdateCooperationMode")
web.Router("/cooperation-modes/:cooperationModeId", &controllers.CooperationModeController{}, "Get:GetCooperationMode")
web.Router("/cooperation-modes/:cooperationModeId", &controllers.CooperationModeController{}, "Delete:RemoveCooperationMode")
web.Router("/cooperation-modes/search", &controllers.CooperationModeController{}, "Post:SearchCooperationMode")
web.Router("/cooperation-modes/", &controllers.CooperationModeController{}, "Get:ListCooperationMode")
}
... ...
package cooperation_mode
import (
"net/http"
"net/http/httptest"
"testing"
"github.com/beego/beego/v2/server/web"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
_ "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application"
_ "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/infrastructure/pg"
_ "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/port/beego"
)
func TestCooperationMode(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "Beego Port CooperationMode Correlations Test Case Suite")
}
var handler http.Handler
var server *httptest.Server
var _ = BeforeSuite(func() {
handler = web.BeeApp.Handlers
server = httptest.NewServer(handler)
})
var _ = AfterSuite(func() {
server.Close()
})
... ...
package cooperation_mode
import (
"net/http"
"github.com/gavv/httpexpect"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
pG "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/infrastructure/pg"
)
var _ = Describe("创建共创模式服务", func() {
Describe("提交数据创建共创模式服务", func() {
Context("提交正确的新共创模式实体数据", func() {
It("返回共创模式实体数据", func() {
httpExpect := httpexpect.New(GinkgoT(), server.URL)
body := map[string]interface{}{
"cooperationModeName": "string",
"cooperationModeNumber": "string",
"remarks": "string",
"companyId": "int64",
"orgId": "int64",
"userId": "int64",
}
httpExpect.POST("/cooperation-modes/").
WithJSON(body).
Expect().
Status(http.StatusOK).
JSON().
Object().
ContainsKey("code").ValueEqual("code", 0).
ContainsKey("msg").ValueEqual("msg", "ok").
ContainsKey("data").Value("data").Object().
ContainsKey("cooperationModeId").ValueNotEqual("cooperationModeId", BeZero())
})
})
})
AfterEach(func() {
_, err := pG.DB.Exec("DELETE FROM cooperation_modes WHERE true")
Expect(err).NotTo(HaveOccurred())
})
})
... ...
package cooperation_mode
import (
"github.com/go-pg/pg/v10"
"net/http"
"github.com/gavv/httpexpect"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
pG "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/infrastructure/pg"
)
var _ = Describe("返回共创模式服务", func() {
var cooperationModeId int64
BeforeEach(func() {
_, err := pG.DB.QueryOne(
pg.Scan(&cooperationModeId),
"INSERT INTO cooperation_modes (cooperation_mode_id, cooperation_mode_number, cooperation_mode_name, status, org, company, remarks, operator, operate_time, updated_at, deleted_at, created_at) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING cooperation_mode_id",
"testCooperationModeId", "testCooperationModeNumber", "testCooperationModeName", "testStatus", "testOrg", "testCompany", "testRemarks", "testOperator", "testOperateTime", "testUpdatedAt", "testDeletedAt", "testCreatedAt")
Expect(err).NotTo(HaveOccurred())
})
Describe("根据cooperationModeId参数返回共创模式实体", func() {
Context("传入有效的cooperationModeId", func() {
It("返回共创模式实体数据", func() {
httpExpect := httpexpect.New(GinkgoT(), server.URL)
httpExpect.GET("/cooperation-modes/{cooperationModeId}").
Expect().
Status(http.StatusOK).
JSON().
Object().
ContainsKey("code").ValueEqual("code", 0).
ContainsKey("msg").ValueEqual("msg", "ok").
ContainsKey("data").Value("data").Object()
})
})
})
AfterEach(func() {
_, err := pG.DB.Exec("DELETE FROM cooperation_modes WHERE true")
Expect(err).NotTo(HaveOccurred())
})
})
... ...
package cooperation_mode
import (
"github.com/go-pg/pg/v10"
"net/http"
"github.com/gavv/httpexpect"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
pG "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/infrastructure/pg"
)
var _ = Describe("返回共创模式服务列表", func() {
var cooperationModeId int64
BeforeEach(func() {
_, err := pG.DB.QueryOne(
pg.Scan(&cooperationModeId),
"INSERT INTO cooperation_modes (cooperation_mode_id, cooperation_mode_number, cooperation_mode_name, status, org, company, remarks, operator, operate_time, updated_at, deleted_at, created_at) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING cooperation_mode_id",
"testCooperationModeId", "testCooperationModeNumber", "testCooperationModeName", "testStatus", "testOrg", "testCompany", "testRemarks", "testOperator", "testOperateTime", "testUpdatedAt", "testDeletedAt", "testCreatedAt")
Expect(err).NotTo(HaveOccurred())
})
Describe("根据参数返回共创模式实体列表", func() {
Context("传入有效的参数", func() {
It("返回共创模式实体数据列表", func() {
httpExpect := httpexpect.New(GinkgoT(), server.URL)
httpExpect.GET("/cooperation-modes/").
WithQuery("offset", "int").
WithQuery("limit", "int").
Expect().
Status(http.StatusOK).
JSON().
Object().
ContainsKey("code").ValueEqual("code", 0).
ContainsKey("msg").ValueEqual("msg", "ok").
ContainsKey("data").Value("data").Object().
ContainsKey("count").ValueEqual("count", 1).
ContainsKey("cooperationModes").Value("cooperationModes").Array()
})
})
})
AfterEach(func() {
_, err := pG.DB.Exec("DELETE FROM cooperation_modes WHERE true")
Expect(err).NotTo(HaveOccurred())
})
})
... ...
package cooperation_mode
import (
"github.com/go-pg/pg/v10"
"net/http"
"github.com/gavv/httpexpect"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
pG "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/infrastructure/pg"
)
var _ = Describe("移除共创模式服务", func() {
var cooperationModeId int64
BeforeEach(func() {
_, err := pG.DB.QueryOne(
pg.Scan(&cooperationModeId),
"INSERT INTO cooperation_modes (cooperation_mode_id, cooperation_mode_number, cooperation_mode_name, status, org, company, remarks, operator, operate_time, updated_at, deleted_at, created_at) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING cooperation_mode_id",
"testCooperationModeId", "testCooperationModeNumber", "testCooperationModeName", "testStatus", "testOrg", "testCompany", "testRemarks", "testOperator", "testOperateTime", "testUpdatedAt", "testDeletedAt", "testCreatedAt")
Expect(err).NotTo(HaveOccurred())
})
Describe("根据参数移除共创模式服务", func() {
Context("传入有效的cooperationModeId", func() {
It("返回被移除共创模式实体的数据", func() {
httpExpect := httpexpect.New(GinkgoT(), server.URL)
httpExpect.DELETE("/cooperation-modes/{cooperationModeId}").
Expect().
Status(http.StatusOK).
JSON().
Object().
ContainsKey("code").ValueEqual("code", 0).
ContainsKey("msg").ValueEqual("msg", "ok").
ContainsKey("data").Value("data").Object()
})
})
})
AfterEach(func() {
_, err := pG.DB.Exec("DELETE FROM cooperation_modes WHERE true")
Expect(err).NotTo(HaveOccurred())
})
})
... ...
package cooperation_mode
import (
"github.com/go-pg/pg/v10"
"net/http"
"github.com/gavv/httpexpect"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
pG "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/infrastructure/pg"
)
var _ = Describe("查询共创模式", func() {
var cooperationModeId int64
BeforeEach(func() {
_, err := pG.DB.QueryOne(
pg.Scan(&cooperationModeId),
"INSERT INTO cooperation_modes (cooperation_mode_id, cooperation_mode_number, cooperation_mode_name, status, org, company, remarks, operator, operate_time, updated_at, deleted_at, created_at) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING cooperation_mode_id",
"testCooperationModeId", "testCooperationModeNumber", "testCooperationModeName", "testStatus", "testOrg", "testCompany", "testRemarks", "testOperator", "testOperateTime", "testUpdatedAt", "testDeletedAt", "testCreatedAt")
Expect(err).NotTo(HaveOccurred())
})
Describe("查询共创模式", func() {
Context("", func() {
It("", func() {
httpExpect := httpexpect.New(GinkgoT(), server.URL)
body := map[string]interface{}{
"pageNumber": "int32",
"pageSize": "int32",
"cooperationModeName": "string",
"organizationName": "string",
"companyId": "int64",
"orgId": "int64",
"userId": "int64",
}
httpExpect.POST("/cooperation-modes/search").
WithJSON(body).
Expect().
Status(http.StatusOK).
JSON().
Object().
ContainsKey("code").ValueEqual("code", 0).
ContainsKey("msg").ValueEqual("msg", "ok").
ContainsKey("data").Value("data").Object()
})
})
})
AfterEach(func() {
_, err := pG.DB.Exec("DELETE FROM cooperation_modes WHERE true")
Expect(err).NotTo(HaveOccurred())
})
})
... ...
package cooperation_mode
import (
"github.com/go-pg/pg/v10"
"net/http"
"github.com/gavv/httpexpect"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
pG "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/infrastructure/pg"
)
var _ = Describe("更新共创模式服务", func() {
var cooperationModeId int64
BeforeEach(func() {
_, err := pG.DB.QueryOne(
pg.Scan(&cooperationModeId),
"INSERT INTO cooperation_modes (cooperation_mode_id, cooperation_mode_number, cooperation_mode_name, status, org, company, remarks, operator, operate_time, updated_at, deleted_at, created_at) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING cooperation_mode_id",
"testCooperationModeId", "testCooperationModeNumber", "testCooperationModeName", "testStatus", "testOrg", "testCompany", "testRemarks", "testOperator", "testOperateTime", "testUpdatedAt", "testDeletedAt", "testCreatedAt")
Expect(err).NotTo(HaveOccurred())
})
Describe("提交数据更新共创模式服务", func() {
Context("提交正确的共创模式实体数据", func() {
It("返回更新后的共创模式实体数据", func() {
httpExpect := httpexpect.New(GinkgoT(), server.URL)
body := map[string]interface{}{
"cooperationModeName": "string",
"cooperationModeNumber": "string",
"remarks": "string",
"companyId": "int64",
"orgId": "int64",
"userId": "int64",
}
httpExpect.PUT("/cooperation-modes/{cooperationModeId}").
WithJSON(body).
Expect().
Status(http.StatusOK).
JSON().
Object().
ContainsKey("code").ValueEqual("code", 0).
ContainsKey("msg").ValueEqual("msg", "ok").
ContainsKey("data").Value("data").Object().
ContainsKey("cooperationModeId").ValueEqual("cooperationModeId", cooperationModeId)
})
})
})
AfterEach(func() {
_, err := pG.DB.Exec("DELETE FROM cooperation_modes WHERE true")
Expect(err).NotTo(HaveOccurred())
})
})
... ...