作者 陈志颖

feat:开发共创模式功能

正在显示 391 个修改的文件 包含 1386 行增加5151 行删除
  1 +apiVersion: v1
  2 +kind: Service
  3 +metadata:
  4 + name: allied-creation-cooperation
  5 + namespace: <replace-your-k8s-namespace>
  6 + labels:
  7 + k8s-app: allied-creation-cooperation
  8 +spec:
  9 + ports:
  10 + - name: "http"
  11 + port: 80
  12 + targetPort: 8082
  13 + selector:
  14 + k8s-app: allied-creation-cooperation
  15 +---
  16 +apiVersion: extensions/v1beta1
  17 +kind: Deployment
  18 +metadata:
  19 + name: allied-creation-cooperation
  20 + namespace: <replace-your-k8s-namespace>
  21 + labels:
  22 + k8s-app: allied-creation-cooperation
  23 +spec:
  24 + replicas: 1
  25 + template:
  26 + metadata:
  27 + labels:
  28 + k8s-app: allied-creation-cooperation
  29 + spec:
  30 + affinity:
  31 + nodeAffinity:
  32 + preferredDuringSchedulingIgnoredDuringExecution:
  33 + - preference: {}
  34 + weight: 100
  35 + requiredDuringSchedulingIgnoredDuringExecution:
  36 + nodeSelectorTerms:
  37 + - matchExpressions:
  38 + - key: kubernetes.io/hostname
  39 + operator: In
  40 + values:
  41 + - cn-hangzhou.i-bp1djh1xn7taumbue1ze
  42 + - cn-hangzhou.i-bp1djh1xn7taumbue1zd
  43 + - cn-hangzhou.i-bp1euf5u1ph9kbhtndhb
  44 + - cn-hangzhou.i-bp1hyp5oips9cdwxxgxy
  45 + containers:
  46 + - name: allied-creation-cooperation
  47 + image: 192.168.0.243:5000/mmm/allied-creation-cooperation:dev
  48 + imagePullPolicy: Always
  49 + ports:
  50 + - containerPort: 8082
  51 + volumeMounts:
  52 + - mountPath: /opt/logs
  53 + name: accesslogs
  54 + env:
  55 + - name: LOG_LEVEL
  56 + value: "debug"
  57 + - name: ERROR_BASE_CODE
  58 + value: "1"
  59 + - name: ERROR_BASE_CODE_MULTIPLE
  60 + value: "1000"
  61 + volumes:
  62 + - name: accesslogs
  63 + emptyDir: {}
  1 +#!/bin/bash
  2 +export PATH=/root/local/bin:$PATH
  3 +kubectl -n <replace-your-k8s-namespace> get pods | grep -q allied-creation-cooperation
  4 +if [ "$?" == "1" ];then
  5 + kubectl create -f /tmp/dev/allied-creation-cooperation/allied-creation-cooperation.yaml --record
  6 + kubectl -n <replace-your-k8s-namespace> get svc | grep -q allied-creation-cooperation
  7 + if [ "$?" == "0" ];then
  8 + echo "allied-creation-cooperation service install success!"
  9 + else
  10 + echo "allied-creation-cooperation service install fail!"
  11 + fi
  12 + kubectl -n <replace-your-k8s-namespace> get pods | grep -q allied-creation-cooperation
  13 + if [ "$?" == "0" ];then
  14 + echo "allied-creation-cooperation deployment install success!"
  15 + else
  16 + echo "allied-creation-cooperation deployment install fail!"
  17 + fi
  18 +else
  19 + kubectl delete -f /tmp/dev/allied-creation-cooperation/allied-creation-cooperation.yaml
  20 + kubectl -n <replace-your-k8s-namespace> get svc | grep -q allied-creation-cooperation
  21 + while [ "$?" == "0" ]
  22 + do
  23 + kubectl -n <replace-your-k8s-namespace> get svc | grep -q allied-creation-cooperation
  24 + done
  25 + kubectl -n <replace-your-k8s-namespace> get pods | grep -q allied-creation-cooperation
  26 + while [ "$?" == "0" ]
  27 + do
  28 + kubectl -n <replace-your-k8s-namespace> get pods | grep -q allied-creation-cooperation
  29 + done
  30 + kubectl create -f /tmp/dev/allied-creation-cooperation/allied-creation-cooperation.yaml --record
  31 + kubectl -n <replace-your-k8s-namespace> get svc | grep -q allied-creation-cooperation
  32 + if [ "$?" == "0" ];then
  33 + echo "allied-creation-cooperation service update success!"
  34 + else
  35 + echo "allied-creation-cooperation service update fail!"
  36 + fi
  37 + kubectl -n <replace-your-k8s-namespace> get pods | grep -q allied-creation-cooperation
  38 + if [ "$?" == "0" ];then
  39 + echo "allied-creation-cooperation deployment update success!"
  40 + else
  41 + echo "allied-creation-cooperation deployment update fail!"
  42 + fi
  43 +fi
  1 +apiVersion: v1
  2 +kind: Service
  3 +metadata:
  4 + name: allied-creation-cooperation
  5 + namespace: <replace-your-k8s-namespace>
  6 + labels:
  7 + k8s-app: allied-creation-cooperation
  8 +spec:
  9 + ports:
  10 + - name: "http"
  11 + port: 80
  12 + targetPort: 8082
  13 + selector:
  14 + k8s-app: allied-creation-cooperation
  15 +---
  16 +apiVersion: extensions/v1beta1
  17 +kind: Deployment
  18 +metadata:
  19 + name: allied-creation-cooperation
  20 + namespace: <replace-your-k8s-namespace>
  21 + labels:
  22 + k8s-app: allied-creation-cooperation
  23 +spec:
  24 + replicas: 1
  25 + template:
  26 + metadata:
  27 + labels:
  28 + k8s-app: allied-creation-cooperation
  29 + spec:
  30 + affinity:
  31 + nodeAffinity:
  32 + preferredDuringSchedulingIgnoredDuringExecution:
  33 + - preference: {}
  34 + weight: 100
  35 + requiredDuringSchedulingIgnoredDuringExecution:
  36 + nodeSelectorTerms:
  37 + - matchExpressions:
  38 + - key: kubernetes.io/hostname
  39 + operator: In
  40 + values:
  41 + - cn-hangzhou.i-bp1djh1xn7taumbue1ze
  42 + - cn-hangzhou.i-bp1djh1xn7taumbue1zd
  43 + - cn-hangzhou.i-bp1euf5u1ph9kbhtndhb
  44 + - cn-hangzhou.i-bp1hyp5oips9cdwxxgxy
  45 + containers:
  46 + - name: allied-creation-cooperation
  47 + image: 192.168.0.243:5000/mmm/allied-creation-cooperation:dev
  48 + imagePullPolicy: Always
  49 + ports:
  50 + - containerPort: 8082
  51 + volumeMounts:
  52 + - mountPath: /opt/logs
  53 + name: accesslogs
  54 + env:
  55 + - name: LOG_LEVEL
  56 + value: "debug"
  57 + - name: ERROR_BASE_CODE
  58 + value: "1"
  59 + - name: ERROR_BASE_CODE_MULTIPLE
  60 + value: "1000"
  61 + volumes:
  62 + - name: accesslogs
  63 + emptyDir: {}
  1 +#!/bin/bash
  2 +export PATH=/root/local/bin:$PATH
  3 +kubectl -n <replace-your-k8s-namespace> get pods | grep -q allied-creation-cooperation
  4 +if [ "$?" == "1" ];then
  5 + kubectl create -f /tmp/prd/allied-creation-cooperation/allied-creation-cooperation.yaml --record
  6 + kubectl -n <replace-your-k8s-namespace> get svc | grep -q allied-creation-cooperation
  7 + if [ "$?" == "0" ];then
  8 + echo "allied-creation-cooperation service install success!"
  9 + else
  10 + echo "allied-creation-cooperation service install fail!"
  11 + fi
  12 + kubectl -n <replace-your-k8s-namespace> get pods | grep -q allied-creation-cooperation
  13 + if [ "$?" == "0" ];then
  14 + echo "allied-creation-cooperation deployment install success!"
  15 + else
  16 + echo "allied-creation-cooperation deployment install fail!"
  17 + fi
  18 +else
  19 + kubectl delete -f /tmp/prd/allied-creation-cooperation/allied-creation-cooperation.yaml
  20 + kubectl -n <replace-your-k8s-namespace> get svc | grep -q allied-creation-cooperation
  21 + while [ "$?" == "0" ]
  22 + do
  23 + kubectl -n <replace-your-k8s-namespace> get svc | grep -q allied-creation-cooperation
  24 + done
  25 + kubectl -n <replace-your-k8s-namespace> get pods | grep -q allied-creation-cooperation
  26 + while [ "$?" == "0" ]
  27 + do
  28 + kubectl -n <replace-your-k8s-namespace> get pods | grep -q allied-creation-cooperation
  29 + done
  30 + kubectl create -f /tmp/prd/allied-creation-cooperation/allied-creation-cooperation.yaml --record
  31 + kubectl -n <replace-your-k8s-namespace> get svc | grep -q allied-creation-cooperation
  32 + if [ "$?" == "0" ];then
  33 + echo "allied-creation-cooperation service update success!"
  34 + else
  35 + echo "allied-creation-cooperation service update fail!"
  36 + fi
  37 + kubectl -n <replace-your-k8s-namespace> get pods | grep -q allied-creation-cooperation
  38 + if [ "$?" == "0" ];then
  39 + echo "allied-creation-cooperation deployment update success!"
  40 + else
  41 + echo "allied-creation-cooperation deployment update fail!"
  42 + fi
  43 +fi
1 -version: v1  
2 -kind: HttpApi  
3 -metadata:  
4 - service: contractUndertakerFeedback  
5 - path: /contract-undertaker-feedbacks  
6 - endpoints:  
7 - - method: createContractUndertakerFeedback  
8 - route:  
9 - post: /  
10 - - method: updateContractUndertakerFeedback  
11 - route:  
12 - put: /{contractUndertakerFeedbackId}  
13 - - method: getContractUndertakerFeedback  
14 - route:  
15 - get: /{contractUndertakerFeedbackId}  
16 - - method: removeContractUndertakerFeedback  
17 - route:  
18 - delete: /{contractUndertakerFeedbackId}  
19 - - method: searchContractUndertakerFeedback  
20 - route:  
21 - post: /search  
22 - - method: listContractUndertakerFeedback  
23 - route:  
24 - get: /  
25 - params:  
26 - - name: offset  
27 - - name: limit  
1 -version: v1  
2 -kind: HttpApi  
3 -metadata:  
4 - service: cooperationApplication  
5 - path: /cooperation-applications  
6 - endpoints:  
7 - - method: applyForCooperation  
8 - route:  
9 - post: /apply-for-cooperation  
10 - - method: agreeCooperationApplication  
11 - route:  
12 - post: /agree-cooperation-application  
13 - - method: rejectCooperationApplication  
14 - route:  
15 - post: /reject-cooperation-application  
16 - - method: createCooperationApplication  
17 - route:  
18 - post: /  
19 - - method: updateCooperationApplication  
20 - route:  
21 - put: /{cooperationApplicationId}  
22 - - method: getCooperationApplication  
23 - route:  
24 - get: /{cooperationApplicationId}  
25 - - method: removeCooperationApplication  
26 - route:  
27 - delete: /{cooperationApplicationId}  
28 - - method: searchCooperationApplication  
29 - route:  
30 - post: /search  
31 - - method: listCooperationApplication  
32 - route:  
33 - get: /  
34 - params:  
35 - - name: offset  
36 - - name: limit  
1 -version: v1  
2 -kind: HttpApi  
3 -metadata:  
4 - service: cooperationContractChangeLog  
5 - path: /cooperation-contract-change-logs  
6 - endpoints:  
7 - - method: createCooperationContractChangeLog  
8 - route:  
9 - post: /  
10 - - method: updateCooperationContractChangeLog  
11 - route:  
12 - put: /{cooperationContractChangeLogId}  
13 - - method: getCooperationContractChangeLog  
14 - route:  
15 - get: /{cooperationContractChangeLogId}  
16 - - method: removeCooperationContractChangeLog  
17 - route:  
18 - delete: /{cooperationContractChangeLogId}  
19 - - method: listCooperationContractChangeLog  
20 - route:  
21 - get: /  
22 - params:  
23 - - name: offset  
24 - - name: limit  
25 - - method: searchCooperationContractChangeLog  
26 - route:  
27 - post: /search  
1 -version: v1  
2 -kind: HttpApi  
3 -metadata:  
4 - service: cooperationContract  
5 - path: /cooperation-contracts  
6 - endpoints:  
7 - - method: createCooperationContract  
8 - route:  
9 - post: /  
10 - - method: updateCooperationContract  
11 - route:  
12 - put: /{cooperationContractId}  
13 - - method: getCooperationContract  
14 - route:  
15 - get: /{cooperationContractId}  
16 - - method: removeCooperationContract  
17 - route:  
18 - delete: /{cooperationContractId}  
19 - - method: searchCooperationContract  
20 - route:  
21 - post: /search  
22 - - method: searchCooperationContractByUndertaker  
23 - route:  
24 - post: /search-by-undertaker  
25 - - method: listCooperationContract  
26 - route:  
27 - get: /  
28 - params:  
29 - - name: offset  
30 - - name: limit  
1 -version: v1  
2 -kind: HttpApi  
3 -metadata:  
4 - service: cooperationGoodsStatistics  
5 - path: /cooperation-goods-statistics  
6 - endpoints:  
7 - - method: searchCooperationGoodsStatistics  
8 - route:  
9 - post: /statistics  
1 -version: v1  
2 -kind: HttpApi  
3 -metadata:  
4 - service: cooperationModeStatistics  
5 - path: /cooperation-mode-statistics  
6 - endpoints:  
7 - - method: searchCooperationModeStatistics  
8 - route:  
9 - post: /statistics  
1 -version: v1  
2 -kind: HttpApi  
3 -metadata:  
4 - service: cooperationMode  
5 - path: /cooperation-modes  
6 - endpoints:  
7 - - method: createCooperationMode  
8 - route:  
9 - post: /  
10 - - method: updateCooperationMode  
11 - route:  
12 - put: /{cooperationModeId}  
13 - - method: getCooperationMode  
14 - route:  
15 - get: /{cooperationModeId}  
16 - - method: removeCooperationMode  
17 - route:  
18 - delete: /{cooperationModeId}  
19 - - method: searchCooperationMode  
20 - route:  
21 - post: /search  
22 - - method: listCooperationMode  
23 - route:  
24 - get: /  
25 - params:  
26 - - name: offset  
27 - - name: limit  
1 -version: v1  
2 -kind: HttpApi  
3 -metadata:  
4 - service: cooperationPersonStatistics  
5 - path: /cooperation-person-statistics  
6 - endpoints:  
7 - - method: searchCooperationPersonStatistics  
8 - route:  
9 - post: /statistics  
1 -version: v1  
2 -kind: HttpApi  
3 -metadata:  
4 - service: cooperationProject  
5 - path: /cooperation-projects  
6 - endpoints:  
7 - - method: releaseCooperationProject  
8 - route:  
9 - post: /release-cooperation-project  
10 - - method: createCooperationProject  
11 - route:  
12 - post: /  
13 - - method: updateCooperationProject  
14 - route:  
15 - put: /{cooperationProjectId}  
16 - - method: getCooperationProject  
17 - route:  
18 - get: /{cooperationProjectId}  
19 - - method: removeCooperationProject  
20 - route:  
21 - delete: /{cooperationProjectId}  
22 - - method: searchCooperationProject  
23 - route:  
24 - post: /search  
25 - - method: checkUndertaker  
26 - route:  
27 - post: /check  
28 - - method: listCooperationProject  
29 - route:  
30 - get: /  
31 - params:  
32 - - name: offset  
33 - - name: limit  
1 -version: v1  
2 -kind: HttpApi  
3 -metadata:  
4 - service: creditAccount  
5 - path: /credit-accounts  
6 - endpoints:  
7 - - method: createCreditAccount  
8 - route:  
9 - post: /  
10 - - method: updateCreditAccount  
11 - route:  
12 - put: /{creditAccountId}  
13 - - method: getCreditAccount  
14 - route:  
15 - get: /{creditAccountId}  
16 - - method: removeCreditAccount  
17 - route:  
18 - delete: /{creditAccountId}  
19 - - method: searchCreditAccount  
20 - route:  
21 - post: /search  
22 - - method: payCreditAccount  
23 - route:  
24 - post: /pay  
25 - - method: listCreditAccount  
26 - route:  
27 - get: /  
28 - params:  
29 - - name: offset  
30 - - name: limit  
1 -version: v1  
2 -kind: HttpApi  
3 -metadata:  
4 - service: currentMonthDividendsStatistics  
5 - path: /current-month-dividends-statistics  
6 - endpoints:  
7 - - method: searchCurrentMonthDividendsStatistics  
8 - route:  
9 - post: /statistics  
1 -version: v1  
2 -kind: HttpApi  
3 -metadata:  
4 - service: dividendsEstimate  
5 - path: /dividends-estimates  
6 - endpoints:  
7 - - method: createDividendsEstimate  
8 - route:  
9 - post: /  
10 - - method: updateDividendsEstimate  
11 - route:  
12 - put: /{dividendsEstimateId}  
13 - - method: getDividendsEstimate  
14 - route:  
15 - get: /{dividendsEstimateId}  
16 - - method: removeDividendsEstimate  
17 - route:  
18 - delete: /{dividendsEstimateId}  
19 - - method: cancelDividendsEstimate  
20 - route:  
21 - post: /{dividendsEstimateId}/cancel  
22 - - method: searchDividendsEstimate  
23 - route:  
24 - post: /search  
25 - - method: estimateDividendsIncentives  
26 - route:  
27 - post: /estimate-dividends-incentives  
28 - - method: estimateMoneyIncentives  
29 - route:  
30 - post: /estimate-money-incentives  
31 - - method: listMoneyIncentives  
32 - route:  
33 - get: /list-money-incentives  
34 - - method: searchMoneyIncentives  
35 - route:  
36 - post: /search-money-incentives  
37 - - method: listDividendsIncentives  
38 - route:  
39 - get: /list-dividends-incentives  
40 - - method: searchDividendsIncentives  
41 - route:  
42 - post: /search-dividends-incentives  
43 - - method: listDividendsEstimate  
44 - route:  
45 - get: /  
46 - params:  
47 - - name: offset  
48 - - name: limit  
1 -version: v1  
2 -kind: HttpApi  
3 -metadata:  
4 - service: dividendsOrder  
5 - path: /dividends-orders  
6 - endpoints:  
7 - - method: createDividendsOrder  
8 - route:  
9 - post: /  
10 - - method: updateDividendsOrder  
11 - route:  
12 - put: /{dividendsOrderId}  
13 - - method: getDividendsOrder  
14 - route:  
15 - get: /{dividendsOrderId}  
16 - - method: removeDividendsOrder  
17 - route:  
18 - delete: /{dividendsOrderId}  
19 - - method: searchDividendsOrder  
20 - route:  
21 - post: /search  
22 - - method: listDividendsOrders  
23 - route:  
24 - get: /  
25 - params:  
26 - - name: offset  
27 - - name: limit  
1 -version: v1  
2 -kind: HttpApi  
3 -metadata:  
4 - service: dividendsReturnedOrder  
5 - path: /dividends-returned-orders  
6 - endpoints:  
7 - - method: createDividendsReturnedOrder  
8 - route:  
9 - post: /  
10 - - method: updateDividendsReturnedOrder  
11 - route:  
12 - put: /{dividendsReturnedOrderId}  
13 - - method: getDividendsReturnedOrder  
14 - route:  
15 - get: /{dividendsReturnedOrderId}  
16 - - method: removeDividendsReturnedOrder  
17 - route:  
18 - delete: /{dividendsReturnedOrderId}  
19 - - method: searchDividendsReturnedOrder  
20 - route:  
21 - post: /search  
22 - - method: importDividendsReturnedOrder  
23 - route:  
24 - post: /import  
25 - - method: listDividendsReturnedOrder  
26 - route:  
27 - get: /  
28 - params:  
29 - - name: offset  
30 - - name: limit  
1 -version: v1  
2 -kind: HttpApi  
3 -metadata:  
4 - service: projectOverviewStatistics  
5 - path: /project-overview-statistics  
6 - endpoints:  
7 - - method: searchProjectOverviewStatistics  
8 - route:  
9 - post: /statistics  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: rank  
5 - description: 排名  
6 - type:  
7 - primitive: int32  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: rankAmount  
5 - description: 排名金额  
6 - type:  
7 - primitive: float64  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: fileSize  
5 - description: 附件文件大小  
6 - type:  
7 - primitive: int64  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: fileType  
5 - description: 附件文件类型,jpg,pdf  
6 - type:  
7 - primitive: string  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: name  
5 - description: 附件名称  
6 - type:  
7 - primitive: string  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: url  
5 - description: 附件地址  
6 - type:  
7 - primitive: string  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: count  
5 - description: 匹配数目  
6 - type:  
7 - primitive: int64  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: createdAt  
5 - description: 创建时间  
6 - type:  
7 - primitive: datetime  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: deletedAt  
5 - description: 删除时间  
6 - type:  
7 - primitive: datetime  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: limit  
5 - description: 查询限制  
6 - type:  
7 - primitive: int  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: offset  
5 - description: 查询偏离量  
6 - type:  
7 - primitive: int  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: operateTime  
5 - description: 操作时间  
6 - type:  
7 - primitive: datetime  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: operator  
5 - description: 操作人  
6 - type:  
7 - schema: user  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: pageNumber  
5 - description: 页面大小  
6 - type:  
7 - primitive: int32  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: pageSize  
5 - description: 页面大小  
6 - type:  
7 - primitive: int32  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: remarks  
5 - description: 备注  
6 - type:  
7 - primitive: string  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: status  
5 - description: 状态  
6 - type:  
7 - primitive: int32  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: updatedAt  
5 - description: 更新时间  
6 - type:  
7 - primitive: datetime  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: userInfo  
5 - description: 冗余字段,jsonb格式,不限制存放内容  
6 - type:  
7 - schema: userInfo  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: companyId  
5 - description: 公司ID,通过集成REST上下文获取  
6 - type:  
7 - primitive: int64  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: companyLogo  
5 - description: 公司logo  
6 - type:  
7 - primitive: string  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: companyName  
5 - description: 公司名称  
6 - type:  
7 - primitive: string  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: contractUndertaker  
5 - description: 共创合约承接人  
6 - type:  
7 - schema: user  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: feedbackAttachment  
5 - description: 合约承接方反馈内容附件  
6 - type:  
7 - array: attachment  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: feedbackContent  
5 - description: 合约承接方反馈内容  
6 - type:  
7 - primitive: string  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: feedbackId  
5 - description: 合约承接方反馈记录ID  
6 - type:  
7 - primitive: int64  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: cooperationApplicationApplicant  
5 - description: 共创申请人  
6 - type:  
7 - schema: user  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: cooperationApplicationAttachment  
5 - description: 共创申请描述附件  
6 - type:  
7 - array: attachment  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: cooperationApplicationDescription  
5 - description: 共创申请描述  
6 - type:  
7 - primitive: string  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: cooperationApplicationId  
5 - description: 共创申请ID  
6 - type:  
7 - primitive: int64  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: cooperationApplicationStatus  
5 - description: 共创申请审核状态,1待审核,2已同意,3已拒绝  
6 - type:  
7 - primitive: int32  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: cooperationApplicationVerifier  
5 - description: 共创申请审核人  
6 - type:  
7 - schema: user  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: cooperationApplicationVerifyDescription  
5 - description: 共创申请审核描述  
6 - type:  
7 - primitive: string  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: cooperationApplicationVerifyTime  
5 - description: 共创申请审核时间  
6 - type:  
7 - primitive: datetime  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: cooperationApplyTime  
5 - description: 共创申请时间  
6 - type:  
7 - primitive: datetime  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: cooperationProject  
5 - description: 共创项目  
6 - type:  
7 - schema: cooperationProject  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: cooperationContractDescription  
5 - description: 共创合约描述  
6 - type:  
7 - primitive: string  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: cooperationContractDividendsIncentivesRules  
5 - description: 共创合约激励规则列表  
6 - type:  
7 - array: string  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: cooperationContractId  
5 - description: 共创合约ID  
6 - type:  
7 - primitive: int64  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: cooperationContractMoneyIncentivesRules  
5 - description: 共创合约金额激励规则列表  
6 - type:  
7 - array: string  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: cooperationContractName  
5 - description: 共创合约名称  
6 - type:  
7 - primitive: string  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: cooperationContractNumber  
5 - description: 共创合约编号  
6 - type:  
7 - primitive: string  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: cooperationContractReferrer  
5 - description: 合约推荐人  
6 - type:  
7 - schema: user  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: cooperationContractRelevants  
5 - description: 共创合约相关人  
6 - type:  
7 - array: user  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: cooperationContractSalesman  
5 - description: 共创合约业务员  
6 - type:  
7 - schema: user  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: cooperationContractSponsor  
5 - description: 共创合约发起人  
6 - type:  
7 - schema: user  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: cooperationContractUndertakerType  
5 - description: 共创合约承接对象,1员工,2共创用户,3公开  
6 - type:  
7 - array: int32  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: cooperationContractUndertakers  
5 - description: 共创合约承接人列表  
6 - type:  
7 - array: undertaker  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: cooperationMode  
5 - description: 共创模式  
6 - type:  
7 - schema: cooperationMode  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: cooperationContractChangeLogId  
5 - description: 合约变更记录ID  
6 - type:  
7 - primitive: int64  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: incentivesRule  
5 - description: 激励规则  
6 - type:  
7 - primitive: string  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: incentivesRuleDetail  
5 - description: 激励规则明细  
6 - type:  
7 - primitive: string  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: operationType  
5 - description: 合约变更操作类型,1编辑、2暂停、3恢复  
6 - type:  
7 - primitive: int32  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: undertakers  
5 - description: 承接人  
6 - type:  
7 - primitive: string  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: cooperationModeId  
5 - description: 共创模式ID  
6 - type:  
7 - primitive: int64  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: cooperationModeName  
5 - description: 共创模式名称  
6 - type:  
7 - primitive: string  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: cooperationModeNumber  
5 - description: 共创模式编码,手动输入,唯一确定  
6 - type:  
7 - primitive: string  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: cooperationProjectDescription  
5 - description: 共创项目描述  
6 - type:  
7 - primitive: string  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: cooperationProjectId  
5 - description: 共创项目ID  
6 - type:  
7 - primitive: int64  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: cooperationProjectName  
5 - description: 共创项目名称  
6 - type:  
7 - primitive: string  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: cooperationProjectNumber  
5 - description: 共创项目编号,自生成,生成规则:XM+6位年月日+#+3位流水,例XM210601#001  
6 - type:  
7 - primitive: string  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: cooperationProjectPublishTime  
5 - description: 共创项目发布时间  
6 - type:  
7 - primitive: datetime  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: cooperationProjectPublisher  
5 - description: 共创项目发布人  
6 - type:  
7 - schema: user  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: cooperationProjectSponsor  
5 - description: 共创项目发起人  
6 - type:  
7 - schema: user  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: cooperationProjectUndertakerType  
5 - description: 共创项目承接对象,1员工,2共创用户,3公开,可以多选  
6 - type:  
7 - array: int32  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: actuallyPaidAmount  
5 - description: 账期结算实付金额  
6 - type:  
7 - primitive: float64  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: creditAccountId  
5 - description: 账期结算单ID  
6 - type:  
7 - primitive: int64  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: creditAccountOrderNum  
5 - description: 账期结算单号  
6 - type:  
7 - primitive: string  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: paymentDocumentAttachment  
5 - description: 支付凭证附件  
6 - type:  
7 - schema: attachment  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: paymentStatus  
5 - description: 共创账期结算支付状态,1待支付,2已支付  
6 - type:  
7 - primitive: int32  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: paymentTime  
5 - description: 共创账期结算支付时间  
6 - type:  
7 - primitive: datetime  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: settlementAmount  
5 - description: 账期结算金额  
6 - type:  
7 - primitive: float64  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: settlementTime  
5 - description: 共创账期结算时间  
6 - type:  
7 - primitive: datetime  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: data  
5 - description: 柱状图数据二维数组  
6 - type:  
7 - array: any  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: dimension  
5 - description: 结算分布坐标值  
6 - type:  
7 - array: any  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: series  
5 - description: 结算分布坐标值  
6 - type:  
7 - array: float64  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: xAxis  
5 - description: 结算分布X轴标签  
6 - type:  
7 - array: string  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: departmentId  
5 - description: 部门ID,通过REST集成上下文获取  
6 - type:  
7 - primitive: int64  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: departmentName  
5 - description: 部门名称  
6 - type:  
7 - primitive: string  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: departmentNumber  
5 - description: 部门编码  
6 - type:  
7 - primitive: string  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: isOrganization  
5 - description: 是否组织机构标识,1为是,2为否,默认为否  
6 - type:  
7 - primitive: boolean  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: dividendsExpense  
5 - description: 分红支出  
6 - type:  
7 - primitive: float64  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: dividendsExpenseByTypes  
5 - description: 具体分红类型支出  
6 - type:  
7 - array: dividendsExpenseByType  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: dividendsAccountStatus  
5 - description: 分红结算状态,1待结算,2已结算  
6 - type:  
7 - primitive: int32  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: dividendsAmount  
5 - description: 分红金额  
6 - type:  
7 - primitive: float64  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: dividendsEstimateId  
5 - description: 承接人分红预算记录ID  
6 - type:  
7 - primitive: int64  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: dividendsEstimateOrderNumber  
5 - description: 承接人分红预算单号  
6 - type:  
7 - primitive: string  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: dividendsEstimateTime  
5 - description: 分红预算时间  
6 - type:  
7 - primitive: datetime  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: dividendsParticipateType  
5 - description: 参与分红类型,1承接人,2推荐人,3关联业务员  
6 - type:  
7 - primitive: int32  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: dividendsType  
5 - description: 分红类型,1订单分红,2退货冲销,3金额激励  
6 - type:  
7 - primitive: int32  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: dividendsUser  
5 - description: 分红用户  
6 - type:  
7 - schema: user  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: orderOrReturnedOrderNum  
5 - description: 分红订单号或退货单号  
6 - type:  
7 - primitive: string  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: dividendsExpenseByType  
5 - description: 具体分红类型支出  
6 - type:  
7 - primitive: string  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: dividendsTypeName  
5 - description: 分红类型名称  
6 - type:  
7 - primitive: string  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: accounted  
5 - description: 已结算  
6 - type:  
7 - primitive: float64  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: paid  
5 - description: 已支付  
6 - type:  
7 - primitive: float64  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: toBeAccounted  
5 - description: 待结算  
6 - type:  
7 - primitive: float64  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: dividendsIncentivesAmount  
5 - description: 业绩激励分红金额  
6 - type:  
7 - primitive: float64  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: dividendsIncentivesPercentage  
5 - description: 分红规则激励百分点  
6 - type:  
7 - primitive: float64  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: dividendsIncentivesRuleId  
5 - description: 分红规则ID  
6 - type:  
7 - primitive: int64  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: dividendsIncentivesStage  
5 - description: 分红规则激励阶段,阶段返回时需要转换为中文数字  
6 - type:  
7 - primitive: int64  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: dividendsIncentivesStageEnd  
5 - description: 分红规则激励阶段结束  
6 - type:  
7 - primitive: datetime  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: dividendsIncentivesStageStart  
5 - description: 分红规则激励阶段开始  
6 - type:  
7 - primitive: datetime  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: referrerPercentage  
5 - description: 推荐人抽成比例  
6 - type:  
7 - primitive: float64  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: salesmanPercentage  
5 - description: 业务员抽成比例  
6 - type:  
7 - primitive: float64  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: customerName  
5 - description: 客户名称  
6 - type:  
7 - primitive: string  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: dividendStatus  
5 - description: 分红订单分红状态,1待分红,2已分红,3部分分红  
6 - type:  
7 - primitive: int32  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: dividendTime  
5 - description: 分红订单分红时间  
6 - type:  
7 - primitive: datetime  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: dividendsOrderAmount  
5 - description: 分红订单金额  
6 - type:  
7 - primitive: float64  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: dividendsOrderId  
5 - description: 分红订单ID  
6 - type:  
7 - primitive: int64  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: dividendsOrderNumber  
5 - description: 分红订单号  
6 - type:  
7 - primitive: int64  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: dividendsOriginalOrderNum  
5 - description: 分红订单原单号  
6 - type:  
7 - primitive: string  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: orderSalesman  
5 - description: 订单业务员  
6 - type:  
7 - schema: user  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: orderTime  
5 - description: 订单产生时间  
6 - type:  
7 - primitive: datetime  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: region  
5 - description: 区域  
6 - type:  
7 - schema: regionInfo  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: dividendsReturnedCustomerName  
5 - description: 退货客户名称  
6 - type:  
7 - primitive: string  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: dividendsReturnedDate  
5 - description: 退货日期  
6 - type:  
7 - primitive: datetime  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: dividendsReturnedOrderId  
5 - description: 分红退货单记录ID  
6 - type:  
7 - primitive: string  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: dividendsReturnedOrderNumber  
5 - description: 分红退货单号  
6 - type:  
7 - primitive: string  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: dividendsReturnedOrderRefund  
5 - description: 退货金额  
6 - type:  
7 - primitive: float64  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: originalOrderNum  
5 - description: 来源单号,源单号,订单号  
6 - type:  
7 - primitive: string  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: goodAmount  
5 - description: 共创产品总金额统计  
6 - type:  
7 - primitive: float64  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: goodName  
5 - description: 共创产品名称  
6 - type:  
7 - primitive: string  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: goodRatio  
5 - description: 共创产品在TOP5中的占比统计  
6 - type:  
7 - primitive: float64  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: rank  
5 - description: 共创产品TOP5排名  
6 - type:  
7 - primitive: int32  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: cooperationPeople  
5 - description: 共创人数统计  
6 - type:  
7 - primitive: float64  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: dividendsEstimate  
5 - description: 分红预算统计  
6 - type:  
7 - primitive: float64  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: orderAmount  
5 - description: 订单金额统计  
6 - type:  
7 - primitive: float64  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: cooperationTime  
5 - description: 共创时间  
6 - type:  
7 - primitive: datetime  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: cooperationTypes  
5 - description: 合伙类型,即共创模式  
6 - type:  
7 - array: cooperationMode  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: dividendsDetails  
5 - description: 分红明细  
6 - type:  
7 - schema: dividendsDetails  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: orderDetails  
5 - description: 订单明细  
6 - type:  
7 - schema: orderDetails  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: userName  
5 - description: 共创人员姓名  
6 - type:  
7 - primitive: string  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: creditAccount  
5 - description: 本月账期结算统计  
6 - type:  
7 - primitive: float64  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: dividendsEstimate  
5 - description: 本月分红预算统计  
6 - type:  
7 - primitive: float64  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: orderAmount  
5 - description: 本月订单金额统计  
6 - type:  
7 - primitive: float64  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: annualDividendsExpense  
5 - description: 分红支出-年度分红支出  
6 - type:  
7 - schema: annualDividendsExpense  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: dividendsExpenseDetail  
5 - description: 企业分红支出明细  
6 - type:  
7 - schema: dividendsExpenseDetail  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: quarterDividendsExpense  
5 - description: 分红支出-季度分红支出  
6 - type:  
7 - schema: quarterDividendsExpense  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: totalDividendsExpense  
5 - description: 合约分红-全部分红支出  
6 - type:  
7 - schema: totalDividendsExpense  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: totalExpense  
5 - description: 总支出  
6 - type:  
7 - primitive: float64  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: contractSum  
5 - description: 共创合约总数统计  
6 - type:  
7 - primitive: int64  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: cooperationUserCount  
5 - description: 共创用户数统计  
6 - type:  
7 - primitive: int64  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: projectSum  
5 - description: 共创项目总数统计  
6 - type:  
7 - primitive: int64  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: code  
5 - description: 菜单编码  
6 - type:  
7 - primitive: string  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: moneyIncentivesAmount  
5 - description: 激励金额  
6 - type:  
7 - primitive: float64  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: moneyIcentivesRuleId  
5 - description: 金额激励规则ID  
6 - type:  
7 - primitive: int64  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: moneyIncentivesStage  
5 - description: 金额激励阶段,阶段返回时需要转换为中文数字  
6 - type:  
7 - primitive: int64  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: moneyIncentivesStageEnd  
5 - description: 金额激励阶段有效期结束  
6 - type:  
7 - primitive: datetime  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: moneyIncentivesStageStart  
5 - description: 金额激励阶段有效期开始  
6 - type:  
7 - primitive: datetime  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: moneyIncentivesTime  
5 - description: 金额激励规则时间  
6 - type:  
7 - primitive: datetime  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: orderAmount  
5 - description: 具体成交类型的订单金额  
6 - type:  
7 - primitive: string  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: orderTypeName  
5 - description: 成交订单类型名称  
6 - type:  
7 - primitive: string  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: orderAmount  
5 - description: 成交订单金额  
6 - type:  
7 - primitive: float64  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: orderAmountByTypes  
5 - description: 具体订单类型的金额明细  
6 - type:  
7 - array: orderAmountByType  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: orderGoodAmount  
5 - description: 订单产品金额  
6 - type:  
7 - primitive: float64  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: orderGoodExpense  
5 - description: 订单产品费用  
6 - type:  
7 - primitive: float64  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: orderGoodId  
5 - description: 订单产品  
6 - type:  
7 - primitive: int64  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: orderGoodName  
5 - description: 订单产品名称  
6 - type:  
7 - primitive: string  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: orderGoodPrice  
5 - description: 订单产品单价  
6 - type:  
7 - primitive: float64  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: orderGoodQuantity  
5 - description: 订单产品数量  
6 - type:  
7 - primitive: int64  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: orgId  
5 - description: 组织机构ID  
6 - type:  
7 - primitive: int64  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: orgName  
5 - description: 组织名称  
6 - type:  
7 - primitive: string  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: regionName  
5 - description: 区域名称  
6 - type:  
7 - primitive: string  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: regionNumber  
5 - description: 区域编号  
6 - type:  
7 - primitive: string  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: code  
5 - description: 返回码  
6 - type:  
7 - primitive: int32  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: msg  
5 - description: 返回信息  
6 - type:  
7 - primitive: int32  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: roleId  
5 - description: 角色ID  
6 - type:  
7 - primitive: int64  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: roleName  
5 - description: 角色名称  
6 - type:  
7 - primitive: string  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: projectOverview  
5 - description: 项目概览  
6 - type:  
7 - schema: projectOverview  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: company  
5 - description: 公司  
6 - type:  
7 - schema: company  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: department  
5 - description: 部门  
6 - type:  
7 - schema: department  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: org  
5 - description: 用户所属组织机构  
6 - type:  
7 - schema: org  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: orgs  
5 - description: 关联的组织机构  
6 - type:  
7 - array: org  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: role  
5 - description: 用户角色  
6 - type:  
7 - schema: role  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: userBaseId  
5 - description: 用户基本id  
6 - type:  
7 - primitive: int64  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: userId  
5 - description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员  
6 - type:  
7 - primitive: int64  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: userInfo  
5 - description: 用户信息冗余字段  
6 - type:  
7 - schema: userInfo  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: userType  
5 - description: 用户类型,1员工,2共创用户,3公开  
6 - type:  
7 - primitive: int32  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: userAccount  
5 - description: 用户账号  
6 - type:  
7 - primitive: string  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: userAvatar  
5 - description: 用户头像  
6 - type:  
7 - primitive: string  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: userEmail  
5 - description: 用户邮箱  
6 - type:  
7 - primitive: string  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: userName  
5 - description: 用户姓名  
6 - type:  
7 - primitive: string  
1 -version: v1  
2 -kind: Attribute  
3 -metadata:  
4 - name: userPhone  
5 - description: 用户手机号  
6 - type:  
7 - primitive: string  
1 -version: v1  
2 -kind: Project  
3 -metadata:  
4 - name: allied-creation-cooperation  
5 - description: 天联共创  
6 - version: 1.0.0  
7 - repository: gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation  
8 - contact:  
9 - name: 陈志颖  
10 - email: steve.d.chan@qq.com  
1 -version: v1  
2 -kind: Schema  
3 -metadata:  
4 - name: annualDividendsExpense  
5 - description: 企业年度分红总支出  
6 - attributes:  
7 - - ref: totalExpense  
8 - required: true  
9 - - ref: dividendsExpenseDetail  
10 - required: true  
1 -version: v1  
2 -kind: Schema  
3 -metadata:  
4 - name: attachment  
5 - description: 附件对象  
6 - attributes:  
7 - - ref: fileType  
8 - required: true  
9 - - ref: name  
10 - required: true  
11 - - ref: url  
12 - required: true  
13 - - ref: fileSize  
14 - required: true  
1 -version: v1  
2 -kind: Schema  
3 -metadata:  
4 - name: company  
5 - description: 公司值对象  
6 - attributes:  
7 - - ref: companyId  
8 - required: true  
9 - - ref: companyLogo  
10 - required: true  
11 - - ref: companyName  
12 - required: true  
1 -version: v1  
2 -kind: Schema  
3 -metadata:  
4 - name: contractUndertakerFeedback  
5 - description: 承接人反馈信息  
6 - attributes:  
7 - - ref: feedbackId  
8 - required: true  
9 - - ref: feedbackAttachment  
10 - required: true  
11 - - ref: feedbackContent  
12 - required: true  
13 - - ref: cooperationContractNumber  
14 - required: true  
15 - - ref: contractUndertaker  
16 - required: true  
17 - - ref: cooperationMode  
18 - required: true  
19 - - ref: org  
20 - description: 数据所属组织机构  
21 - required: true  
22 - - ref: company  
23 - required: true  
24 - - ref: updatedAt  
25 - required: true  
26 - - ref: deletedAt  
27 - required: true  
28 - - ref: createdAt  
29 - description: 反馈创建时间,同时也作为反馈时间  
30 - required: true  
1 -version: v1  
2 -kind: Schema  
3 -metadata:  
4 - name: cooperationApplication  
5 - description: 共创申请实体  
6 - attributes:  
7 - - ref: cooperationApplicationId  
8 - required: true  
9 - - ref: cooperationApplicationApplicant  
10 - required: true  
11 - - ref: cooperationApplicationAttachment  
12 - required: true  
13 - - ref: cooperationApplicationDescription  
14 - required: true  
15 - - ref: cooperationApplicationStatus  
16 - required: true  
17 - - ref: cooperationApplicationVerifier  
18 - required: true  
19 - - ref: cooperationApplicationVerifyDescription  
20 - required: true  
21 - - ref: cooperationApplicationVerifyTime  
22 - required: true  
23 - - ref: cooperationApplyTime  
24 - required: true  
25 - - ref: cooperationProject  
26 - description: 共创项目编号  
27 - required: true  
28 - - ref: org  
29 - description: 数据所属组织机构  
30 - required: true  
31 - - ref: company  
32 - required: true  
33 - - ref: createdAt  
34 - required: true  
35 - - ref: deletedAt  
36 - required: true  
37 - - ref: updatedAt  
38 - required: true  
1 -version: v1  
2 -kind: Schema  
3 -metadata:  
4 - name: cooperationContract  
5 - description: 共创项目合约实体  
6 - attributes:  
7 - - ref: cooperationContractId  
8 - required: true  
9 - - ref: cooperationContractDescription  
10 - required: true  
11 - - ref: cooperationContractName  
12 - required: true  
13 - - ref: cooperationContractNumber  
14 - description: 共创合约编号  
15 - required: true  
16 - - ref: cooperationContractReferrer  
17 - required: true  
18 - - ref: cooperationContractSalesman  
19 - required: true  
20 - - ref: cooperationContractUndertakerType  
21 - required: true  
22 - - ref: cooperationContractSponsor  
23 - required: true  
24 - - ref: cooperationMode  
25 - description: 共创模式或者合伙模式  
26 - required: true  
27 - - ref: status  
28 - description: 合约状态,1启用,2禁用  
29 - required: true  
30 - - ref: org  
31 - description: 数据所属组织机构  
32 - required: true  
33 - - ref: company  
34 - required: true  
35 - - ref: operator  
36 - required: true  
37 - - ref: operateTime  
38 - required: true  
39 - - ref: createdAt  
40 - required: true  
41 - - ref: deletedAt  
42 - required: true  
43 - - ref: updatedAt  
44 - required: true  
1 -version: v1  
2 -kind: Schema  
3 -metadata:  
4 - name: cooperationContractByUndertaker  
5 - description: 根据承接人返回共创项目合约  
6 - attributes:  
7 - - ref: cooperationContractId  
8 - required: true  
9 - - ref: cooperationContractDescription  
10 - required: true  
11 - - ref: cooperationContractNumber  
12 - required: true  
13 - - ref: cooperationContractName  
14 - required: true  
15 - - ref: cooperationMode  
16 - required: true  
17 - - ref: cooperationContractSponsor  
18 - required: true  
19 - - ref: status  
20 - required: true  
21 - - ref: contractUndertaker  
22 - required: true  
1 -version: v1  
2 -kind: Schema  
3 -metadata:  
4 - name: cooperationContractChangeLog  
5 - description: 共创合约变更日志  
6 - attributes:  
7 - - ref: incentivesRule  
8 - required: true  
9 - - ref: incentivesRuleDetail  
10 - required: true  
11 - - ref: operationType  
12 - required: true  
13 - - ref: cooperationContractNumber  
14 - required: true  
15 - - ref: undertakers  
16 - required: true  
17 - - ref: company  
18 - required: true  
19 - - ref: operator  
20 - required: true  
21 - - ref: updatedAt  
22 - required: true  
23 - - ref: deletedAt  
24 - required: true  
25 - - ref: createdAt  
26 - required: true  
1 -version: v1  
2 -kind: Schema  
3 -metadata:  
4 - name: cooperationGoodsStatistics  
5 - description: 共创产品统计  
6 - attributes:  
7 - - ref: goodAmount  
8 - required: true  
9 - - ref: goodName  
10 - required: true  
11 - - ref: goodRatio  
12 - required: true  
13 - - ref: rank  
14 - required: true  
1 -version: v1  
2 -kind: Schema  
3 -metadata:  
4 - name: cooperationMode  
5 - description: 共创模式实体  
6 - attributes:  
7 - - ref: cooperationModeId  
8 - required: true  
9 - - ref: cooperationModeNumber  
10 - description: 共创模式编码,唯一确定  
11 - required: true  
12 - - ref: cooperationModeName  
13 - description: 模式名称,唯一确定  
14 - required: true  
15 - - ref: status  
16 - description: 共创模式状态,1启用,2禁用  
17 - required: true  
18 - - ref: org  
19 - description: 数据所属组织机构  
20 - required: true  
21 - - ref: company  
22 - required: true  
23 - - ref: remarks  
24 - required: true  
25 - - ref: operator  
26 - required: true  
27 - - ref: operateTime  
28 - required: true  
29 - - ref: updatedAt  
30 - required: true  
31 - - ref: deletedAt  
32 - required: true  
33 - - ref: createdAt  
34 - required: true  
1 -version: v1  
2 -kind: Schema  
3 -metadata:  
4 - name: cooperationModeStatistics  
5 - description: 共创模式统计  
6 - attributes:  
7 - - ref: cooperationPeople  
8 - required: true  
9 - - ref: dividendsEstimate  
10 - required: true  
11 - - ref: orderAmount  
12 - required: true  
1 -version: v1  
2 -kind: Schema  
3 -metadata:  
4 - name: cooperationPersonStatistics  
5 - description: 共创人员信息统计  
6 - attributes:  
7 - - ref: cooperationTime  
8 - required: true  
9 - - ref: cooperationTypes  
10 - required: true  
11 - - ref: dividendsDetails  
12 - required: true  
13 - - ref: orderDetails  
14 - required: true  
15 - - ref: userName  
16 - required: true  
1 -version: v1  
2 -kind: Schema  
3 -metadata:  
4 - name: cooperationProject  
5 - description: 共创项目实体  
6 - attributes:  
7 - - ref: cooperationProjectId  
8 - required: true  
9 - - ref: cooperationProjectNumber  
10 - description: 共创项目编号  
11 - required: true  
12 - - ref: cooperationProjectDescription  
13 - required: true  
14 - - ref: cooperationProjectName  
15 - required: true  
16 - - ref: cooperationProjectPublishTime  
17 - required: true  
18 - - ref: cooperationProjectPublisher  
19 - required: true  
20 - - ref: cooperationProjectSponsor  
21 - required: true  
22 - - ref: cooperationProjectUndertakerType  
23 - required: true  
24 - - ref: org  
25 - description: 数据所属组织机构  
26 - required: true  
27 - - ref: company  
28 - required: true  
29 - - ref: operator  
30 - required: true  
31 - - ref: operateTime  
32 - required: true  
33 - - ref: status  
34 - description: 共创项目状态,1招标中,2结束  
35 - required: true  
36 - - ref: updatedAt  
37 - required: true  
38 - - ref: deletedAt  
39 - required: true  
40 - - ref: createdAt  
41 - required: true  
1 -version: v1  
2 -kind: Schema  
3 -metadata:  
4 - name: creditAccount  
5 - description: 账期结算单实体  
6 - attributes:  
7 - - ref: creditAccountId  
8 - required: true  
9 - - ref: actuallyPaidAmount  
10 - required: true  
11 - - ref: creditAccountOrderNum  
12 - required: true  
13 - - ref: paymentStatus  
14 - description: 账期结算支付状态,1待支付,2已支付  
15 - required: true  
16 - - ref: paymentTime  
17 - required: true  
18 - - ref: settlementAmount  
19 - required: true  
20 - - ref: settlementTime  
21 - required: true  
22 - - ref: cooperationContractNumber  
23 - required: true  
24 - - name: participator  
25 - description: 参与人uid,包括承接人、推荐人、关联业务员  
26 - required: true  
27 - type:  
28 - array: int64  
29 - - ref: paymentDocumentAttachment  
30 - description: 支付凭证附件  
31 - required: true  
32 - - ref: org  
33 - description: 数据所属组织机构  
34 - required: true  
35 - - ref: company  
36 - required: true  
37 - - ref: operator  
38 - required: true  
39 - - ref: operateTime  
40 - required: true  
41 - - ref: createdAt  
42 - required: true  
43 - - ref: deletedAt  
44 - required: true  
45 - - ref: updatedAt  
46 - required: true  
1 -version: v1  
2 -kind: Schema  
3 -metadata:  
4 - name: creditAccountDistribution  
5 - description: 账期结算分布(柱状图)  
6 - attributes:  
7 - - ref: series  
8 - required: true  
9 - - ref: xAxis  
10 - required: true  
1 -version: v1  
2 -kind: Schema  
3 -metadata:  
4 - name: creditAccountRanking  
5 - description: 账期结算单排名  
6 - attributes:  
7 - - ref: rank  
8 - required: true  
9 - - ref: rankAmount  
10 - required: true  
11 - - ref: userName  
12 - required: true  
1 -version: v1  
2 -kind: Schema  
3 -metadata:  
4 - name: currentMonthDividendsStatistics  
5 - description: 本月分红统计  
6 - attributes:  
7 - - ref: creditAccount  
8 - required: true  
9 - - ref: dividendsEstimate  
10 - required: true  
11 - - ref: orderAmount  
12 - required: true  
1 -version: v1  
2 -kind: Schema  
3 -metadata:  
4 - name: department  
5 - description: 部门值对象  
6 - attributes:  
7 - - ref: departmentId  
8 - required: true  
9 - - ref: departmentName  
10 - required: true  
11 - - ref: departmentNumber  
12 - required: true  
13 - - ref: isOrganization  
14 - required: true  
1 -version: v1  
2 -kind: Schema  
3 -metadata:  
4 - name: dividendsDetails  
5 - description: 分红明细  
6 - attributes:  
7 - - ref: dividendsExpense  
8 - required: true  
9 - - ref: dividendsExpenseByTypes  
10 - required: true  
1 -version: v1  
2 -kind: Schema  
3 -metadata:  
4 - name: dividendsEstimate  
5 - description: 分红预算实体  
6 - attributes:  
7 - - ref: dividendsEstimateId  
8 - required: true  
9 - - ref: dividendsAccountStatus  
10 - description: 分红结算状态  
11 - required: true  
12 - - ref: dividendsAmount  
13 - required: true  
14 - - ref: dividendsEstimateOrderNumber  
15 - required: true  
16 - - ref: dividendsEstimateTime  
17 - required: true  
18 - - ref: dividendsParticipateType  
19 - required: true  
20 - - ref: dividendsType  
21 - required: true  
22 - - ref: orderOrReturnedOrderNum  
23 - required: true  
24 - - ref: cooperationProjectNumber  
25 - required: true  
26 - - ref: dividendsUser  
27 - required: true  
28 - - ref: org  
29 - description: 数据所属组织机构  
30 - required: true  
31 - - ref: company  
32 - required: true  
33 - - ref: operator  
34 - required: true  
35 - - ref: operateTime  
36 - required: true  
37 - - ref: createdAt  
38 - required: true  
39 - - ref: deletedAt  
40 - required: true  
41 - - ref: updatedAt  
42 - required: true  
1 -version: v1  
2 -kind: Schema  
3 -metadata:  
4 - name: dividendsExpenseByType  
5 - description: 具体分红类型支出  
6 - attributes:  
7 - - ref: dividendsExpenseByType  
8 - required: true  
9 - - ref: dividendsTypeName  
10 - required: true  
1 -version: v1  
2 -kind: Schema  
3 -metadata:  
4 - name: dividendsExpenseDetail  
5 - description: 企业分红支出明细  
6 - attributes:  
7 - - ref: toBeAccounted  
8 - required: true  
9 - - ref: accounted  
10 - required: true  
11 - - ref: paid  
12 - required: true  
1 -version: v1  
2 -kind: Schema  
3 -metadata:  
4 - name: dividendsExpenseStatistics  
5 - description: 企业分红支出统计  
6 - attributes:  
7 - - ref: annualDividendsExpense  
8 - required: true  
9 - - ref: quarterDividendsExpense  
10 - required: true  
11 - - ref: totalDividendsExpense  
12 - required: true  
1 -version: v1  
2 -kind: Schema  
3 -metadata:  
4 - name: dividendsIncentives  
5 - description: 业绩分红DTO  
6 - attributes:  
7 - - ref: cooperationContractNumber  
8 - required: true  
9 - - ref: orderOrReturnedOrderNum  
10 - required: true  
11 - - ref: originalOrderNum  
12 - required: true  
13 - - ref: customerName  
14 - required: true  
15 - - ref: region  
16 - required: true  
17 - - ref: dividendsIncentivesAmount  
18 - required: true  
19 - - ref: orderTime  
20 - description: 订单/退货单日期  
21 - required: true  
1 -version: v1  
2 -kind: Schema  
3 -metadata:  
4 - name: dividendsIncentivesRule  
5 - description: 金额激励规则实体  
6 - attributes:  
7 - - ref: dividendsIncentivesRuleId  
8 - required: true  
9 - - ref: cooperationContractNumber  
10 - description: 关联的项目合约编号  
11 - required: true  
12 - - ref: referrerPercentage  
13 - required: true  
14 - - ref: salesmanPercentage  
15 - required: true  
16 - - ref: dividendsIncentivesPercentage  
17 - required: true  
18 - - ref: dividendsIncentivesStage  
19 - required: true  
20 - - ref: dividendsIncentivesStageEnd  
21 - required: true  
22 - - ref: dividendsIncentivesStageStart  
23 - required: true  
24 - - ref: org  
25 - description: 数据所属组织机构  
26 - required: true  
27 - - ref: company  
28 - required: true  
29 - - ref: updatedAt  
30 - required: true  
31 - - ref: deletedAt  
32 - required: true  
33 - - ref: createdAt  
34 - required: true  
1 -version: v1  
2 -kind: Schema  
3 -metadata:  
4 - name: dividendsIncentivesRules  
5 - description: 金额激励规则DTO  
6 - attributes:  
7 - - ref: referrerPercentage  
8 - required: true  
9 - - ref: salesmanPercentage  
10 - required: true  
11 - - ref: dividendsIncentivesPercentage  
12 - required: true  
13 - - ref: dividendsIncentivesStage  
14 - required: true  
15 - - ref: dividendsIncentivesStageEnd  
16 - required: true  
17 - - ref: dividendsIncentivesStageStart  
18 - required: true  
1 -version: v1  
2 -kind: Schema  
3 -metadata:  
4 - name: dividendsOrder  
5 - description: 分红订单实体  
6 - attributes:  
7 - - ref: dividendsOrderId  
8 - required: true  
9 - - ref: dividendsOrderNumber  
10 - required: true  
11 - - ref: dividendsOriginalOrderNum  
12 - required: true  
13 - - ref: dividendsOrderAmount  
14 - required: true  
15 - - ref: orderSalesman  
16 - required: true  
17 - - ref: orderTime  
18 - required: true  
19 - - ref: dividendTime  
20 - required: true  
21 - - ref: dividendStatus  
22 - required: true  
23 - - ref: region  
24 - required: true  
25 - - ref: customerName  
26 - description: 客户姓名  
27 - required: true  
28 - - ref: org  
29 - description: 数据所属组织机构  
30 - required: true  
31 - - ref: company  
32 - required: true  
33 - - ref: createdAt  
34 - required: true  
35 - - ref: deletedAt  
36 - required: true  
37 - - ref: updatedAt  
38 - required: true  
39 - - ref: operateTime  
40 - required: true  
41 - - ref: operator  
42 - required: true  
1 -version: v1  
2 -kind: Schema  
3 -metadata:  
4 - name: dividendsReturnedOrder  
5 - description: 分红退货单实体  
6 - attributes:  
7 - - ref: dividendsReturnedOrderId  
8 - required: true  
9 - - ref: dividendsReturnedOrderNumber  
10 - description: 分红退货单号  
11 - required: true  
12 - - ref: dividendsReturnedOrderRefund  
13 - required: true  
14 - - ref: originalOrderNum  
15 - description: 源单号(原始订单号)  
16 - required: true  
17 - - ref: dividendsOrderNumber  
18 - description: 关联分红订单号  
19 - required: true  
20 - - ref: dividendsReturnedCustomerName  
21 - description: 退货客户姓名  
22 - required: true  
23 - - ref: dividendsReturnedDate  
24 - required: true  
25 - - ref: region  
26 - description: 退货区域  
27 - required: true  
28 - - ref: remarks  
29 - description: 备注  
30 - required: true  
31 - - ref: dividendStatus  
32 - required: true  
33 - - ref: dividendTime  
34 - required: true  
35 - - ref: org  
36 - description: 数据所属组织机构  
37 - required: true  
38 - - ref: company  
39 - required: true  
40 - - ref: createdAt  
41 - required: true  
42 - - ref: deletedAt  
43 - required: true  
44 - - ref: updatedAt  
45 - required: true  
46 - - ref: operator  
47 - required: true  
48 - - ref: operateTime  
49 - required: true  
1 -version: v1  
2 -kind: Schema  
3 -metadata:  
4 - name: moneyIncentives  
5 - description: 金额激励分红DTO  
6 - attributes:  
7 - - ref: cooperationContractNumber  
8 - required: true  
9 - - ref: cooperationContractName  
10 - required: true  
11 - - ref: cooperationMode  
12 - required: true  
13 - - ref: cooperationContractSponsor  
14 - required: true  
15 - - ref: createdAt  
16 - description: 共创合约建立时间  
17 - required: true  
1 -version: v1  
2 -kind: Schema  
3 -metadata:  
4 - name: moneyIncentivesRule  
5 - description: 金额激励规则实体  
6 - attributes:  
7 - - ref: moneyIncentivesRuleId  
8 - required: true  
9 - - ref: cooperationContractNumber  
10 - description: 关联的共创合约编号  
11 - required: true  
12 - - ref: moneyIncentivesAmount  
13 - required: true  
14 - - ref: moneyIncentivesStage  
15 - required: true  
16 - - ref: moneyIncentivesStageEnd  
17 - required: true  
18 - - ref: moneyIncentivesStageStart  
19 - required: true  
20 - - ref: moneyIncentivesTime  
21 - required: true  
22 - - ref: referrerPercentage  
23 - required: true  
24 - - ref: salesmanPercentage  
25 - required: true  
26 - - ref: org  
27 - description: 数据所属组织机构  
28 - required: true  
29 - - ref: company  
30 - required: true  
31 - - ref: updatedAt  
32 - required: true  
33 - - ref: deletedAt  
34 - required: true  
35 - - ref: createdAt  
36 - required: true  
1 -version: v1  
2 -kind: Schema  
3 -metadata:  
4 - name: moneyIncentivesRules  
5 - description: 金额激励规则DTO  
6 - attributes:  
7 - - ref: moneyIncentivesAmount  
8 - required: true  
9 - - ref: moneyIncentivesStage  
10 - required: true  
11 - - ref: moneyIncentivesStageEnd  
12 - required: true  
13 - - ref: moneyIncentivesStageStart  
14 - required: true  
15 - - ref: referrerPercentage  
16 - required: true  
17 - - ref: salesmanPercentage  
18 - required: true  
1 -version: v1  
2 -kind: Schema  
3 -metadata:  
4 - name: orderAmountByType  
5 - description: 具体成交类型的订单明细  
6 - attributes:  
7 - - ref: orderAmount  
8 - required: true  
9 - - ref: orderTypeName  
10 - required: true  
1 -version: v1  
2 -kind: Schema  
3 -metadata:  
4 - name: orderDetails  
5 - description: 订单明细  
6 - attributes:  
7 - - ref: orderAmount  
8 - required: true  
9 - - ref: orderAmountByTypes  
10 - required: true  
1 -version: v1  
2 -kind: Schema  
3 -metadata:  
4 - name: orderGood  
5 - description: 订单产品领域实体(包括分红订单、分红退货单)  
6 - attributes:  
7 - - ref: orderGoodId  
8 - required: true  
9 - - ref: orderGoodAmount  
10 - required: true  
11 - - ref: orderGoodName  
12 - required: true  
13 - - ref: orderGoodPrice  
14 - required: true  
15 - - ref: orderGoodQuantity  
16 - required: true  
17 - - ref: dividendsOrderNumber  
18 - description: 关联分红订单号  
19 - required: true  
20 - - ref: cooperationContractNumber  
21 - description: 关联的共创合约编号  
22 - required: true  
23 - - ref: orderGoodExpense  
24 - description: 订单产品费用  
25 - required: true  
26 - - ref: createdAt  
27 - required: true  
28 - - ref: deletedAt  
29 - required: true  
30 - - ref: updatedAt  
31 - required: true  
1 -version: v1  
2 -kind: Schema  
3 -metadata:  
4 - name: orderGoods  
5 - description: 订单产品对象DTO  
6 - attributes:  
7 - - ref: orderGoodAmount  
8 - required: true  
9 - - ref: orderGoodName  
10 - required: true  
11 - - ref: orderGoodPrice  
12 - required: true  
13 - - ref: orderGoodQuantity  
14 - required: true  
15 - - ref: dividendsOrderNumber  
16 - description: 关联分红订单号  
17 - required: true  
18 - - ref: cooperationContractNumber  
19 - description: 关联的共创合约编号  
20 - required: true  
21 - - ref: orderGoodExpense  
22 - description: 订单产品费用  
23 - required: true  
24 -  
1 -version: v1  
2 -kind: Schema  
3 -metadata:  
4 - name: org  
5 - description: 组织机构值对象  
6 - attributes:  
7 - - ref: orgId  
8 - required: true  
9 - - ref: orgName  
10 - required: true  
11 - - ref: company  
12 - required: true  
1 -version: v1  
2 -kind: Schema  
3 -metadata:  
4 - name: projectOverviewStatistics  
5 - description: 项目概览统计  
6 - attributes:  
7 - - ref: contractSum  
8 - required: true  
9 - - ref: projectSum  
10 - required: true  
11 - - ref: cooperationUserCount  
12 - required: true  
1 -version: v1  
2 -kind: Schema  
3 -metadata:  
4 - name: quarterDividendsExpense  
5 - description: 企业季度分红支出  
6 - attributes:  
7 - - ref: totalExpense  
8 - required: true  
9 - - ref: dividendsExpenseDetail  
10 - required: true  
1 -version: v1  
2 -kind: Schema  
3 -metadata:  
4 - name: referrer  
5 - description: 推荐人值对象  
6 - attributes:  
7 - - ref: userId  
8 - required: true  
9 - - ref: userBaseId  
10 - required: true  
11 - - ref: role  
12 - required: true  
13 - - ref: orgs  
14 - description: 用户关联的组织机构  
15 - required: true  
16 - - ref: org  
17 - description: 用户所属的组织机构  
18 - required: true  
19 - - ref: department  
20 - description: 用户所属的部门  
21 - required: true  
22 - - ref: company  
23 - required: true  
24 - - ref: userInfo  
25 - required: true  
26 - - ref: userType  
27 - required: true  
1 -version: v1  
2 -kind: Schema  
3 -metadata:  
4 - name: regionInfo  
5 - description: 区域信息值对象  
6 - attributes:  
7 - - ref: regionNumber  
8 - required: true  
9 - - ref: regionName  
10 - required: true  
1 -version: v1  
2 -kind: Schema  
3 -metadata:  
4 - name: relevant  
5 - description: 共创合约相关人值对象  
6 - attributes:  
7 - - ref: userId  
8 - required: true  
9 - - ref: userBaseId  
10 - required: true  
11 - - ref: org  
12 - description: 用户所属的组织机构  
13 - required: true  
14 - - ref: orgs  
15 - description: 用户关联的组织机构  
16 - required: true  
17 - - ref: department  
18 - description: 用户所属的部门  
19 - required: true  
20 - - ref: role  
21 - required: true  
22 - - ref: userInfo  
23 - required: true  
24 - - ref: userType  
25 - required: true  
26 - - ref: status  
27 - required: true  
28 - - ref: company  
29 - required: true  
1 -version: v1  
2 -kind: Schema  
3 -metadata:  
4 - name: role  
5 - description: 用户角色值对象  
6 - attributes:  
7 - - ref: roleId  
8 - required: true  
9 - - ref: roleName  
10 - required: true  
1 -version: v1  
2 -kind: Schema  
3 -metadata:  
4 - name: salesman  
5 - description: 业务员值对象  
6 - attributes:  
7 - - ref: userId  
8 - required: true  
9 - - ref: userBaseId  
10 - required: true  
11 - - ref: role  
12 - required: true  
13 - - ref: orgs  
14 - description: 用户关联的组织机构  
15 - required: true  
16 - - ref: org  
17 - description: 用户所属的组织机构  
18 - required: true  
19 - - ref: department  
20 - description: 用户所属的部门  
21 - required: true  
22 - - ref: company  
23 - required: true  
24 - - ref: userInfo  
25 - required: true  
26 - - ref: userType  
27 - required: true  
1 -version: v1  
2 -kind: Schema  
3 -metadata:  
4 - name: totalDividendsExpense  
5 - description: 企业分红总支出  
6 - attributes:  
7 - - ref: totalExpense  
8 - required: true  
9 - - ref: dividendsExpenseDetail  
10 - required: true  
1 -version: v1  
2 -kind: Schema  
3 -metadata:  
4 - name: undertaker  
5 - description: 共创合约承接方值对象  
6 - attributes:  
7 - - ref: userId  
8 - required: true  
9 - - ref: userBaseId  
10 - required: true  
11 - - ref: org  
12 - description: 用户所属组织机构  
13 - required: true  
14 - - ref: orgs  
15 - description: 用户关联的组织机构  
16 - required: true  
17 - - ref: department  
18 - description: 用户所属的部门  
19 - required: true  
20 - - ref: role  
21 - required: true  
22 - - ref: userInfo  
23 - required: true  
24 - - ref: userType  
25 - required: true  
26 - - ref: status  
27 - required: true  
28 - - ref: company  
29 - required: true  
30 - - name: contractAttachment  
31 - description: 合同附件  
32 - type:  
33 - array: attachment  
34 -  
1 -version: v1  
2 -kind: Schema  
3 -metadata:  
4 - name: user  
5 - description: 用户第三方服务防腐模型  
6 - attributes:  
7 - - ref: userId  
8 - required: true  
9 - - ref: userBaseId  
10 - required: true  
11 - - ref: org  
12 - description: 用户所属组织机构  
13 - required: true  
14 - - ref: orgs  
15 - description: 用户关联的组织机构  
16 - required: true  
17 - - ref: department  
18 - description: 用户所属的部门  
19 - required:  
20 - - ref: role  
21 - required: true  
22 - - ref: userInfo  
23 - required: true  
24 - - ref: userType  
25 - description: 用户类型  
26 - required: true  
27 - - ref: status  
28 - required: true  
29 - - ref: company  
30 - description: 用户关联公司信息  
31 - required: true  
1 -version: v1  
2 -kind: Schema  
3 -metadata:  
4 - name: userInfo  
5 - description: 用户信息值对象  
6 - attributes:  
7 - - ref: userAvatar  
8 - required: true  
9 - - ref: userEmail  
10 - required: true  
11 - - ref: userName  
12 - required: true  
13 - - ref: userPhone  
14 - required: true  
15 - - ref: userAccount  
16 - description: 用户账号,区别于手机号,冗余字段  
17 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: createContractUndertakerFeedback  
5 - type: command  
6 - description: 创建共创合约反馈服务  
7 - payload:  
8 - - ref: feedbackAttachment  
9 - required: true  
10 - - ref: feedbackContent  
11 - required: true  
12 - - ref: cooperationContractNumber  
13 - required: true  
14 - - name: underTakerUid  
15 - description: 承接人uid  
16 - type:  
17 - primitive: string  
18 - - ref: companyId  
19 - required: true  
20 - - ref: orgId  
21 - required: true  
22 - - ref: userId  
23 - required: true  
24 - result:  
25 - - name: contractUndertakerFeedback  
26 - type:  
27 - schema: contractUndertakerFeedback  
28 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: getContractUndertakerFeedback  
5 - type: query  
6 - description: 返回共创合约反馈服务  
7 - payload:  
8 - - ref: feedbackId  
9 - required: true  
10 - - name: underTakerUid  
11 - description: 承接人uid  
12 - type:  
13 - primitive: string  
14 - - ref: companyId  
15 - required: true  
16 - - ref: orgId  
17 - required: true  
18 - - ref: userId  
19 - required: true  
20 - result:  
21 - - name: contractUndertakerFeedback  
22 - type:  
23 - schema: contractUndertakerFeedback  
24 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: listContractUndertakerFeedback  
5 - type: query  
6 - description: 返回共创合约反馈服务列表  
7 - payload:  
8 - - ref: offset  
9 - required: false  
10 - - ref: limit  
11 - required: false  
12 - - name: underTakerUid  
13 - description: 承接人uid  
14 - type:  
15 - primitive: string  
16 - required: true  
17 - - ref: companyId  
18 - required: true  
19 - - ref: orgId  
20 - required: true  
21 - - ref: userId  
22 - required: true  
23 - result:  
24 - - ref: count  
25 - required: true  
26 - - name: contractUndertakerFeedbacks  
27 - type:  
28 - array: contractUndertakerFeedback  
29 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: removeContractUndertakerFeedback  
5 - type: command  
6 - description: 移除共创合约反馈服务  
7 - payload:  
8 - - ref: feedbackId  
9 - required: true  
10 - - name: underTakerUid  
11 - description: 承接人uid  
12 - type:  
13 - primitive: string  
14 - - ref: companyId  
15 - required: true  
16 - - ref: orgId  
17 - required: true  
18 - - ref: userId  
19 - required: true  
20 - result:  
21 - - name: contractUndertakerFeedback  
22 - type:  
23 - schema: contractUndertakerFeedback  
24 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: searchContractUndertakerFeedback  
5 - type: query  
6 - description: 查询共创承接方反馈信息  
7 - payload:  
8 - - ref: pageNumber  
9 - required: true  
10 - - ref: pageSize  
11 - required: true  
12 - - ref: cooperationContractName  
13 - required: true  
14 - - name: undertakerName  
15 - description: 承接人姓名  
16 - type:  
17 - primitive: string  
18 - - ref: companyId  
19 - required: true  
20 - - ref: orgId  
21 - required: true  
22 - - ref: userId  
23 - required: true  
24 - - name: matchWord  
25 - description: 查询关键词  
26 - required: false  
27 - type:  
28 - primitive: string  
29 - result:  
30 - - name: contractUndertakerFeedbacks  
31 - type:  
32 - array: contractUndertakerFeedback  
33 - required: true  
34 - - ref: count  
35 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: updateContractUndertakerFeedback  
5 - type: command  
6 - description: 更新共创合约反馈服务  
7 - payload:  
8 - - ref: feedbackAttachment  
9 - required: true  
10 - - ref: feedbackContent  
11 - required: true  
12 - - ref: cooperationContractNumber  
13 - required: true  
14 - - name: underTakerUid  
15 - description: 承接人用户uid  
16 - type:  
17 - primitive: string  
18 - - ref: companyId  
19 - required: true  
20 - - ref: orgId  
21 - required: true  
22 - - ref: userId  
23 - required: true  
24 - result:  
25 - - name: contractUndertakerFeedback  
26 - type:  
27 - schema: contractUndertakerFeedback  
28 - required: true  
1 -version: v1  
2 -kind: Service  
3 -metadata:  
4 - name: contractUndertakerFeedback  
5 - description: 共创合约反馈服务  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: agreeCooperationApplication  
5 - type: command  
6 - description: 审核-同意共创申请  
7 - payload:  
8 - - ref: cooperationApplicationId  
9 - required: true  
10 - - ref: cooperationApplicationVerifyDescription  
11 - required: true  
12 - - ref: companyId  
13 - required: true  
14 - - ref: orgId  
15 - description: 组织机构id  
16 - required: true  
17 - - ref: code  
18 - description: 菜单编码,APP端必须  
19 - required: true  
20 - - ref: userId  
21 - required: true  
22 - result:  
23 - - name: cooperationApplication  
24 - type:  
25 - schema: cooperationApplication  
26 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: applyForCooperation  
5 - type: command  
6 - description: 申请共创  
7 - payload:  
8 - - ref: cooperationApplicationAttachment  
9 - required: true  
10 - - ref: cooperationApplicationDescription  
11 - required: true  
12 - - ref: cooperationApplicationApplicant  
13 - required: true  
14 - - ref: cooperationApplicationId  
15 - required: true  
16 - - ref: cooperationProjectNumber  
17 - required: true  
18 - - ref: cooperationApplyTime  
19 - required: true  
20 - - ref: companyId  
21 - required: true  
22 - - ref: orgId  
23 - required: true  
24 - - ref: userId  
25 - required: true  
26 - result:  
27 - - name: cooperationApplication  
28 - type:  
29 - schema: cooperationApplication  
30 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: createCooperationApplication  
5 - type: command  
6 - description: 创建共创申请服务  
7 - payload:  
8 - - name: applicantUid  
9 - description: 共创申请人uid  
10 - type:  
11 - primitive: string  
12 - required: true  
13 - - ref: cooperationApplicationDescription  
14 - required: false  
15 - - ref: cooperationApplicationAttachment  
16 - required: false  
17 - - ref: cooperationProjectNumber  
18 - description: 关联的共创项目编号  
19 - required: true  
20 - - ref: companyId  
21 - required: true  
22 - - ref: orgId  
23 - required: true  
24 - - ref: userId  
25 - required: true  
26 - result:  
27 - - name: cooperationApplication  
28 - type:  
29 - schema: cooperationApplication  
30 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: getCooperationApplication  
5 - type: query  
6 - description: 返回共创申请服务  
7 - payload:  
8 - - ref: cooperationApplicationId  
9 - required: true  
10 - - ref: companyId  
11 - required: true  
12 - - ref: orgId  
13 - required: true  
14 - - ref: userId  
15 - required: true  
16 - result:  
17 - - name: cooperationApplication  
18 - type:  
19 - schema: cooperationApplication  
20 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: listCooperationApplication  
5 - type: query  
6 - description: 返回共创申请服务列表  
7 - payload:  
8 - - ref: offset  
9 - required: true  
10 - - ref: limit  
11 - required: true  
12 - - ref: companyId  
13 - required: true  
14 - - ref: orgId  
15 - required: true  
16 - - ref: userId  
17 - required: true  
18 - result:  
19 - - ref: count  
20 - required: true  
21 - - name: cooperationApplications  
22 - type:  
23 - array: cooperationApplication  
24 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: rejectCooperationApplication  
5 - type: command  
6 - description: 审核-拒绝共创申请  
7 - payload:  
8 - - ref: cooperationApplicationId  
9 - required: true  
10 - - ref: cooperationApplicationVerifyDescription  
11 - required: true  
12 - - ref: companyId  
13 - required: true  
14 - - ref: orgId  
15 - description: 组织机构id  
16 - required: true  
17 - - ref: code  
18 - description: 菜单模块编码,APP端必须  
19 - required: true  
20 - - ref: userId  
21 - required: true  
22 - result:  
23 - - name: cooperationApplication  
24 - type:  
25 - schema: cooperationApplication  
26 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: removeCooperationApplication  
5 - type: command  
6 - description: 移除共创申请服务  
7 - payload:  
8 - - ref: cooperationApplicationId  
9 - required: true  
10 - - ref: companyId  
11 - required: true  
12 - - ref: orgId  
13 - required: true  
14 - - ref: userId  
15 - required: true  
16 - result:  
17 - - name: cooperationApplication  
18 - type:  
19 - schema: cooperationApplication  
20 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: searchCooperationApplication  
5 - type: query  
6 - description: 查询共创申请  
7 - payload:  
8 - - ref: cooperationProjectName  
9 - required: true  
10 - - name: applicantName  
11 - description: 申请人姓名  
12 - type:  
13 - primitive: string  
14 - - ref: cooperationApplicationStatus  
15 - description: 共创申请审核状态,1待审核,2已同意,3已拒绝  
16 - required: false  
17 - - ref: pageSize  
18 - required: false  
19 - - ref: pageNumber  
20 - required: false  
21 - - ref: companyId  
22 - required: true  
23 - - ref: orgId  
24 - required: true  
25 - - ref: userId  
26 - required: true  
27 - result:  
28 - - name: cooperationApplications  
29 - type:  
30 - array: cooperationApplication  
31 - required: true  
32 - - ref: count  
33 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: updateCooperationApplication  
5 - type: command  
6 - description: 更新共创申请服务  
7 - payload:  
8 - - name: applicantUid  
9 - description: 共创申请人uid  
10 - type:  
11 - primitive: string  
12 - required: true  
13 - - ref: cooperationApplicationDescription  
14 - required: false  
15 - - ref: cooperationApplicationAttachment  
16 - required: false  
17 - - ref: cooperationProjectNumber  
18 - description: 关联的共创项目编号  
19 - required: true  
20 - - ref: companyId  
21 - required: true  
22 - - ref: orgId  
23 - required: true  
24 - - ref: userId  
25 - required: true  
26 - result:  
27 - - name: cooperationApplication  
28 - type:  
29 - schema: cooperationApplication  
30 - required: true  
1 -version: v1  
2 -kind: Service  
3 -metadata:  
4 - name: cooperationApplication  
5 - description: 共创申请服务  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: createCooperationContract  
5 - type: command  
6 - description: 创建共创合约服务  
7 - payload:  
8 - - ref: cooperationContractDescription  
9 - required: true  
10 - - ref: cooperationContractNumber  
11 - required: true  
12 - - ref: cooperationProjectNumber  
13 - required: true  
14 - - ref: departmentNumber  
15 - description: 共创合约发起部门编码  
16 - required: true  
17 - - ref: cooperationContractUndertakerType  
18 - required: true  
19 - - ref: cooperationContractName  
20 - required: true  
21 - - ref: cooperationModeNumber  
22 - required: true  
23 - - name: sponsorUid  
24 - description: 共创合约发起人uid  
25 - type:  
26 - primitive: string  
27 - - name: dividendsIncentivesRules  
28 - description: 业绩分红激励规则列表  
29 - type:  
30 - array: dividendsIncentivesRule  
31 - - name: moneyIncentivesRules  
32 - description: 金额激励规则列表  
33 - type:  
34 - array: moneyIncentivesRule  
35 - - name: undertakers  
36 - description: 承接方列表  
37 - type:  
38 - array: undertaker  
39 - - name: relevants  
40 - description: 相关人列表  
41 - type:  
42 - array: relevant  
43 - - ref: companyId  
44 - required: true  
45 - - ref: orgId  
46 - required: true  
47 - - ref: userId  
48 - required: true  
49 - result:  
50 - - name: cooperationContract  
51 - type:  
52 - schema: cooperationContract  
53 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: getCooperationContract  
5 - type: query  
6 - description: 返回共创合约服务  
7 - payload:  
8 - - ref: cooperationContractId  
9 - required: true  
10 - - name: sponsorUid  
11 - description: 发起人uid  
12 - type:  
13 - primitive: string  
14 - - ref: companyId  
15 - required: true  
16 - - ref: orgId  
17 - required: true  
18 - - ref: userId  
19 - required: true  
20 - result:  
21 - - name: cooperationContract  
22 - type:  
23 - schema: cooperationContract  
24 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: listCooperationContract  
5 - type: query  
6 - description: 返回共创合约服务列表  
7 - payload:  
8 - - ref: offset  
9 - required: true  
10 - - ref: limit  
11 - required: true  
12 - - ref: companyId  
13 - required: true  
14 - - ref: orgId  
15 - required: true  
16 - - ref: userId  
17 - required: true  
18 - result:  
19 - - ref: count  
20 - required: true  
21 - - name: cooperationContracts  
22 - type:  
23 - array: cooperationContract  
24 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: removeCooperationContract  
5 - type: command  
6 - description: 移除共创合约服务  
7 - payload:  
8 - - ref: cooperationContractId  
9 - required: true  
10 - - ref: companyId  
11 - required: true  
12 - - ref: orgId  
13 - required: true  
14 - - ref: userId  
15 - required: true  
16 - result:  
17 - - name: cooperationContract  
18 - type:  
19 - schema: cooperationContract  
20 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: searchCooperationContract  
5 - type: query  
6 - description: 查询共创合约  
7 - payload:  
8 - - ref: pageSize  
9 - required: true  
10 - - ref: pageNumber  
11 - required: true  
12 - - ref: cooperationContractNumber  
13 - required: true  
14 - - name: sponsorName  
15 - description: 发起人姓名  
16 - type:  
17 - primitive: string  
18 - - ref: companyId  
19 - required: true  
20 - - ref: orgId  
21 - required: true  
22 - - ref: userId  
23 - required: true  
24 - result:  
25 - - name: cooperationContracts  
26 - type:  
27 - array: cooperationContract  
28 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: searchCooperationContractByUndertaker  
5 - type: query  
6 - description: 根据承接人返回共创项目合约  
7 - payload:  
8 - - ref: cooperationContractName  
9 - required: false  
10 - - name: sponsorName  
11 - description: 项目发起人姓名  
12 - type:  
13 - primitive: string  
14 - required: false  
15 - - ref: companyId  
16 - required: true  
17 - - ref: orgId  
18 - required: true  
19 - - ref: userId  
20 - required: true  
21 - result:  
22 - - name: cooperationContractByUndertaker  
23 - description: 根据承接人返回的共创项目合约  
24 - type:  
25 - array: cooperationContractByUndertaker  
26 - - ref: count  
27 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: updateCooperationContract  
5 - type: command  
6 - description: 更新共创合约服务  
7 - payload:  
8 - - ref: cooperationContractDescription  
9 - required: true  
10 - - ref: cooperationContractNumber  
11 - required: true  
12 - - ref: cooperationProjectNumber  
13 - required: true  
14 - - ref: departmentNumber  
15 - required: true  
16 - - ref: cooperationContractUndertakerType  
17 - required: true  
18 - - ref: cooperationContractName  
19 - required: true  
20 - - ref: cooperationModeNumber  
21 - required: true  
22 - - name: sponsorUid  
23 - description: 共创合约发起人uid  
24 - type:  
25 - primitive: string  
26 - - ref: companyId  
27 - required: true  
28 - - ref: orgId  
29 - required: true  
30 - - ref: userId  
31 - required: true  
32 - result:  
33 - - name: cooperationContract  
34 - type:  
35 - schema: cooperationContract  
36 - required: true  
1 -version: v1  
2 -kind: Service  
3 -metadata:  
4 - name: cooperationContract  
5 - description: 共创合约服务  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: createCooperationContractChangeLog  
5 - type: command  
6 - description: 创建共创合约变更日志  
7 - payload:  
8 - - ref: incentivesRule  
9 - required: true  
10 - - ref: incentivesRuleDetail  
11 - required: true  
12 - - ref: operationType  
13 - required: true  
14 - - ref: undertakers  
15 - required: true  
16 - - ref: cooperationContractNumber  
17 - required: true  
18 - - ref: companyId  
19 - required: true  
20 - - ref: orgId  
21 - required: true  
22 - - ref: userId  
23 - required: true  
24 - result:  
25 - - name: cooperationContractChangeLog  
26 - type:  
27 - schema: cooperationContractChangeLog  
28 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: getCooperationContractChangeLog  
5 - type: query  
6 - description: 返回共创合约变更日志  
7 - payload:  
8 - - ref: cooperationContractChangeLogId  
9 - required: true  
10 - - ref: companyId  
11 - required: true  
12 - - ref: orgId  
13 - required: true  
14 - - ref: userId  
15 - required: true  
16 - result:  
17 - - name: cooperationContractChangeLog  
18 - type:  
19 - schema: cooperationContractChangeLog  
20 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: listCooperationContractChangeLog  
5 - type: query  
6 - description: 返回共创合约变更日志列表  
7 - payload:  
8 - - ref: offset  
9 - required: true  
10 - - ref: limit  
11 - required: true  
12 - - ref: companyId  
13 - required: true  
14 - - ref: orgId  
15 - required: true  
16 - - ref: userId  
17 - required: true  
18 - result:  
19 - - ref: count  
20 - required: true  
21 - - name: cooperationContractChangeLogs  
22 - type:  
23 - array: cooperationContractChangeLog  
24 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: removeCooperationContractChangeLog  
5 - type: command  
6 - description: 移除共创合约变更日志  
7 - payload:  
8 - - ref: cooperationContractChangeLogId  
9 - required: true  
10 - - ref: companyId  
11 - required: true  
12 - - ref: orgId  
13 - required: true  
14 - - ref: userId  
15 - required: true  
16 - result:  
17 - - name: cooperationContractChangeLog  
18 - type:  
19 - schema: cooperationContractChangeLog  
20 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: searchCooperationContractChangeLog  
5 - type: query  
6 - description: 共创合约变更记录搜索  
7 - payload:  
8 - - ref: operationType  
9 - required: false  
10 - - ref: cooperationContractNumber  
11 - required: false  
12 - - ref: pageSize  
13 - required: false  
14 - - ref: pageNumber  
15 - required: false  
16 - - ref: companyId  
17 - required: true  
18 - - ref: orgId  
19 - required: true  
20 - - ref: userId  
21 - required: true  
22 - result:  
23 - - name: cooperationContractChangeLogs  
24 - type:  
25 - array: cooperationContractChangeLog  
26 - required: true  
27 - - ref: count  
28 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: updateCooperationContractChangeLog  
5 - type: command  
6 - description: 更新共创合约变更日志  
7 - payload:  
8 - - ref: incentivesRule  
9 - required: true  
10 - - ref: incentivesRuleDetail  
11 - required: true  
12 - - ref: operationType  
13 - required: true  
14 - - ref: undertakers  
15 - required: true  
16 - - ref: cooperationContractNumber  
17 - required: true  
18 - - ref: companyId  
19 - required: true  
20 - - ref: orgId  
21 - required: true  
22 - - ref: userId  
23 - required: true  
24 - result:  
25 - - name: cooperationContractChangeLog  
26 - type:  
27 - schema: cooperationContractChangeLog  
28 - required: true  
1 -version: v1  
2 -kind: Service  
3 -metadata:  
4 - name: cooperationContractChangeLog  
5 - description: 共创合约变更日志  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: searchCooperationGoodsStatistics  
5 - type: query  
6 - description: 返回企业共创产品统计数据  
7 - payload:  
8 - - name: rankingType  
9 - description: 排行榜类型,1月榜,2年榜 3总榜,默认展示年榜  
10 - type:  
11 - primitive: int32  
12 - required: false  
13 - - ref: companyId  
14 - description: 企业ID,企业和组织id二选一  
15 - required: false  
16 - - ref: orgId  
17 - description: 组织机构id,组织和企业id二选一  
18 - required: false  
19 - - ref: userId  
20 - required: true  
21 - - ref: pageSize  
22 - required: false  
23 - - ref: pageNumber  
24 - required: false  
25 - result:  
26 - - name: cooperationGoodsStatistics  
27 - type:  
28 - schema: cooperationGoodsStatistics  
29 - required: true  
30 -  
1 -version: v1  
2 -kind: Service  
3 -metadata:  
4 - name: cooperationGoodsStatistics  
5 - description: 共创产品数据统计  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: createCooperationMode  
5 - type: command  
6 - description: 创建共创模式服务  
7 - payload:  
8 - - ref: cooperationModeName  
9 - required: true  
10 - - ref: cooperationModeNumber  
11 - required: true  
12 - - ref: remarks  
13 - required: true  
14 - - ref: companyId  
15 - required: true  
16 - - ref: orgId  
17 - required: true  
18 - - ref: userId  
19 - required: true  
20 - result:  
21 - - name: cooperationMode  
22 - type:  
23 - schema: cooperationMode  
24 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: getCooperationMode  
5 - type: query  
6 - description: 返回共创模式服务  
7 - payload:  
8 - - ref: cooperationModeId  
9 - required: true  
10 - - ref: companyId  
11 - required: true  
12 - - ref: orgId  
13 - required: true  
14 - - ref: userId  
15 - required: true  
16 - result:  
17 - - name: cooperationMode  
18 - type:  
19 - schema: cooperationMode  
20 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: listCooperationMode  
5 - type: query  
6 - description: 返回共创模式服务列表  
7 - payload:  
8 - - ref: offset  
9 - required: true  
10 - - ref: limit  
11 - required: true  
12 - - ref: companyId  
13 - required: true  
14 - - ref: orgId  
15 - required: true  
16 - - ref: userId  
17 - required: true  
18 - result:  
19 - - ref: count  
20 - required: true  
21 - - name: cooperationModes  
22 - type:  
23 - array: cooperationMode  
24 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: removeCooperationMode  
5 - type: command  
6 - description: 移除共创模式服务  
7 - payload:  
8 - - ref: cooperationModeId  
9 - required: true  
10 - - ref: companyId  
11 - required: true  
12 - - ref: orgId  
13 - required: true  
14 - - ref: userId  
15 - required: true  
16 - result:  
17 - - name: cooperationMode  
18 - type:  
19 - schema: cooperationMode  
20 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: searchCooperationMode  
5 - type: query  
6 - description: 查询共创模式  
7 - payload:  
8 - - ref: pageNumber  
9 - required: true  
10 - - ref: pageSize  
11 - required: true  
12 - - ref: cooperationModeName  
13 - required: true  
14 - - name: organizationName  
15 - description: 组织机构名称  
16 - type:  
17 - primitive: string  
18 - - ref: companyId  
19 - required: true  
20 - - ref: orgId  
21 - required: true  
22 - - ref: userId  
23 - required: true  
24 - result:  
25 - - name: cooperationModes  
26 - type:  
27 - array: cooperationMode  
28 - required: true  
29 - - ref: count  
30 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: updateCooperationMode  
5 - type: command  
6 - description: 更新共创模式服务  
7 - payload:  
8 - - ref: cooperationModeName  
9 - required: true  
10 - - ref: cooperationModeNumber  
11 - required: true  
12 - - ref: remarks  
13 - required: true  
14 - - ref: companyId  
15 - required: true  
16 - - ref: orgId  
17 - required: true  
18 - - ref: userId  
19 - required: true  
20 - result:  
21 - - name: cooperationMode  
22 - type:  
23 - schema: cooperationMode  
24 - required: true  
1 -version: v1  
2 -kind: Service  
3 -metadata:  
4 - name: cooperationMode  
5 - description: 共创模式服务  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: searchCooperationModeStatistics  
5 - type: query  
6 - description: 返回企业共创模式数据统计  
7 - payload:  
8 - - ref: companyId  
9 - description: 企业id,企业和组织二选一  
10 - required: false  
11 - - ref: orgId  
12 - description: 组织id,组织和企业二选一  
13 - required: false  
14 - - ref: userId  
15 - required: true  
16 - result:  
17 - - name: cooperationModeStatistics  
18 - type:  
19 - schema: cooperationModeStatistics  
20 - required: true  
21 -  
1 -version: v1  
2 -kind: Service  
3 -metadata:  
4 - name: cooperationModeStatistics  
5 - description: 共创模式统计服务  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: searchCooperationPersonStatistics  
5 - type: query  
6 - description: 返回企业共创人员信息统计  
7 - payload:  
8 - - ref: companyId  
9 - description: 查看的目标公司id,公司和组织入参二选一  
10 - required: false  
11 - - ref: orgId  
12 - description: 查看的目标组织id,组织和公司入参二选一  
13 - required: false  
14 - - ref: userId  
15 - required: true  
16 - result:  
17 - - name: cooperationPersonStatistics  
18 - type:  
19 - schema: cooperationPersonStatistics  
20 - required: true  
21 -  
1 -version: v1  
2 -kind: Service  
3 -metadata:  
4 - name: cooperationPersonStatistics  
5 - description: 共创人员信息统计  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: checkUndertaker  
5 - type: query  
6 - description: 判断当前勾选的承接对象是否存在用户  
7 - payload:  
8 - - ref: cooperationProjectUndertakerType  
9 - required: true  
10 - - ref: cooperationProjectId  
11 - required: true  
12 - result:  
13 - - name: cooperationProject  
14 - type:  
15 - schema: cooperationProject  
16 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: createCooperationProject  
5 - type: command  
6 - description: 创建共创项目服务  
7 - payload:  
8 - - ref: cooperationProjectName  
9 - required: true  
10 - - ref: cooperationProjectUndertakerType  
11 - description: 承接对象,1员工,2共创用户,3公开,可以多选  
12 - required: true  
13 - - name: sponsorUid  
14 - description: 共创项目发起人uid  
15 - type:  
16 - primitive: string  
17 - required: true  
18 - - name: publisherUid  
19 - description: 共创项目发布人uid  
20 - type:  
21 - primitive: string  
22 - required: true  
23 - - ref: cooperationProjectDescription  
24 - required: false  
25 - - ref: companyId  
26 - required: true  
27 - - ref: orgId  
28 - required: true  
29 - - ref: userId  
30 - required: true  
31 - result:  
32 - - name: cooperationProject  
33 - type:  
34 - schema: cooperationProject  
35 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: getCooperationProject  
5 - type: query  
6 - description: 返回共创项目服务  
7 - payload:  
8 - - ref: cooperationProjectId  
9 - required: true  
10 - - ref: companyId  
11 - required: true  
12 - - ref: orgId  
13 - required: true  
14 - - ref: userId  
15 - required: true  
16 - result:  
17 - - name: cooperationProject  
18 - type:  
19 - schema: cooperationProject  
20 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: listCooperationProject  
5 - type: query  
6 - description: 返回共创项目服务列表  
7 - payload:  
8 - - ref: offset  
9 - required: true  
10 - - ref: limit  
11 - required: true  
12 - - ref: companyId  
13 - required: true  
14 - - ref: orgId  
15 - required: true  
16 - - ref: userId  
17 - required: true  
18 - result:  
19 - - ref: count  
20 - required: true  
21 - - name: cooperationProjects  
22 - type:  
23 - array: cooperationProject  
24 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: releaseCooperationProject  
5 - type: command  
6 - description: 发布共创项目  
7 - payload:  
8 - - ref: cooperationProjectName  
9 - required: true  
10 - - ref: cooperationModeId  
11 - required: true  
12 - - ref: cooperationProjectSponsor  
13 - required: true  
14 - - ref: cooperationProjectUndertakerType  
15 - required: true  
16 - - ref: cooperationProjectDescription  
17 - required: true  
18 - - ref: companyId  
19 - required: true  
20 - - ref: orgId  
21 - required: true  
22 - - ref: userId  
23 - required: true  
24 - result:  
25 - - name: cooperationProject  
26 - type:  
27 - schema: cooperationProject  
28 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: removeCooperationProject  
5 - type: command  
6 - description: 移除共创项目服务  
7 - payload:  
8 - - ref: cooperationProjectId  
9 - required: true  
10 - - ref: companyId  
11 - required: true  
12 - - ref: orgId  
13 - required: true  
14 - - ref: userId  
15 - required: true  
16 - result:  
17 - - name: cooperationProject  
18 - type:  
19 - schema: cooperationProject  
20 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: searchCooperationProject  
5 - type: query  
6 - description: 查询共创项目  
7 - payload:  
8 - - ref: pageNumber  
9 - required: false  
10 - - ref: pageSize  
11 - required: false  
12 - - ref: cooperationProjectName  
13 - required: false  
14 - - ref: departmentName  
15 - required: false  
16 - - ref: status  
17 - description: 共创项目状态,根据共创项目状态筛选项目数据  
18 - required: false  
19 - - ref: companyId  
20 - required: true  
21 - - ref: orgId  
22 - required: true  
23 - - ref: userId  
24 - required: true  
25 - result:  
26 - - name: cooperationProjects  
27 - type:  
28 - array: cooperationProject  
29 - required: true  
30 - - ref: count  
31 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: updateCooperationProject  
5 - type: command  
6 - description: 更新共创项目服务  
7 - payload:  
8 - - ref: cooperationProjectName  
9 - required: true  
10 - - ref: cooperationProjectUndertakerType  
11 - description: 承接对象,1员工,2共创用户,3公开,可以多选  
12 - required: true  
13 - - name: sponsorUid  
14 - description: 共创项目发起人uid  
15 - type:  
16 - primitive: string  
17 - required: true  
18 - - name: publisherUid  
19 - description: 共创项目发布人uid  
20 - type:  
21 - primitive: string  
22 - required: true  
23 - - ref: cooperationProjectDescription  
24 - required: false  
25 - - ref: companyId  
26 - required: true  
27 - - ref: orgId  
28 - required: true  
29 - - ref: userId  
30 - required: true  
31 - result:  
32 - - name: cooperationProject  
33 - type:  
34 - schema: cooperationProject  
35 - required: true  
1 -version: v1  
2 -kind: Service  
3 -metadata:  
4 - name: cooperationProject  
5 - description: 共创项目服务  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: createCreditAccount  
5 - type: command  
6 - description: 创建账期结算单服务  
7 - payload:  
8 - - ref: companyId  
9 - required: true  
10 - - ref: orgId  
11 - required: true  
12 - - ref: userId  
13 - required: true  
14 - result:  
15 - - name: creditAccount  
16 - type:  
17 - schema: creditAccount  
18 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: creditAccountRanking  
5 - type: query  
6 - description: 账期结算单排名  
7 - payload:  
8 - - ref: companyId  
9 - required: true  
10 - - ref: orgId  
11 - required: true  
12 - - ref: userId  
13 - required: true  
14 - - name: period  
15 - description: 统计周期  
16 - type:  
17 - primitive: string  
18 - result:  
19 - - name: creditAccountRanking  
20 - type:  
21 - schema: creditAccountRanking  
22 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: getCreditAccount  
5 - type: query  
6 - description: 返回账期结算单服务  
7 - payload:  
8 - - ref: creditAccountId  
9 - required: true  
10 - - ref: companyId  
11 - required: true  
12 - - ref: orgId  
13 - required: true  
14 - - ref: userId  
15 - required: true  
16 - result:  
17 - - name: creditAccount  
18 - type:  
19 - schema: creditAccount  
20 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: listCreditAccount  
5 - type: query  
6 - description: 返回账期结算单服务列表  
7 - payload:  
8 - - ref: offset  
9 - required: true  
10 - - ref: limit  
11 - required: true  
12 - - ref: companyId  
13 - required: true  
14 - - ref: orgId  
15 - required: true  
16 - - ref: userId  
17 - required: true  
18 - result:  
19 - - ref: count  
20 - required: true  
21 - - name: creditAccounts  
22 - type:  
23 - array: creditAccount  
24 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: payCreditAccount  
5 - type: command  
6 - description: 支付账期结算(支付分红)  
7 - payload:  
8 - - ref: actuallyPaidAmount  
9 - required: true  
10 - - ref: remarks  
11 - required: true  
12 - - ref: companyId  
13 - required: true  
14 - - ref: orgId  
15 - required: true  
16 - - ref: userId  
17 - required: true  
18 - result:  
19 - - name: creditAccount  
20 - type:  
21 - schema: creditAccount  
22 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: removeCreditAccount  
5 - type: command  
6 - description: 移除账期结算单服务  
7 - payload:  
8 - - ref: creditAccountId  
9 - required: true  
10 - - ref: companyId  
11 - required: true  
12 - - ref: orgId  
13 - required: true  
14 - - ref: userId  
15 - required: true  
16 - result:  
17 - - name: creditAccount  
18 - type:  
19 - schema: creditAccount  
20 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: searchCreditAccount  
5 - type: query  
6 - description: 查询账期结算单  
7 - payload:  
8 - - ref: creditAccountOrderNum  
9 - required: true  
10 - - name: participatorName  
11 - description: 参与人姓名  
12 - type:  
13 - primitive: string  
14 - - ref: companyId  
15 - required: true  
16 - - ref: orgId  
17 - required: true  
18 - - ref: userId  
19 - required: true  
20 - - ref: paymentStatus  
21 - description: 账期结算支付状态,1待支付,2已支付,APP端结算记录返回已结算的账期结算单  
22 - required: true  
23 - - name: period  
24 - description: 结算周期,按年“2021”或者按月结算”2021-07“  
25 - type:  
26 - primitive: datetime  
27 - required: false  
28 - result:  
29 - - name: creditAccounts  
30 - type:  
31 - array: creditAccount  
32 - required: true  
33 - - ref: count  
34 - required: true  
35 - - name: sum  
36 - description: 本月结算或本年度结算总和  
37 - type:  
38 - primitive: float64  
39 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: updateCreditAccount  
5 - type: command  
6 - description: 更新账期结算单服务  
7 - payload:  
8 - - ref: creditAccountId  
9 - required: true  
10 - - ref: companyId  
11 - required: true  
12 - - ref: orgId  
13 - required: true  
14 - - ref: userId  
15 - required: true  
16 - result:  
17 - - name: creditAccount  
18 - type:  
19 - schema: creditAccount  
20 - required: true  
1 -version: v1  
2 -kind: Service  
3 -metadata:  
4 - name: creditAccount  
5 - description: 账期结算单服务  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: searchCurrentMonthDividendsStatistics  
5 - type: query  
6 - description: 返回共创企业本月分红统计  
7 - payload:  
8 - - ref: companyId  
9 - description: 企业id,企业和组织二选一  
10 - required: false  
11 - - ref: orgId  
12 - description: 组织id,组织和企业二选一  
13 - required: false  
14 - - ref: userId  
15 - required: true  
16 - result:  
17 - - name: currentMonthDividendsStatistics  
18 - type:  
19 - schema: currentMonthDividendsStatistics  
20 - required: true  
21 -  
1 -version: v1  
2 -kind: Service  
3 -metadata:  
4 - name: currentMonthDividendsStatistics  
5 - description: 共创企业本月分红统计  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: cancelDividendsEstimate  
5 - type: command  
6 - description: 取消分红预算  
7 - payload:  
8 - - ref: companyId  
9 - required: true  
10 - - ref: orgId  
11 - required: true  
12 - - ref: userId  
13 - required: true  
14 - result:  
15 - - name: dividendsEstimate  
16 - type:  
17 - schema: dividendsEstimate  
18 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: createDividendsEstimate  
5 - type: command  
6 - description: 创建分红预算服务  
7 - payload:  
8 - - ref: companyId  
9 - required: true  
10 - - ref: orgId  
11 - required: true  
12 - - ref: userId  
13 - required: true  
14 - result:  
15 - - name: dividendsEstimate  
16 - type:  
17 - schema: dividendsEstimate  
18 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: estimateDividendsIncentives  
5 - type: command  
6 - description: 确定预算分红激励  
7 - payload:  
8 - - ref: orderOrReturnedOrderNum  
9 - description: 分红订单号/退货单号  
10 - required: true  
11 - - ref: cooperationContractNumber  
12 - description: 合约编号  
13 - required: true  
14 - - ref: companyId  
15 - required: true  
16 - - ref: orgId  
17 - required: true  
18 - - ref: userId  
19 - required: true  
20 - result:  
21 - - name: dividendsEstimate  
22 - type:  
23 - schema: dividendsEstimate  
24 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: estimateMoneyIncentives  
5 - type: command  
6 - description: 确定预算金额激励分红  
7 - payload:  
8 - - ref: cooperationContractNumber  
9 - description: 共创项目合约编号  
10 - required: true  
11 - - ref: dividendsIncentivesStage  
12 - description: 分红阶段  
13 - required: true  
14 - - name: undertakerUid  
15 - description: 承接人UID  
16 - type:  
17 - primitive: string  
18 - required: true  
19 - - ref: companyId  
20 - required: true  
21 - - ref: orgId  
22 - required: true  
23 - - ref: userId  
24 - required: true  
25 - result:  
26 - - name: dividendsEstimate  
27 - type:  
28 - schema: dividendsEstimate  
29 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: getDividendsEstimate  
5 - type: query  
6 - description: 返回分红预算服务  
7 - payload:  
8 - - ref: dividendsEstimateId  
9 - required: true  
10 - - ref: companyId  
11 - required: true  
12 - - ref: orgId  
13 - required: true  
14 - - ref: userId  
15 - required: true  
16 - result:  
17 - - name: dividendsEstimate  
18 - type:  
19 - schema: dividendsEstimate  
20 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: listDividendsEstimate  
5 - type: query  
6 - description: 返回分红预算服务列表  
7 - payload:  
8 - - ref: offset  
9 - required: true  
10 - - ref: limit  
11 - required: true  
12 - - ref: companyId  
13 - required: true  
14 - - ref: orgId  
15 - required: true  
16 - - ref: userId  
17 - required: true  
18 - result:  
19 - - name: dividendsEstimates  
20 - type:  
21 - array: dividendsEstimate  
22 - required: true  
23 - - ref: count  
24 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: listDividendsIncentives  
5 - type: query  
6 - description: 返回业绩激励分红  
7 - payload:  
8 - - ref: offset  
9 - required: true  
10 - - ref: limit  
11 - required: true  
12 - - ref: companyId  
13 - required: true  
14 - - ref: orgId  
15 - required: true  
16 - - ref: userId  
17 - required: true  
18 - result:  
19 - - name: dividendsIncentives  
20 - type:  
21 - schema: dividendsIncentives  
22 - required: true  
23 - - ref: count  
24 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: listMoneyIncentives  
5 - type: query  
6 - description: 返回金额激励分红  
7 - payload:  
8 - - ref: offset  
9 - required: true  
10 - - ref: limit  
11 - required: true  
12 - - ref: companyId  
13 - required: true  
14 - - ref: orgId  
15 - required: true  
16 - - ref: userId  
17 - required: true  
18 - result:  
19 - - name: moneyIncentives  
20 - type:  
21 - schema: moneyIncentives  
22 - required: true  
23 - - ref: count  
24 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: removeDividendsEstimate  
5 - type: command  
6 - description: 移除分红预算服务  
7 - payload:  
8 - - ref: dividendsEstimateId  
9 - required: true  
10 - - ref: companyId  
11 - required: true  
12 - - ref: orgId  
13 - required: true  
14 - - ref: userId  
15 - required: true  
16 - result:  
17 - - name: dividendsEstimate  
18 - type:  
19 - schema: dividendsEstimate  
20 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: searchDividendsEstimate  
5 - type: query  
6 - description: 查询分红预算单  
7 - payload:  
8 - - ref: dividendsEstimateOrderNumber  
9 - required: true  
10 - - ref: dividendsType  
11 - required: true  
12 - - ref: companyId  
13 - required: true  
14 - - ref: orgId  
15 - required: true  
16 - - ref: userId  
17 - required: true  
18 - result:  
19 - - name: dividendsEstimate  
20 - type:  
21 - schema: dividendsEstimate  
22 - required: true  
23 - - ref: count  
24 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: searchDividendsIncentives  
5 - type: query  
6 - description: 查询业绩分红  
7 - payload:  
8 - - ref: cooperationContractNumber  
9 - description: 合约编号  
10 - required: false  
11 - - ref: orderOrReturnedOrderNum  
12 - description: 分红订单号/退货单号  
13 - required: false  
14 - - ref: companyId  
15 - required: true  
16 - - ref: orgId  
17 - required: true  
18 - - ref: userId  
19 - required: true  
20 - result:  
21 - - name: dividendsIncentives  
22 - type:  
23 - schema: dividendsIncentives  
24 - required: true  
25 - - ref: count  
26 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: searchMoneyIncentives  
5 - type: query  
6 - description: 查询金额激励分红  
7 - payload:  
8 - - ref: cooperationContractName  
9 - description: 共创合约名称  
10 - required: false  
11 - - ref: departmentName  
12 - description: 发起部门名称  
13 - required: false  
14 - - ref: companyId  
15 - required: true  
16 - - ref: orgId  
17 - required: true  
18 - - ref: userId  
19 - required: true  
20 - result:  
21 - - name: moneyIncentives  
22 - type:  
23 - array: moneyIncentives  
24 - required: true  
25 - - ref: count  
26 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: updateDividendsEstimate  
5 - type: command  
6 - description: 更新分红预算服务  
7 - payload:  
8 - - ref: dividendsEstimateId  
9 - required: true  
10 - - ref: companyId  
11 - required: true  
12 - - ref: orgId  
13 - required: true  
14 - - ref: userId  
15 - required: true  
16 - result:  
17 - - name: dividendsEstimate  
18 - type:  
19 - schema: dividendsEstimate  
20 - required: true  
1 -version: v1  
2 -kind: Service  
3 -metadata:  
4 - name: dividendsEstimate  
5 - description: 分红预算服务  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: searchDividendsExpenseStatistics  
5 - type: query  
6 - description: 返回企业分红支出统计  
7 - payload:  
8 - - ref: companyId  
9 - required: true  
10 - - ref: orgId  
11 - required: true  
12 - - ref: userId  
13 - required: true  
14 - result:  
15 - - name: dividendsExpenseStatistics  
16 - type:  
17 - schema: dividendsExpenseStatistics  
18 - required: true  
1 -version: v1  
2 -kind: Service  
3 -metadata:  
4 - name: dividendsExpenseStatistics  
5 - description: 企业分红支出统计服务  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: createDividendsIncentivesRule  
5 - type: command  
6 - description: 创建业绩分红激励规则服务,聚合到共创项目合约  
7 - payload:  
8 - - ref: cooperationContractNumber  
9 - required: true  
10 - - ref: dividendsIncentivesPercentage  
11 - required: true  
12 - - ref: dividendsIncentivesStage  
13 - required: true  
14 - - ref: dividendsIncentivesStageStart  
15 - required: true  
16 - - ref: dividendsIncentivesStageEnd  
17 - required: true  
18 - - ref: referrerPercentage  
19 - required: true  
20 - - ref: salesmanPercentage  
21 - required: true  
22 - - ref: companyId  
23 - required: true  
24 - - ref: orgId  
25 - required: true  
26 - - ref: userId  
27 - required: true  
28 - result:  
29 - - name: dividendsIncentivesRule  
30 - type:  
31 - schema: dividendsIncentivesRule  
32 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: getDividendsIncentivesRule  
5 - type: query  
6 - description: 返回业绩分红激励规则服务  
7 - payload:  
8 - - ref: dividendsIncentivesRuleId  
9 - required: true  
10 - - ref: companyId  
11 - required: true  
12 - - ref: orgId  
13 - required: true  
14 - - ref: userId  
15 - required: true  
16 - result:  
17 - - name: dividendsIncentivesRule  
18 - type:  
19 - schema: dividendsIncentivesRule  
20 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: listDividendsIncentivesRule  
5 - type: query  
6 - description: 返回业绩分红激励规则服务列表  
7 - payload:  
8 - - ref: offset  
9 - required: true  
10 - - ref: limit  
11 - required: true  
12 - - ref: companyId  
13 - required: true  
14 - - ref: orgId  
15 - required: true  
16 - - ref: userId  
17 - required: true  
18 - result:  
19 - - name: dividendsIncentivesRules  
20 - type:  
21 - array: dividendsIncentivesRule  
22 - required: true  
23 - - ref: count  
24 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: removeDividendsIncentivesRule  
5 - type: command  
6 - description: 移除业绩分红激励规则服务  
7 - payload:  
8 - - ref: dividendsIncentivesRuleId  
9 - required: true  
10 - - ref: companyId  
11 - required: true  
12 - - ref: orgId  
13 - required: true  
14 - - ref: userId  
15 - required: true  
16 - result:  
17 - - name: dividendsIncentivesRule  
18 - type:  
19 - schema: dividendsIncentivesRule  
20 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: updateDividendsIncentivesRule  
5 - type: command  
6 - description: 更新业绩分红激励规则服务  
7 - payload:  
8 - - ref: cooperationContractNumber  
9 - required: true  
10 - - ref: dividendsIncentivesPercentage  
11 - required: true  
12 - - ref: dividendsIncentivesStage  
13 - required: true  
14 - - ref: dividendsIncentivesStageStart  
15 - required: true  
16 - - ref: dividendsIncentivesStageEnd  
17 - required: true  
18 - - ref: referrerPercentage  
19 - required: true  
20 - - ref: salesmanPercentage  
21 - required: true  
22 - - ref: companyId  
23 - required: true  
24 - - ref: orgId  
25 - required: true  
26 - - ref: userId  
27 - required: true  
28 - result:  
29 - - name: dividendsIncentivesRule  
30 - type:  
31 - schema: dividendsIncentivesRule  
32 - required: true  
1 -version: v1  
2 -kind: Service  
3 -metadata:  
4 - name: dividendsIncentivesRule  
5 - description: 业绩分红激励规则服务  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: createDividendsOrder  
5 - type: command  
6 - description: 创建分红订单实体对象  
7 - payload:  
8 - - ref: customerName  
9 - required: true  
10 - - ref: dividendsOrderAmount  
11 - required: true  
12 - - ref: dividendsOrderNumber  
13 - required: true  
14 - - ref: dividendsOriginalOrderNum  
15 - required: true  
16 - - ref: orderTime  
17 - required: true  
18 - - ref: remarks  
19 - required: true  
20 - - name: salesmanUid  
21 - description: 订单业务员uid  
22 - type:  
23 - primitive: string  
24 - - name: operatorUid  
25 - description: 订单操作人uid  
26 - type:  
27 - primitive: string  
28 - - name: orderGoods  
29 - description: 订单产品列表  
30 - type:  
31 - array: orderGoods  
32 - - ref: companyId  
33 - required: true  
34 - - ref: orgId  
35 - required: true  
36 - - ref: userId  
37 - required: true  
38 - result:  
39 - - name: dividendsOrder  
40 - type:  
41 - schema: dividendsOrder  
42 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: getDividendsOrder  
5 - type: query  
6 - description: 返回分红订单实体对象  
7 - payload:  
8 - - ref: dividendsOrderId  
9 - required: true  
10 - - ref: companyId  
11 - required: true  
12 - - ref: orgId  
13 - required: true  
14 - - ref: userId  
15 - required: true  
16 - result:  
17 - - name: dividendsOrder  
18 - type:  
19 - schema: dividendsOrder  
20 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: listDividendsOrders  
5 - type: query  
6 - description: 返回分红订单实体对象列表  
7 - payload:  
8 - - ref: offset  
9 - required: true  
10 - - ref: limit  
11 - required: true  
12 - - ref: companyId  
13 - required: true  
14 - - ref: orgId  
15 - required: true  
16 - - ref: userId  
17 - required: true  
18 - result:  
19 - - name: dividendsOrders  
20 - type:  
21 - array: dividendsOrder  
22 - required: true  
23 - - ref: count  
24 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: removeDividendsOrder  
5 - type: command  
6 - description: 移除分红订单实体对象  
7 - payload:  
8 - - ref: dividendsOrderId  
9 - required: true  
10 - - ref: companyId  
11 - required: true  
12 - - ref: orgId  
13 - required: true  
14 - - ref: userId  
15 - required: true  
16 - result:  
17 - - name: dividendsOrder  
18 - type:  
19 - schema: dividendsOrder  
20 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: searchDividendsOrder  
5 - type: query  
6 - description: 查询分红订单方法  
7 - payload:  
8 - - ref: dividendsOrderNumber  
9 - required: false  
10 - - ref: customerName  
11 - required: false  
12 - - ref: pageSize  
13 - required: false  
14 - - ref: pageNumber  
15 - required: false  
16 - - ref: companyId  
17 - required: true  
18 - - ref: orgId  
19 - required: true  
20 - - ref: userId  
21 - required: true  
22 - result:  
23 - - name: dividendsOrders  
24 - type:  
25 - array: dividendsOrder  
26 - required: true  
27 - - ref: count  
28 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: updateDividendsOrder  
5 - type: command  
6 - description: 更新分红订单实体对象  
7 - payload:  
8 - - ref: customerName  
9 - required: true  
10 - - ref: dividendsOrderAmount  
11 - required: true  
12 - - ref: dividendsOrderNumber  
13 - required: true  
14 - - ref: dividendsOriginalOrderNum  
15 - required: true  
16 - - ref: orderTime  
17 - required: true  
18 - - ref: remarks  
19 - required: true  
20 - - name: salesmanUid  
21 - description: 业务员uid  
22 - type:  
23 - primitive: string  
24 - - name: operatorUid  
25 - description: 操作人uid  
26 - type:  
27 - primitive: string  
28 - - ref: companyId  
29 - required: true  
30 - - ref: orgId  
31 - required: true  
32 - - ref: userId  
33 - required: true  
34 - result:  
35 - - name: dividendsOrder  
36 - type:  
37 - schema: dividendsOrder  
38 - required: true  
1 -version: v1  
2 -kind: Service  
3 -metadata:  
4 - name: dividendsOrder  
5 - description: 分红订单实体对象  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: createDividendsReturnedOrder  
5 - type: command  
6 - description: 创建分红退货单服务  
7 - payload:  
8 - - ref: dividendsReturnedOrderRefund  
9 - required: true  
10 - - ref: dividendsReturnedCustomerName  
11 - required: true  
12 - - ref: originalOrderNum  
13 - required: true  
14 - - ref: remarks  
15 - required: true  
16 - - ref: dividendsReturnedDate  
17 - required: true  
18 - - name: regionName  
19 - description: 退货区域名称  
20 - type:  
21 - primitive: string  
22 - - name: orderGoods  
23 - description: 订单产品列表  
24 - type:  
25 - array: orderGoods  
26 - - ref: companyId  
27 - required: true  
28 - - ref: orgId  
29 - required: true  
30 - - ref: userId  
31 - required: true  
32 - result:  
33 - - name: dividendsReturnedOrder  
34 - type:  
35 - schema: dividendsReturnedOrder  
36 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: getDividendsReturnedOrder  
5 - type: query  
6 - description: 返回分红退货单服务  
7 - payload:  
8 - - ref: dividendsReturnedOrderId  
9 - required: true  
10 - - ref: companyId  
11 - required: true  
12 - - ref: orgId  
13 - required: true  
14 - - ref: userId  
15 - required: true  
16 - result:  
17 - - name: dividendsReturnedOrders  
18 - type:  
19 - schema: dividendsReturnedOrder  
20 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: importDividendsReturnedOrder  
5 - type: command  
6 - description: 导入分红退货单  
7 - payload:  
8 - - name: file  
9 - description: 导入文件  
10 - type:  
11 - primitive: string  
12 - - name: where  
13 - description: 参数列表  
14 - type:  
15 - primitive: string  
16 - - ref: companyId  
17 - required: true  
18 - - ref: orgId  
19 - required: true  
20 - - ref: userId  
21 - required: true  
22 - result:  
23 - - name: dividendsReturnedOrder  
24 - type:  
25 - schema: dividendsReturnedOrder  
26 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: listDividendsReturnedOrder  
5 - type: query  
6 - description: 返回分红退货单服务列表  
7 - payload:  
8 - - ref: offset  
9 - required: true  
10 - - ref: limit  
11 - required: true  
12 - - ref: companyId  
13 - required: true  
14 - - ref: orgId  
15 - required: true  
16 - - ref: userId  
17 - required: true  
18 - result:  
19 - - name: dividendsReturnedOrders  
20 - type:  
21 - array: dividendsReturnedOrder  
22 - required: true  
23 - - ref: count  
24 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: removeDividendsReturnedOrder  
5 - type: command  
6 - description: 移除分红退货单服务  
7 - payload:  
8 - - ref: companyId  
9 - required: true  
10 - - ref: orgId  
11 - required: true  
12 - - ref: userId  
13 - required: true  
14 - result:  
15 - - name: dividendsReturnedOrder  
16 - type:  
17 - schema: dividendsReturnedOrder  
18 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: searchDividendsReturnedOrder  
5 - type: query  
6 - description: 查找分红退货单  
7 - payload:  
8 - - ref: dividendsReturnedCustomerName  
9 - description: 退货客户姓名  
10 - required: false  
11 - - ref: dividendsReturnedOrderNumber  
12 - description: 分红退货单号  
13 - required: false  
14 - - ref: pageSize  
15 - required: false  
16 - - ref: pageNumber  
17 - required: false  
18 - - ref: companyId  
19 - required: true  
20 - - ref: orgId  
21 - required: true  
22 - - ref: userId  
23 - required: true  
24 - result:  
25 - - name: dividendsReturnedOrders  
26 - type:  
27 - array: dividendsReturnedOrder  
28 - required: true  
29 - - ref: count  
30 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: updateDividendsReturnedOrder  
5 - type: command  
6 - description: 更新分红退货单服务  
7 - payload:  
8 - - ref: dividendsReturnedOrderRefund  
9 - required: true  
10 - - ref: dividendsReturnedCustomerName  
11 - required: true  
12 - - ref: originalOrderNum  
13 - required: true  
14 - - ref: remarks  
15 - required: true  
16 - - ref: dividendsReturnedDate  
17 - required: true  
18 - - name: regionName  
19 - description: 退货区域  
20 - type:  
21 - primitive: string  
22 - - name: orderGoods  
23 - description: 订单产品列表  
24 - type:  
25 - array: orderGoods  
26 - - ref: companyId  
27 - required: true  
28 - - ref: orgId  
29 - required: true  
30 - - ref: userId  
31 - required: true  
32 - result:  
33 - - name: dividendsReturnedOrder  
34 - type:  
35 - schema: dividendsReturnedOrder  
36 - required: true  
1 -version: v1  
2 -kind: Service  
3 -metadata:  
4 - name: dividendsReturnedOrder  
5 - description: 分红退货单服务  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: createMoneyIncentivesRule  
5 - type: command  
6 - description: 创建项目金额激励规则服务,聚合到共创合约  
7 - payload:  
8 - - ref: moneyIncentivesStageEnd  
9 - required: true  
10 - - ref: moneyIncentivesStageStart  
11 - required: true  
12 - - ref: moneyIncentivesStage  
13 - required: true  
14 - - ref: moneyIncentivesAmount  
15 - required: true  
16 - - ref: cooperationContractNumber  
17 - required: true  
18 - - ref: companyId  
19 - required: true  
20 - - ref: orgId  
21 - required: true  
22 - - ref: userId  
23 - required: true  
24 - result:  
25 - - name: moneyIncentivesRule  
26 - type:  
27 - schema: moneyIncentivesRule  
28 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: getMoneyIncentivesRule  
5 - type: query  
6 - description: 返回项目金额激励规则服务  
7 - payload:  
8 - - ref: moneyIncentivesRuleId  
9 - required: true  
10 - - ref: companyId  
11 - required: true  
12 - - ref: orgId  
13 - required: true  
14 - - ref: userId  
15 - required: true  
16 - result:  
17 - - name: moneyIncentivesRule  
18 - type:  
19 - schema: moneyIncentivesRule  
20 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: listMoneyIncentivesRules  
5 - type: query  
6 - description: 返回项目金额激励规则服务列表  
7 - payload:  
8 - - ref: offset  
9 - required: true  
10 - - ref: limit  
11 - required: true  
12 - - ref: companyId  
13 - required: true  
14 - - ref: orgId  
15 - required: true  
16 - - ref: userId  
17 - required: true  
18 - result:  
19 - - name: moneyIncentivesRules  
20 - type:  
21 - array: moneyIncentivesRule  
22 - required: true  
23 - - ref: count  
24 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: removeMoneyIncentivesRule  
5 - type: command  
6 - description: 移除项目金额激励规则服务  
7 - payload:  
8 - - ref: moneyIncentivesRuleId  
9 - required: true  
10 - - ref: companyId  
11 - required: true  
12 - - ref: orgId  
13 - required: true  
14 - - ref: userId  
15 - required: true  
16 - result:  
17 - - name: moneyIncentivesRule  
18 - type:  
19 - schema: moneyIncentivesRule  
20 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: updateMoneyIncentivesRule  
5 - type: command  
6 - description: 更新项目金额激励规则服务  
7 - payload:  
8 - - ref: moneyIncentivesStageEnd  
9 - required: true  
10 - - ref: moneyIncentivesStageStart  
11 - required: true  
12 - - ref: moneyIncentivesStage  
13 - required: true  
14 - - ref: moneyIncentivesAmount  
15 - required: true  
16 - - ref: cooperationContractNumber  
17 - required: true  
18 - - ref: companyId  
19 - required: true  
20 - - ref: orgId  
21 - required: true  
22 - - ref: userId  
23 - required: true  
24 - result:  
25 - - name: moneyIncentivesRule  
26 - type:  
27 - schema: moneyIncentivesRule  
28 - required: true  
1 -version: v1  
2 -kind: Service  
3 -metadata:  
4 - name: moneyIncentivesRule  
5 - description: 项目金额激励规则服务  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: searchProjectOverviewStatistics  
5 - type: query  
6 - description: 返回共创企业项目概览统计  
7 - payload:  
8 - - ref: companyId  
9 - description: 企业id,企业和组织二选一  
10 - required: false  
11 - - ref: orgId  
12 - description: 组织id,组织和企业二选一  
13 - required: false  
14 - - ref: userId  
15 - required: true  
16 - result:  
17 - - name: projectOverviewStatistics  
18 - type:  
19 - schema: projectOverviewStatistics  
20 - required: true  
1 -version: v1  
2 -kind: Service  
3 -metadata:  
4 - name: projectOverviewStatistics  
5 - description: 共创项目概览统计  
@@ -2,4 +2,29 @@ module gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation @@ -2,4 +2,29 @@ module gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation
2 2
3 go 1.16 3 go 1.16
4 4
5 -require github.com/linmadan/egglib-go v0.0.0-20210527091316-06b0732fb5f6 // indirect 5 +require (
  6 + github.com/Shopify/sarama v1.25.0
  7 + github.com/ajg/form v1.5.1 // indirect
  8 + github.com/beego/beego/v2 v2.0.1
  9 + github.com/fasthttp-contrib/websocket v0.0.0-20160511215533-1f3b11f56072 // indirect
  10 + github.com/fatih/structs v1.1.0 // indirect
  11 + github.com/gavv/httpexpect v2.0.0+incompatible
  12 + github.com/go-pg/pg/v10 v10.7.7
  13 + github.com/google/go-querystring v1.1.0 // indirect
  14 + github.com/gorilla/websocket v1.4.2 // indirect
  15 + github.com/imkira/go-interpol v1.1.0 // indirect
  16 + github.com/linmadan/egglib-go v0.0.0-20210527091316-06b0732fb5f6
  17 + github.com/mattn/go-colorable v0.1.8 // indirect
  18 + github.com/moul/http2curl v1.0.0 // indirect
  19 + github.com/onsi/ginkgo v1.14.2
  20 + github.com/onsi/gomega v1.10.3
  21 + github.com/sergi/go-diff v1.2.0 // indirect
  22 + github.com/sirupsen/logrus v1.8.1 // indirect
  23 + github.com/smartystreets/goconvey v1.6.4 // indirect
  24 + github.com/valyala/fasthttp v1.28.0 // indirect
  25 + github.com/xeipuuv/gojsonschema v1.2.0 // indirect
  26 + github.com/yalp/jsonpath v0.0.0-20180802001716-5cc68e5049a0 // indirect
  27 + github.com/yudai/gojsondiff v1.0.0 // indirect
  28 + github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82 // indirect
  29 + github.com/yudai/pp v2.0.1+incompatible // indirect
  30 +)
@@ -3,22 +3,30 @@ github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03 @@ -3,22 +3,30 @@ github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03
3 github.com/Knetic/govaluate v3.0.0+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0= 3 github.com/Knetic/govaluate v3.0.0+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0=
4 github.com/Shopify/sarama v1.25.0 h1:ch1ywjRLjfJtU+EaiJ+l0rWffQ6TRpyYmW4DX7Cb2SU= 4 github.com/Shopify/sarama v1.25.0 h1:ch1ywjRLjfJtU+EaiJ+l0rWffQ6TRpyYmW4DX7Cb2SU=
5 github.com/Shopify/sarama v1.25.0/go.mod h1:y/CFFTO9eaMTNriwu/Q+W4eioLqiDMGkA1W+gmdfj8w= 5 github.com/Shopify/sarama v1.25.0/go.mod h1:y/CFFTO9eaMTNriwu/Q+W4eioLqiDMGkA1W+gmdfj8w=
  6 +github.com/Shopify/toxiproxy v2.1.4+incompatible h1:TKdv8HiTLgE5wdJuEML90aBgNWsokNbMijUGhmcoBJc=
6 github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= 7 github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI=
  8 +github.com/ajg/form v1.5.1 h1:t9c7v8JUKu/XxOGBU0yjNpaMloxGEJhUkqFRq0ibGeU=
  9 +github.com/ajg/form v1.5.1/go.mod h1:uL1WgH+h2mgNtvBq0339dVnzXdBETtL2LeUXaIv25UY=
7 github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= 10 github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
8 github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= 11 github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
9 github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= 12 github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
10 github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= 13 github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
11 github.com/alicebob/gopher-json v0.0.0-20180125190556-5a6b3ba71ee6/go.mod h1:SGnFV6hVsYE877CKEZ6tDNTjaSXYUk6QqoIK6PrAtcc= 14 github.com/alicebob/gopher-json v0.0.0-20180125190556-5a6b3ba71ee6/go.mod h1:SGnFV6hVsYE877CKEZ6tDNTjaSXYUk6QqoIK6PrAtcc=
12 github.com/alicebob/miniredis v2.5.0+incompatible/go.mod h1:8HZjEj4yU0dwhYHky+DxYx+6BMjkBbe5ONFIF1MXffk= 15 github.com/alicebob/miniredis v2.5.0+incompatible/go.mod h1:8HZjEj4yU0dwhYHky+DxYx+6BMjkBbe5ONFIF1MXffk=
  16 +github.com/andybalholm/brotli v1.0.2 h1:JKnhI/XQ75uFBTiuzXpzFrUriDPiZjlOSzh6wXogP0E=
  17 +github.com/andybalholm/brotli v1.0.2/go.mod h1:loMXtMfwqflxFJPmdbJO0a3KNoPuLBgiu3qAvBg8x/Y=
  18 +github.com/beego/beego/v2 v2.0.1 h1:07a7Z0Ok5vbqyqh+q53sDPl9LdhKh0ZDy3gbyGrhFnE=
13 github.com/beego/beego/v2 v2.0.1/go.mod h1:8zyHi1FnWO1mZLwTn62aKRIZF/aIKvkCBB2JYs+eqQI= 19 github.com/beego/beego/v2 v2.0.1/go.mod h1:8zyHi1FnWO1mZLwTn62aKRIZF/aIKvkCBB2JYs+eqQI=
14 github.com/beego/goyaml2 v0.0.0-20130207012346-5545475820dd/go.mod h1:1b+Y/CofkYwXMUU0OhQqGvsY2Bvgr4j6jfT699wyZKQ= 20 github.com/beego/goyaml2 v0.0.0-20130207012346-5545475820dd/go.mod h1:1b+Y/CofkYwXMUU0OhQqGvsY2Bvgr4j6jfT699wyZKQ=
15 github.com/beego/x2j v0.0.0-20131220205130-a0352aadc542/go.mod h1:kSeGC/p1AbBiEp5kat81+DSQrZenVBZXklMLaELspWU= 21 github.com/beego/x2j v0.0.0-20131220205130-a0352aadc542/go.mod h1:kSeGC/p1AbBiEp5kat81+DSQrZenVBZXklMLaELspWU=
16 github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= 22 github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=
17 github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= 23 github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8=
  24 +github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
18 github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= 25 github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=
19 github.com/bradfitz/gomemcache v0.0.0-20180710155616-bc664df96737/go.mod h1:PmM6Mmwb0LSuEubjR8N7PtNe1KxZLtOUHtbeikc5h60= 26 github.com/bradfitz/gomemcache v0.0.0-20180710155616-bc664df96737/go.mod h1:PmM6Mmwb0LSuEubjR8N7PtNe1KxZLtOUHtbeikc5h60=
20 github.com/casbin/casbin v1.7.0/go.mod h1:c67qKN6Oum3UF5Q1+BByfFxkwKvhwW57ITjqwtzR1KE= 27 github.com/casbin/casbin v1.7.0/go.mod h1:c67qKN6Oum3UF5Q1+BByfFxkwKvhwW57ITjqwtzR1KE=
21 github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= 28 github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
  29 +github.com/cespare/xxhash/v2 v2.1.1 h1:6MnRN8NT7+YBpUIWxHtefFZOKTAPgGjpQSxqLNn0+qY=
22 github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= 30 github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
23 github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= 31 github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
24 github.com/cloudflare/golz4 v0.0.0-20150217214814-ef862a3cdc58/go.mod h1:EOBUe0h4xcZ5GoxqC5SDxFQ8gwyZPKQoEzownBlhI80= 32 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= @@ -42,22 +50,35 @@ github.com/eapache/queue v1.1.0 h1:YOEu7KNc61ntiQlcEeUIoDTJ2o8mQznoNvUhiigpIqc=
42 github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= 50 github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I=
43 github.com/edsrzf/mmap-go v0.0.0-20170320065105-0bce6a688712/go.mod h1:YO35OhQPt3KJa3ryjFM5Bs14WD66h8eGKpfaBNrHW5M= 51 github.com/edsrzf/mmap-go v0.0.0-20170320065105-0bce6a688712/go.mod h1:YO35OhQPt3KJa3ryjFM5Bs14WD66h8eGKpfaBNrHW5M=
44 github.com/elastic/go-elasticsearch/v6 v6.8.5/go.mod h1:UwaDJsD3rWLM5rKNFzv9hgox93HoX8utj1kxD9aFUcI= 52 github.com/elastic/go-elasticsearch/v6 v6.8.5/go.mod h1:UwaDJsD3rWLM5rKNFzv9hgox93HoX8utj1kxD9aFUcI=
  53 +github.com/elazarl/go-bindata-assetfs v1.0.0 h1:G/bYguwHIzWq9ZoyUQqrjTmJbbYn3j3CKKpKinvZLFk=
45 github.com/elazarl/go-bindata-assetfs v1.0.0/go.mod h1:v+YaWX3bdea5J/mo8dSETolEo7R71Vk1u8bnjau5yw4= 54 github.com/elazarl/go-bindata-assetfs v1.0.0/go.mod h1:v+YaWX3bdea5J/mo8dSETolEo7R71Vk1u8bnjau5yw4=
46 github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= 55 github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
47 github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= 56 github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
  57 +github.com/fasthttp-contrib/websocket v0.0.0-20160511215533-1f3b11f56072 h1:DddqAaWDpywytcG8w/qoQ5sAN8X12d3Z3koB0C3Rxsc=
  58 +github.com/fasthttp-contrib/websocket v0.0.0-20160511215533-1f3b11f56072/go.mod h1:duJ4Jxv5lDcvg4QuQr0oowTf7dz4/CR8NtyCooz9HL8=
  59 +github.com/fatih/structs v1.1.0 h1:Q7juDM0QtcnhCpeyLGQKyg4TOIghuNXrkL32pHAUMxo=
  60 +github.com/fatih/structs v1.1.0/go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga6PJ7M=
  61 +github.com/fortytw2/leaktest v1.3.0 h1:u8491cBMTQ8ft8aeV+adlcytMZylmA5nnwwkRZjI8vw=
48 github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g= 62 github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g=
  63 +github.com/frankban/quicktest v1.4.1 h1:Wv2VwvNn73pAdFIVUQRXYDFp31lXKbqblIXo/Q5GPSg=
49 github.com/frankban/quicktest v1.4.1/go.mod h1:36zfPVQyHxymz4cH7wlDmVwDrJuljRB60qkgn7rorfQ= 64 github.com/frankban/quicktest v1.4.1/go.mod h1:36zfPVQyHxymz4cH7wlDmVwDrJuljRB60qkgn7rorfQ=
50 github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= 65 github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
  66 +github.com/fsnotify/fsnotify v1.4.9 h1:hsms1Qyu0jgnwNXIxa+/V/PDsU6CfLf6CNO8H7IWoS4=
51 github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= 67 github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=
  68 +github.com/gavv/httpexpect v2.0.0+incompatible h1:1X9kcRshkSKEjNJJxX9Y9mQ5BRfbxU5kORdjhlA1yX8=
  69 +github.com/gavv/httpexpect v2.0.0+incompatible/go.mod h1:x+9tiU1YnrOvnB725RkpoLv1M62hOWzwo5OXotisrKc=
52 github.com/glendc/gopher-json v0.0.0-20170414221815-dc4743023d0c/go.mod h1:Gja1A+xZ9BoviGJNA2E9vFkPjjsl+CoJxSXiQM1UXtw= 70 github.com/glendc/gopher-json v0.0.0-20170414221815-dc4743023d0c/go.mod h1:Gja1A+xZ9BoviGJNA2E9vFkPjjsl+CoJxSXiQM1UXtw=
53 github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= 71 github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
54 github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= 72 github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
55 github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= 73 github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE=
56 github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= 74 github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk=
  75 +github.com/go-pg/pg/v10 v10.7.7 h1:jPooLMqrVVV5Ejpcxpwxv9R2gECT/+UEpz+qIzOUJ9A=
57 github.com/go-pg/pg/v10 v10.7.7/go.mod h1:d0w17Xw5x2DtbD/UgB9rnZg3FAck3eDHXff0Srrzuuk= 76 github.com/go-pg/pg/v10 v10.7.7/go.mod h1:d0w17Xw5x2DtbD/UgB9rnZg3FAck3eDHXff0Srrzuuk=
  77 +github.com/go-pg/zerochecker v0.2.0 h1:pp7f72c3DobMWOb2ErtZsnrPaSvHd2W4o9//8HtF4mU=
58 github.com/go-pg/zerochecker v0.2.0/go.mod h1:NJZ4wKL0NmTtz0GKCoJ8kym6Xn/EQzXRl2OnAe7MmDo= 78 github.com/go-pg/zerochecker v0.2.0/go.mod h1:NJZ4wKL0NmTtz0GKCoJ8kym6Xn/EQzXRl2OnAe7MmDo=
59 github.com/go-redis/redis v6.14.2+incompatible/go.mod h1:NAIEuMOZ/fxfXJIrKDQDz8wamY7mA7PouImQ2Jvg6kA= 79 github.com/go-redis/redis v6.14.2+incompatible/go.mod h1:NAIEuMOZ/fxfXJIrKDQDz8wamY7mA7PouImQ2Jvg6kA=
60 github.com/go-redis/redis/v7 v7.4.0/go.mod h1:JDNMw23GTyLNC4GZu9njt15ctBQVn7xjRfnwdHj/Dcg= 80 github.com/go-redis/redis/v7 v7.4.0/go.mod h1:JDNMw23GTyLNC4GZu9njt15ctBQVn7xjRfnwdHj/Dcg=
  81 +github.com/go-sql-driver/mysql v1.5.0 h1:ozyZYNQW3x3HtqT1jira07DN2PArx2v7/mN66gGcHOs=
61 github.com/go-sql-driver/mysql v1.5.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg= 82 github.com/go-sql-driver/mysql v1.5.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg=
62 github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= 83 github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=
63 github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= 84 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 @@ -74,64 +95,98 @@ github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:W
74 github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= 95 github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0=
75 github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= 96 github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8=
76 github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= 97 github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
  98 +github.com/golang/protobuf v1.4.3 h1:JjCZWpVbqXDqFVmTfYWEVTMIYrL/NPdPSCHPJ0T/raM=
77 github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= 99 github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
78 github.com/golang/snappy v0.0.0-20170215233205-553a64147049/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= 100 github.com/golang/snappy v0.0.0-20170215233205-553a64147049/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
79 github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= 101 github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
80 -github.com/golang/snappy v0.0.1 h1:Qgr9rKW7uDUkrbSmQeiDsGa8SjGyCOGtuasMWwvp2P4=  
81 github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= 102 github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
  103 +github.com/golang/snappy v0.0.3 h1:fHPg5GQYlCeLIPB9BZqMVR5nR9A+IM5zcgeTdjMYmLA=
  104 +github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
82 github.com/gomodule/redigo v2.0.0+incompatible/go.mod h1:B4C85qUVwatsJoIUNIfCRsp7qO0iAmpGFZ4EELWSbC4= 105 github.com/gomodule/redigo v2.0.0+incompatible/go.mod h1:B4C85qUVwatsJoIUNIfCRsp7qO0iAmpGFZ4EELWSbC4=
83 github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= 106 github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
84 github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= 107 github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
85 github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= 108 github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
86 github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 109 github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
87 github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 110 github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
  111 +github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
  112 +github.com/google/go-cmp v0.5.4 h1:L8R9j+yAqZuZjsqh/z+F1NCffTKKLShY6zXTItVIZ8M=
88 github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 113 github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
  114 +github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8=
  115 +github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU=
89 github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= 116 github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
90 github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= 117 github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI=
  118 +github.com/google/uuid v1.1.1 h1:Gkbcsh/GbpXz7lPftLA3P6TYMwjCLYm83jiFQZF/3gY=
91 github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= 119 github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
  120 +github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1 h1:EGx4pi6eqNxGaHF6qqu48+N2wcFQ5qg5FXgOdqsJ5d8=
  121 +github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY=
  122 +github.com/gorilla/websocket v1.4.2 h1:+/TMaTYc4QFitKJxsQ7Yye35DkWvkdLcvGKqM+x0Ufc=
  123 +github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
92 github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= 124 github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk=
93 github.com/hashicorp/go-uuid v1.0.1 h1:fv1ep09latC32wFoVwnqcnKJGnMSdBanPczbHAYm1BE= 125 github.com/hashicorp/go-uuid v1.0.1 h1:fv1ep09latC32wFoVwnqcnKJGnMSdBanPczbHAYm1BE=
94 github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= 126 github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro=
  127 +github.com/hashicorp/golang-lru v0.5.4 h1:YDjusn29QI/Das2iO9M0BHnIbxPeyuCHsjMW+lJfyTc=
95 github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= 128 github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4=
96 github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= 129 github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=
  130 +github.com/imkira/go-interpol v1.1.0 h1:KIiKr0VSG2CUW1hl1jpiyuzuJeKUUpC8iM1AIE7N1Vk=
  131 +github.com/imkira/go-interpol v1.1.0/go.mod h1:z0h2/2T3XF8kyEPpRgJ3kmNv+C43p+I/CoI+jC3w2iA=
97 github.com/jcmturner/gofork v0.0.0-20190328161633-dc7c13fece03 h1:FUwcHNlEqkqLjLBdCp5PRlCFijNjvcYANOZXzCfXwCM= 132 github.com/jcmturner/gofork v0.0.0-20190328161633-dc7c13fece03 h1:FUwcHNlEqkqLjLBdCp5PRlCFijNjvcYANOZXzCfXwCM=
98 github.com/jcmturner/gofork v0.0.0-20190328161633-dc7c13fece03/go.mod h1:MK8+TM0La+2rjBD4jE12Kj1pCCxK7d2LK/UM3ncEo0o= 133 github.com/jcmturner/gofork v0.0.0-20190328161633-dc7c13fece03/go.mod h1:MK8+TM0La+2rjBD4jE12Kj1pCCxK7d2LK/UM3ncEo0o=
  134 +github.com/jinzhu/inflection v1.0.0 h1:K317FqzuhWc8YvSVlFMCCUb36O/S9MCKRDI7QkRKD/E=
99 github.com/jinzhu/inflection v1.0.0/go.mod h1:h+uFLlag+Qp1Va5pdKtLDYj+kHp5pxUVkryuEj+Srlc= 135 github.com/jinzhu/inflection v1.0.0/go.mod h1:h+uFLlag+Qp1Va5pdKtLDYj+kHp5pxUVkryuEj+Srlc=
100 github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= 136 github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU=
101 github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= 137 github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
  138 +github.com/jtolds/gls v4.20.0+incompatible h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7C0MuV77Wo=
  139 +github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU=
102 github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= 140 github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w=
103 github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00= 141 github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00=
104 github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= 142 github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
105 -github.com/klauspost/compress v1.9.7 h1:hYW1gP94JUmAhBtJ+LNz5My+gBobDxPR1iVuKug26aA=  
106 github.com/klauspost/compress v1.9.7/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= 143 github.com/klauspost/compress v1.9.7/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A=
  144 +github.com/klauspost/compress v1.12.2 h1:2KCfW3I9M7nSc5wOqXAlW2v2U6v+w6cbjvbfp+OykW8=
  145 +github.com/klauspost/compress v1.12.2/go.mod h1:8dP1Hq4DHOhN9w426knH3Rhby4rFm6D8eO+e+Dq5Gzg=
107 github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= 146 github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
108 github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= 147 github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc=
  148 +github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI=
109 github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= 149 github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
110 github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= 150 github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
  151 +github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
111 github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= 152 github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
112 github.com/ledisdb/ledisdb v0.0.0-20200510135210-d35789ec47e6/go.mod h1:n931TsDuKuq+uX4v1fulaMbA/7ZLLhjc85h7chZGBCQ= 153 github.com/ledisdb/ledisdb v0.0.0-20200510135210-d35789ec47e6/go.mod h1:n931TsDuKuq+uX4v1fulaMbA/7ZLLhjc85h7chZGBCQ=
  154 +github.com/lib/pq v1.0.0 h1:X5PMW56eZitiTeO7tKzZxFCSpbFZJtkMMooicw2us9A=
113 github.com/lib/pq v1.0.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= 155 github.com/lib/pq v1.0.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo=
114 github.com/linmadan/egglib-go v0.0.0-20210527091316-06b0732fb5f6 h1:nyhVnOIXsESuhZ95Ak6VRSF+0fHeKlYWq0EvHByt5RU= 156 github.com/linmadan/egglib-go v0.0.0-20210527091316-06b0732fb5f6 h1:nyhVnOIXsESuhZ95Ak6VRSF+0fHeKlYWq0EvHByt5RU=
115 github.com/linmadan/egglib-go v0.0.0-20210527091316-06b0732fb5f6/go.mod h1:ZZuSWicGxpgN0OulARhuKwFJuJ9we0otaPVAJtz10yk= 157 github.com/linmadan/egglib-go v0.0.0-20210527091316-06b0732fb5f6/go.mod h1:ZZuSWicGxpgN0OulARhuKwFJuJ9we0otaPVAJtz10yk=
116 github.com/magefile/mage v1.10.0/go.mod h1:z5UZb/iS3GoOSn0JgWuiw7dxlurVYTu+/jHXqQg881A= 158 github.com/magefile/mage v1.10.0/go.mod h1:z5UZb/iS3GoOSn0JgWuiw7dxlurVYTu+/jHXqQg881A=
  159 +github.com/mattn/go-colorable v0.1.8 h1:c1ghPdyEDarC70ftn0y+A/Ee++9zz8ljHG1b13eJ0s8=
  160 +github.com/mattn/go-colorable v0.1.8/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc=
  161 +github.com/mattn/go-isatty v0.0.12 h1:wuysRhFDzyxgEmMf5xjvJ2M9dZoWAXNNr5LSBS7uHXY=
  162 +github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
  163 +github.com/mattn/go-sqlite3 v2.0.3+incompatible h1:gXHsfypPkaMZrKbD5209QV9jbUTJKjyR5WD3HYQSd+U=
117 github.com/mattn/go-sqlite3 v2.0.3+incompatible/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc= 164 github.com/mattn/go-sqlite3 v2.0.3+incompatible/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc=
  165 +github.com/matttproud/golang_protobuf_extensions v1.0.1 h1:4hp9jkHxhMHkqkrB3Ix0jegS5sx/RkqARlsWZ6pIwiU=
118 github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= 166 github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0=
  167 +github.com/mitchellh/mapstructure v1.3.3 h1:SzB1nHZ2Xi+17FP0zVQBHIZqvwRN9408fJO8h+eeNA8=
119 github.com/mitchellh/mapstructure v1.3.3/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= 168 github.com/mitchellh/mapstructure v1.3.3/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
120 github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= 169 github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
121 github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= 170 github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
122 github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= 171 github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
123 github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= 172 github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
  173 +github.com/moul/http2curl v1.0.0 h1:dRMWoAtb+ePxMlLkrCbAqh4TlPHXvoGUSQ323/9Zahs=
  174 +github.com/moul/http2curl v1.0.0/go.mod h1:8UbvGypXm98wA/IqH45anm5Y2Z6ep6O31QGOAZ3H0fQ=
124 github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= 175 github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
  176 +github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs=
125 github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= 177 github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno=
  178 +github.com/nxadm/tail v1.4.4 h1:DQuhQpB1tVlglWS2hLQ5OV6B5r8aGxSrPc5Qo6uTN78=
126 github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= 179 github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A=
127 github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= 180 github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
128 github.com/onsi/ginkgo v1.10.1/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= 181 github.com/onsi/ginkgo v1.10.1/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
129 github.com/onsi/ginkgo v1.12.0/go.mod h1:oUhWkIvk5aDxtKvDDuw8gItl8pKl42LzjC9KZE0HfGg= 182 github.com/onsi/ginkgo v1.12.0/go.mod h1:oUhWkIvk5aDxtKvDDuw8gItl8pKl42LzjC9KZE0HfGg=
130 github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk= 183 github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk=
  184 +github.com/onsi/ginkgo v1.14.2 h1:8mVmC9kjFFmA8H4pKMUhcblgifdkOIXPvbhN1T36q1M=
131 github.com/onsi/ginkgo v1.14.2/go.mod h1:iSB4RoI2tjJc9BBv4NKIKWKya62Rps+oPG/Lv9klQyY= 185 github.com/onsi/ginkgo v1.14.2/go.mod h1:iSB4RoI2tjJc9BBv4NKIKWKya62Rps+oPG/Lv9klQyY=
132 github.com/onsi/gomega v1.7.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= 186 github.com/onsi/gomega v1.7.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY=
133 github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= 187 github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY=
134 github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= 188 github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo=
  189 +github.com/onsi/gomega v1.10.3 h1:gph6h/qe9GSUw1NhH1gp+qb+h8rXD8Cy60Z32Qw3ELA=
135 github.com/onsi/gomega v1.10.3/go.mod h1:V9xEwhxec5O8UDM77eCW8vLymOMltsqPVYWrpDsH8xc= 190 github.com/onsi/gomega v1.10.3/go.mod h1:V9xEwhxec5O8UDM77eCW8vLymOMltsqPVYWrpDsH8xc=
136 github.com/opentracing/opentracing-go v1.2.0/go.mod h1:GxEUsuufX4nBwe+T+Wl9TAgYrxe9dPLANfrWvHYVTgc= 191 github.com/opentracing/opentracing-go v1.2.0/go.mod h1:GxEUsuufX4nBwe+T+Wl9TAgYrxe9dPLANfrWvHYVTgc=
137 github.com/pelletier/go-toml v1.0.1/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= 192 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 @@ -141,23 +196,32 @@ github.com/pierrec/lz4 v2.2.6+incompatible h1:6aCX4/YZ9v8q69hTyiR7dNLnTA3fgtKHVV
141 github.com/pierrec/lz4 v2.2.6+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= 196 github.com/pierrec/lz4 v2.2.6+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY=
142 github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= 197 github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
143 github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= 198 github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
  199 +github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
144 github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= 200 github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
  201 +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
145 github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= 202 github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
146 github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= 203 github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw=
147 github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= 204 github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo=
  205 +github.com/prometheus/client_golang v1.7.0 h1:wCi7urQOGBsYcQROHqpUUX4ct84xp40t9R9JX0FuA/U=
148 github.com/prometheus/client_golang v1.7.0/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= 206 github.com/prometheus/client_golang v1.7.0/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M=
149 github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= 207 github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo=
150 github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= 208 github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
151 github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= 209 github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
  210 +github.com/prometheus/client_model v0.2.0 h1:uq5h0d+GuxiXLJLNABMgp2qUWDPiLvgCzz2dUR+/W/M=
152 github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= 211 github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
153 github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= 212 github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4=
  213 +github.com/prometheus/common v0.10.0 h1:RyRA7RzGXQZiW+tGMr7sxa85G1z0yOpM1qq5c8lNawc=
154 github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo= 214 github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo=
155 github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= 215 github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk=
156 github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= 216 github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA=
  217 +github.com/prometheus/procfs v0.1.3 h1:F0+tqvhOksq22sc6iCHF5WGlWjdwj92p0udFh1VFBS8=
157 github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= 218 github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU=
158 github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a h1:9ZKAASQSHhDYGoxY8uLVpewe1GDZ2vu2Tr/vTdVAkFQ= 219 github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a h1:9ZKAASQSHhDYGoxY8uLVpewe1GDZ2vu2Tr/vTdVAkFQ=
159 github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= 220 github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4=
160 github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= 221 github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
  222 +github.com/sergi/go-diff v1.2.0 h1:XU+rvMAioB0UC3q1MFrIQy4Vo5/4VsRDQQXHsEya6xQ=
  223 +github.com/sergi/go-diff v1.2.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM=
  224 +github.com/shiena/ansicolor v0.0.0-20151119151921-a422bbe96644 h1:X+yvsM2yrEktyI+b2qND5gpH8YhURn0k8OCaeRnkINo=
161 github.com/shiena/ansicolor v0.0.0-20151119151921-a422bbe96644/go.mod h1:nkxAfR/5quYxwPZhyDxgasBMnRtBZd0FCEpawpjMUFg= 225 github.com/shiena/ansicolor v0.0.0-20151119151921-a422bbe96644/go.mod h1:nkxAfR/5quYxwPZhyDxgasBMnRtBZd0FCEpawpjMUFg=
162 github.com/siddontang/go v0.0.0-20170517070808-cb568a3e5cc0/go.mod h1:3yhqj7WBBfRhbBlzyOC3gUxftwsU0u8gqevxwIHQpMw= 226 github.com/siddontang/go v0.0.0-20170517070808-cb568a3e5cc0/go.mod h1:3yhqj7WBBfRhbBlzyOC3gUxftwsU0u8gqevxwIHQpMw=
163 github.com/siddontang/goredis v0.0.0-20150324035039-760763f78400/go.mod h1:DDcKzU3qCuvj/tPnimWSsZZzvk9qvkvrIL5naVBPh5s= 227 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 @@ -165,6 +229,12 @@ github.com/siddontang/rdb v0.0.0-20150307021120-fc89ed2e418d/go.mod h1:AMEsy7v5z
165 github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= 229 github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo=
166 github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= 230 github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE=
167 github.com/sirupsen/logrus v1.8.0/go.mod h1:4GuYW9TZmE769R5STWrRakJc4UqQ3+QQ95fyz7ENv1A= 231 github.com/sirupsen/logrus v1.8.0/go.mod h1:4GuYW9TZmE769R5STWrRakJc4UqQ3+QQ95fyz7ENv1A=
  232 +github.com/sirupsen/logrus v1.8.1 h1:dJKuHgqk1NNQlqoA6BTlM1Wf9DOH3NBjQyu0h9+AZZE=
  233 +github.com/sirupsen/logrus v1.8.1/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0=
  234 +github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d h1:zE9ykElWQ6/NYmHa3jpm/yHnI4xSofP+UP6SpjHcSeM=
  235 +github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc=
  236 +github.com/smartystreets/goconvey v1.6.4 h1:fv0U8FUIMPNf1L9lnHLvLhgicrIVChEkdzIKYqbNC9s=
  237 +github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA=
168 github.com/ssdb/gossdb v0.0.0-20180723034631-88f6b59b84ec/go.mod h1:QBvMkMya+gXctz3kmljlUCu/yB3GZ6oee+dUozsezQE= 238 github.com/ssdb/gossdb v0.0.0-20180723034631-88f6b59b84ec/go.mod h1:QBvMkMya+gXctz3kmljlUCu/yB3GZ6oee+dUozsezQE=
169 github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= 239 github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
170 github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= 240 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 @@ -173,24 +243,53 @@ github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UV
173 github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= 243 github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
174 github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= 244 github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
175 github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 245 github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
  246 +github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
176 github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 247 github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
177 github.com/syndtr/goleveldb v0.0.0-20160425020131-cfa635847112/go.mod h1:Z4AUp2Km+PwemOoO/VB5AOx9XSsIItzFjoJlOSiYmn0= 248 github.com/syndtr/goleveldb v0.0.0-20160425020131-cfa635847112/go.mod h1:Z4AUp2Km+PwemOoO/VB5AOx9XSsIItzFjoJlOSiYmn0=
178 github.com/syndtr/goleveldb v0.0.0-20181127023241-353a9fca669c/go.mod h1:Z4AUp2Km+PwemOoO/VB5AOx9XSsIItzFjoJlOSiYmn0= 249 github.com/syndtr/goleveldb v0.0.0-20181127023241-353a9fca669c/go.mod h1:Z4AUp2Km+PwemOoO/VB5AOx9XSsIItzFjoJlOSiYmn0=
  250 +github.com/tmthrgd/go-hex v0.0.0-20190904060850-447a3041c3bc h1:9lRDQMhESg+zvGYmW5DyG0UqvY96Bu5QYsTLvCHdrgo=
179 github.com/tmthrgd/go-hex v0.0.0-20190904060850-447a3041c3bc/go.mod h1:bciPuU6GHm1iF1pBvUfxfsH0Wmnc2VbpgvbI9ZWuIRs= 251 github.com/tmthrgd/go-hex v0.0.0-20190904060850-447a3041c3bc/go.mod h1:bciPuU6GHm1iF1pBvUfxfsH0Wmnc2VbpgvbI9ZWuIRs=
180 github.com/ugorji/go v0.0.0-20171122102828-84cb69a8af83/go.mod h1:hnLbHMwcvSihnDhEfx2/BzKp2xb0Y+ErdfYcrs9tkJQ= 252 github.com/ugorji/go v0.0.0-20171122102828-84cb69a8af83/go.mod h1:hnLbHMwcvSihnDhEfx2/BzKp2xb0Y+ErdfYcrs9tkJQ=
  253 +github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw=
  254 +github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc=
  255 +github.com/valyala/fasthttp v1.28.0 h1:ruVmTmZaBR5i67NqnjvvH5gEv0zwHfWtbjoyW98iho4=
  256 +github.com/valyala/fasthttp v1.28.0/go.mod h1:cmWIqlu99AO/RKcp1HWaViTqc57FswJOfYYdPJBl8BA=
  257 +github.com/valyala/tcplisten v1.0.0/go.mod h1:T0xQ8SeCZGxckz9qRXTfG43PvQ/mcWh7FwZEA7Ioqkc=
  258 +github.com/vmihailenco/bufpool v0.1.11 h1:gOq2WmBrq0i2yW5QJ16ykccQ4wH9UyEsgLm6czKAd94=
181 github.com/vmihailenco/bufpool v0.1.11/go.mod h1:AFf/MOy3l2CFTKbxwt0mp2MwnqjNEs5H/UxrkA5jxTQ= 259 github.com/vmihailenco/bufpool v0.1.11/go.mod h1:AFf/MOy3l2CFTKbxwt0mp2MwnqjNEs5H/UxrkA5jxTQ=
  260 +github.com/vmihailenco/msgpack/v5 v5.2.0 h1:ZhIAtVUP1mme8GIlpiAnmTzjSWMexA/uNF2We85DR0w=
182 github.com/vmihailenco/msgpack/v5 v5.2.0/go.mod h1:fEM7KuHcnm0GvDCztRpw9hV0PuoO2ciTismP6vjggcM= 261 github.com/vmihailenco/msgpack/v5 v5.2.0/go.mod h1:fEM7KuHcnm0GvDCztRpw9hV0PuoO2ciTismP6vjggcM=
  262 +github.com/vmihailenco/tagparser v0.1.2 h1:gnjoVuB/kljJ5wICEEOpx98oXMWPLj22G67Vbd1qPqc=
183 github.com/vmihailenco/tagparser v0.1.2/go.mod h1:OeAg3pn3UbLjkWt+rN9oFYB6u/cQgqMEUPoW2WPyhdI= 263 github.com/vmihailenco/tagparser v0.1.2/go.mod h1:OeAg3pn3UbLjkWt+rN9oFYB6u/cQgqMEUPoW2WPyhdI=
  264 +github.com/vmihailenco/tagparser/v2 v2.0.0 h1:y09buUbR+b5aycVFQs/g70pqKVZNBmxwAhO7/IwNM9g=
184 github.com/vmihailenco/tagparser/v2 v2.0.0/go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV6mEfg5OIWRZA9qds= 265 github.com/vmihailenco/tagparser/v2 v2.0.0/go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV6mEfg5OIWRZA9qds=
185 github.com/wendal/errors v0.0.0-20130201093226-f66c77a7882b/go.mod h1:Q12BUT7DqIlHRmgv3RskH+UCM/4eqVMgI0EMmlSpAXc= 266 github.com/wendal/errors v0.0.0-20130201093226-f66c77a7882b/go.mod h1:Q12BUT7DqIlHRmgv3RskH+UCM/4eqVMgI0EMmlSpAXc=
186 github.com/xdg/scram v0.0.0-20180814205039-7eeb5667e42c/go.mod h1:lB8K/P019DLNhemzwFU4jHLhdvlE6uDZjXFejJXr49I= 267 github.com/xdg/scram v0.0.0-20180814205039-7eeb5667e42c/go.mod h1:lB8K/P019DLNhemzwFU4jHLhdvlE6uDZjXFejJXr49I=
187 github.com/xdg/stringprep v1.0.0/go.mod h1:Jhud4/sHMO4oL310DaZAKk9ZaJ08SJfe+sJh0HrGL1Y= 268 github.com/xdg/stringprep v1.0.0/go.mod h1:Jhud4/sHMO4oL310DaZAKk9ZaJ08SJfe+sJh0HrGL1Y=
  269 +github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f h1:J9EGpcZtP0E/raorCMxlFGSTBrsSlaDGf3jU/qvAE2c=
  270 +github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU=
  271 +github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 h1:EzJWgHovont7NscjpAxXsDA8S8BMYve8Y5+7cuRE7R0=
  272 +github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415/go.mod h1:GwrjFmJcFw6At/Gs6z4yjiIwzuJ1/+UwLxMQDVQXShQ=
  273 +github.com/xeipuuv/gojsonschema v1.2.0 h1:LhYJRs+L4fBtjZUfuSZIKGeVu0QRy8e5Xi7D17UxZ74=
  274 +github.com/xeipuuv/gojsonschema v1.2.0/go.mod h1:anYRn/JVcOK2ZgGU+IjEV4nwlhoK5sQluxsYJ78Id3Y=
  275 +github.com/yalp/jsonpath v0.0.0-20180802001716-5cc68e5049a0 h1:6fRhSjgLCkTD3JnJxvaJ4Sj+TYblw757bqYgZaOq5ZY=
  276 +github.com/yalp/jsonpath v0.0.0-20180802001716-5cc68e5049a0/go.mod h1:/LWChgwKmvncFJFHJ7Gvn9wZArjbV5/FppcK2fKk/tI=
  277 +github.com/yudai/gojsondiff v1.0.0 h1:27cbfqXLVEJ1o8I6v3y9lg8Ydm53EKqHXAOMxEGlCOA=
  278 +github.com/yudai/gojsondiff v1.0.0/go.mod h1:AY32+k2cwILAkW1fbgxQ5mUmMiZFgLIV+FBNExI05xg=
  279 +github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82 h1:BHyfKlQyqbsFN5p3IfnEUduWvb9is428/nNb5L3U01M=
  280 +github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82/go.mod h1:lgjkn3NuSvDfVJdfcVVdX+jpBxNmX4rDAzaS45IcYoM=
  281 +github.com/yudai/pp v2.0.1+incompatible h1:Q4//iY4pNF6yPLZIigmvcl7k/bPgrcTPIFIcmawg5bI=
  282 +github.com/yudai/pp v2.0.1+incompatible/go.mod h1:PuxR/8QJ7cyCkFp/aUDS+JY727OFEZkTdatxwunjIkc=
188 github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= 283 github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
189 github.com/yuin/gopher-lua v0.0.0-20171031051903-609c9cd26973/go.mod h1:aEV29XrmTYFr3CiRxZeGHpkvbwq+prZduBqMaascyCU= 284 github.com/yuin/gopher-lua v0.0.0-20171031051903-609c9cd26973/go.mod h1:aEV29XrmTYFr3CiRxZeGHpkvbwq+prZduBqMaascyCU=
190 go.etcd.io/etcd v3.3.25+incompatible/go.mod h1:yaeTdrJi5lOmYerz05bd8+V7KubZs8YSFZfzsF9A6aI= 285 go.etcd.io/etcd v3.3.25+incompatible/go.mod h1:yaeTdrJi5lOmYerz05bd8+V7KubZs8YSFZfzsF9A6aI=
  286 +go.opentelemetry.io/otel v0.17.0 h1:6MKOu8WY4hmfpQ4oQn34u6rYhnf2sWf1LXYO/UFm71U=
191 go.opentelemetry.io/otel v0.17.0/go.mod h1:Oqtdxmf7UtEvL037ohlgnaYa1h7GtMh0NcSd9eqkC9s= 287 go.opentelemetry.io/otel v0.17.0/go.mod h1:Oqtdxmf7UtEvL037ohlgnaYa1h7GtMh0NcSd9eqkC9s=
  288 +go.opentelemetry.io/otel/metric v0.17.0 h1:t+5EioN8YFXQ2EH+1j6FHCKMUj+57zIDSnSGr/mWuug=
192 go.opentelemetry.io/otel/metric v0.17.0/go.mod h1:hUz9lH1rNXyEwWAhIWCMFWKhYtpASgSnObJFnU26dJ0= 289 go.opentelemetry.io/otel/metric v0.17.0/go.mod h1:hUz9lH1rNXyEwWAhIWCMFWKhYtpASgSnObJFnU26dJ0=
  290 +go.opentelemetry.io/otel/oteltest v0.17.0 h1:TyAihUowTDLqb4+m5ePAsR71xPJaTBJl4KDArIdi9k4=
193 go.opentelemetry.io/otel/oteltest v0.17.0/go.mod h1:JT/LGFxPwpN+nlsTiinSYjdIx3hZIGqHCpChcIZmdoE= 291 go.opentelemetry.io/otel/oteltest v0.17.0/go.mod h1:JT/LGFxPwpN+nlsTiinSYjdIx3hZIGqHCpChcIZmdoE=
  292 +go.opentelemetry.io/otel/trace v0.17.0 h1:SBOj64/GAOyWzs5F680yW1ITIfJkm6cJWL2YAvuL9xY=
194 go.opentelemetry.io/otel/trace v0.17.0/go.mod h1:bIujpqg6ZL6xUTubIUgziI1jSaUPthmabA/ygf/6Cfg= 293 go.opentelemetry.io/otel/trace v0.17.0/go.mod h1:bIujpqg6ZL6xUTubIUgziI1jSaUPthmabA/ygf/6Cfg=
195 go.uber.org/atomic v1.6.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= 294 go.uber.org/atomic v1.6.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ=
196 go.uber.org/multierr v1.5.0/go.mod h1:FeouvMocqHpRaaGuG9EjoKcStLC43Zu/fmqdUMPcKYU= 295 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 @@ -203,8 +302,9 @@ golang.org/x/crypto v0.0.0-20190404164418-38d8ce5564a5/go.mod h1:WFFai1msRO1wXaE
203 golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 302 golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
204 golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 303 golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
205 golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= 304 golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
206 -golang.org/x/crypto v0.0.0-20210218145215-b8e89b74b9df h1:y7QZzfUiTwWam+xBn29Ulb8CBwVN5UdzmMDavl9Whlw=  
207 golang.org/x/crypto v0.0.0-20210218145215-b8e89b74b9df/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= 305 golang.org/x/crypto v0.0.0-20210218145215-b8e89b74b9df/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I=
  306 +golang.org/x/crypto v0.0.0-20210513164829-c07d793c2f9a h1:kr2P4QFmQr29mSLA43kwrOcgcReGTfbE9N577tCTuBc=
  307 +golang.org/x/crypto v0.0.0-20210513164829-c07d793c2f9a/go.mod h1:P+XmwS30IXTQdn5tA2iutPOUgjI07+tq3H3K9MVA1s8=
208 golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= 308 golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
209 golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= 309 golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
210 golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= 310 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 @@ -213,6 +313,7 @@ golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHl
213 golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= 313 golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
214 golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= 314 golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc=
215 golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= 315 golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg=
  316 +golang.org/x/mod v0.3.0 h1:RM4zey1++hCTbCVQfnWeKs9/IEsaBLA8vTkd0WVtmH4=
216 golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= 317 golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
217 golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 318 golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
218 golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 319 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 @@ -227,8 +328,10 @@ golang.org/x/net v0.0.0-20190923162816-aa69164e4478/go.mod h1:z5CRVTTTmAJ677TzLL
227 golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 328 golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
228 golang.org/x/net v0.0.0-20201006153459-a7d1128ccaa0/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= 329 golang.org/x/net v0.0.0-20201006153459-a7d1128ccaa0/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
229 golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= 330 golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
230 -golang.org/x/net v0.0.0-20201110031124-69a78807bb2b h1:uwuIcX0g4Yl1NC5XAz37xsr2lTtcqevgzYNVt49waME=  
231 golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= 331 golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
  332 +golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
  333 +golang.org/x/net v0.0.0-20210510120150-4163338589ed h1:p9UgmWI9wKpfYmgaV/IZKGdXc5qEK45tDwwwDyjS26I=
  334 +golang.org/x/net v0.0.0-20210510120150-4163338589ed/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
232 golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= 335 golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
233 golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 336 golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
234 golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 337 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 @@ -250,20 +353,30 @@ golang.org/x/sys v0.0.0-20191010194322-b09406accb47/go.mod h1:h1NjWce9XRLGQEsW7w
250 golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 353 golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
251 golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 354 golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
252 golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 355 golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
  356 +golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
  357 +golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
253 golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 358 golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
254 golang.org/x/sys v0.0.0-20200519105757-fe76b779f299/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 359 golang.org/x/sys v0.0.0-20200519105757-fe76b779f299/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
255 golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 360 golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
256 golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 361 golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
  362 +golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
257 golang.org/x/sys v0.0.0-20210218155724-8ebf48af031b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 363 golang.org/x/sys v0.0.0-20210218155724-8ebf48af031b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
  364 +golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
  365 +golang.org/x/sys v0.0.0-20210514084401-e8d321eab015 h1:hZR0X1kPW+nwyJ9xRxqZk1vx5RUObAPBdKVvXPDUH/E=
  366 +golang.org/x/sys v0.0.0-20210514084401-e8d321eab015/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
258 golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= 367 golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw=
  368 +golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
259 golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 369 golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
260 golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= 370 golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
261 golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= 371 golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
  372 +golang.org/x/text v0.3.6 h1:aRYxNxv6iGQlyVaZmk6ZgYEDa+Jg18DxebPSrd6bg1M=
  373 +golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
262 golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 374 golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
263 golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 375 golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
264 golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 376 golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
265 golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= 377 golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
266 golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 378 golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
  379 +golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
267 golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= 380 golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
268 golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 381 golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
269 golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 382 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 @@ -271,10 +384,12 @@ golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5/go.mod h1:b+2E5dAYhXwXZwtn
271 golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 384 golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
272 golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 385 golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
273 golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 386 golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
  387 +golang.org/x/tools v0.0.0-20201211185031-d93e913c1a58 h1:1Bs6RVeBFtLZ8Yi1Hk07DiOqzvwLD/4hln4iahvFlag=
274 golang.org/x/tools v0.0.0-20201211185031-d93e913c1a58/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= 388 golang.org/x/tools v0.0.0-20201211185031-d93e913c1a58/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
275 golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 389 golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
276 golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 390 golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
277 golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 391 golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
  392 +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE=
278 golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 393 golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
279 google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= 394 google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
280 google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= 395 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 @@ -293,11 +408,13 @@ google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzi
293 google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= 408 google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
294 google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= 409 google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
295 google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= 410 google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
  411 +google.golang.org/protobuf v1.25.0 h1:Ejskq+SyPohKW+1uil0JJMtmHCgJPJ/qWTxr8qp+R4c=
296 google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= 412 google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c=
297 gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= 413 gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw=
298 gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 414 gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
299 gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 415 gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
300 gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 416 gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
  417 +gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f h1:BLraFXnmrev5lT+xlilqcH8XK9/i0At2xKjWk4p6zsU=
301 gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 418 gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
302 gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= 419 gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI=
303 gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= 420 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 @@ -305,22 +422,27 @@ gopkg.in/jcmturner/aescts.v1 v1.0.1 h1:cVVZBK2b1zY26haWB4vbBiZrfFQnfbTVrE3xZq6hr
305 gopkg.in/jcmturner/aescts.v1 v1.0.1/go.mod h1:nsR8qBOg+OucoIW+WMhB3GspUQXq9XorLnQb9XtvcOo= 422 gopkg.in/jcmturner/aescts.v1 v1.0.1/go.mod h1:nsR8qBOg+OucoIW+WMhB3GspUQXq9XorLnQb9XtvcOo=
306 gopkg.in/jcmturner/dnsutils.v1 v1.0.1 h1:cIuC1OLRGZrld+16ZJvvZxVJeKPsvd5eUIvxfoN5hSM= 423 gopkg.in/jcmturner/dnsutils.v1 v1.0.1 h1:cIuC1OLRGZrld+16ZJvvZxVJeKPsvd5eUIvxfoN5hSM=
307 gopkg.in/jcmturner/dnsutils.v1 v1.0.1/go.mod h1:m3v+5svpVOhtFAP/wSz+yzh4Mc0Fg7eRhxkJMWSIz9Q= 424 gopkg.in/jcmturner/dnsutils.v1 v1.0.1/go.mod h1:m3v+5svpVOhtFAP/wSz+yzh4Mc0Fg7eRhxkJMWSIz9Q=
  425 +gopkg.in/jcmturner/goidentity.v3 v3.0.0 h1:1duIyWiTaYvVx3YX2CYtpJbUFd7/UuPYCfgXtQ3VTbI=
308 gopkg.in/jcmturner/goidentity.v3 v3.0.0/go.mod h1:oG2kH0IvSYNIu80dVAyu/yoefjq1mNfM5bm88whjWx4= 426 gopkg.in/jcmturner/goidentity.v3 v3.0.0/go.mod h1:oG2kH0IvSYNIu80dVAyu/yoefjq1mNfM5bm88whjWx4=
309 gopkg.in/jcmturner/gokrb5.v7 v7.2.3 h1:hHMV/yKPwMnJhPuPx7pH2Uw/3Qyf+thJYlisUc44010= 427 gopkg.in/jcmturner/gokrb5.v7 v7.2.3 h1:hHMV/yKPwMnJhPuPx7pH2Uw/3Qyf+thJYlisUc44010=
310 gopkg.in/jcmturner/gokrb5.v7 v7.2.3/go.mod h1:l8VISx+WGYp+Fp7KRbsiUuXTTOnxIc3Tuvyavf11/WM= 428 gopkg.in/jcmturner/gokrb5.v7 v7.2.3/go.mod h1:l8VISx+WGYp+Fp7KRbsiUuXTTOnxIc3Tuvyavf11/WM=
311 gopkg.in/jcmturner/rpc.v1 v1.1.0 h1:QHIUxTX1ISuAv9dD2wJ9HWQVuWDX/Zc0PfeC2tjc4rU= 429 gopkg.in/jcmturner/rpc.v1 v1.1.0 h1:QHIUxTX1ISuAv9dD2wJ9HWQVuWDX/Zc0PfeC2tjc4rU=
312 gopkg.in/jcmturner/rpc.v1 v1.1.0/go.mod h1:YIdkC4XfD6GXbzje11McwsDuOlZQSb9W4vfLvuNnlv8= 430 gopkg.in/jcmturner/rpc.v1 v1.1.0/go.mod h1:YIdkC4XfD6GXbzje11McwsDuOlZQSb9W4vfLvuNnlv8=
313 gopkg.in/mgo.v2 v2.0.0-20190816093944-a6b53ec6cb22/go.mod h1:yeKp02qBN3iKW1OzL3MGk2IdtZzaj7SFntXj72NppTA= 431 gopkg.in/mgo.v2 v2.0.0-20190816093944-a6b53ec6cb22/go.mod h1:yeKp02qBN3iKW1OzL3MGk2IdtZzaj7SFntXj72NppTA=
  432 +gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ=
314 gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= 433 gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw=
315 gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 434 gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
316 gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 435 gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
317 gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 436 gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
318 gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 437 gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
319 gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 438 gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
  439 +gopkg.in/yaml.v2 v2.3.0 h1:clyUAQHOM3G0M3f5vQj7LuJrETvjVot3Z5el9nffUtU=
320 gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 440 gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
  441 +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=
321 gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= 442 gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
322 honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 443 honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
323 honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 444 honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
324 honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= 445 honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg=
325 honnef.co/go/tools v0.0.1-2020.1.5/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= 446 honnef.co/go/tools v0.0.1-2020.1.5/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
  447 +mellium.im/sasl v0.2.1 h1:nspKSRg7/SyO0cRGY71OkfHab8tf9kCts6a6oTDut0w=
326 mellium.im/sasl v0.2.1/go.mod h1:ROaEDLQNuf9vjKqE1SrAfnsobm2YKXT1gnN1uDp1PjQ= 448 mellium.im/sasl v0.2.1/go.mod h1:ROaEDLQNuf9vjKqE1SrAfnsobm2YKXT1gnN1uDp1PjQ=
1 package main 1 package main
2 2
3 -import "fmt" 3 +import (
  4 + "fmt"
  5 + "github.com/beego/beego/v2/server/web"
  6 + _ "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/infrastructure/pg"
  7 +)
4 8
5 func main() { 9 func main() {
6 - fmt.Print("") 10 + fmt.Print("Server Started!")
  11 +
  12 + // web主服务
  13 + web.Run()
7 } 14 }
  1 +package command
  2 +
  3 +import (
  4 + "fmt"
  5 + "reflect"
  6 + "strings"
  7 +
  8 + "github.com/beego/beego/v2/core/validation"
  9 +)
  10 +
  11 +type CreateCooperationModeCommand struct {
  12 + // 共创模式名称
  13 + CooperationModeName string `cname:"共创模式名称" json:"cooperationModeName" valid:"Required"`
  14 + // 共创模式编码,手动输入,唯一确定
  15 + CooperationModeNumber string `cname:"共创模式编码,手动输入,唯一确定" json:"cooperationModeNumber" valid:"Required"`
  16 + // 备注
  17 + Remarks string `cname:"备注" json:"remarks" valid:"Required"`
  18 + // 公司ID,通过集成REST上下文获取
  19 + CompanyId int64 `cname:"公司ID,通过集成REST上下文获取" json:"companyId,string" valid:"Required"`
  20 + // 组织机构ID
  21 + OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
  22 + // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
  23 + UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  24 +}
  25 +
  26 +func (createCooperationModeCommand *CreateCooperationModeCommand) Valid(validation *validation.Validation) {
  27 + validation.SetError("CustomValid", "未实现的自定义认证")
  28 +}
  29 +
  30 +func (createCooperationModeCommand *CreateCooperationModeCommand) ValidateCommand() error {
  31 + valid := validation.Validation{}
  32 + b, err := valid.Valid(createCooperationModeCommand)
  33 + if err != nil {
  34 + return err
  35 + }
  36 + if !b {
  37 + elem := reflect.TypeOf(createCooperationModeCommand).Elem()
  38 + for _, validErr := range valid.Errors {
  39 + field, isExist := elem.FieldByName(validErr.Field)
  40 + if isExist {
  41 + return fmt.Errorf(strings.Replace(validErr.Message, validErr.Field, field.Tag.Get("cname"), -1))
  42 + } else {
  43 + return fmt.Errorf(validErr.Message)
  44 + }
  45 + }
  46 + }
  47 + return nil
  48 +}
  1 +package command
  2 +
  3 +import (
  4 + "fmt"
  5 + "reflect"
  6 + "strings"
  7 +
  8 + "github.com/beego/beego/v2/core/validation"
  9 +)
  10 +
  11 +type RemoveCooperationModeCommand struct {
  12 + // 共创模式ID
  13 + CooperationModeId int64 `cname:"共创模式ID" json:"cooperationModeId,string" valid:"Required"`
  14 + // 公司ID,通过集成REST上下文获取
  15 + CompanyId int64 `cname:"公司ID,通过集成REST上下文获取" json:"companyId,string" valid:"Required"`
  16 + // 组织机构ID
  17 + OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
  18 + // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
  19 + UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  20 +}
  21 +
  22 +func (removeCooperationModeCommand *RemoveCooperationModeCommand) Valid(validation *validation.Validation) {
  23 + validation.SetError("CustomValid", "未实现的自定义认证")
  24 +}
  25 +
  26 +func (removeCooperationModeCommand *RemoveCooperationModeCommand) ValidateCommand() error {
  27 + valid := validation.Validation{}
  28 + b, err := valid.Valid(removeCooperationModeCommand)
  29 + if err != nil {
  30 + return err
  31 + }
  32 + if !b {
  33 + elem := reflect.TypeOf(removeCooperationModeCommand).Elem()
  34 + for _, validErr := range valid.Errors {
  35 + field, isExist := elem.FieldByName(validErr.Field)
  36 + if isExist {
  37 + return fmt.Errorf(strings.Replace(validErr.Message, validErr.Field, field.Tag.Get("cname"), -1))
  38 + } else {
  39 + return fmt.Errorf(validErr.Message)
  40 + }
  41 + }
  42 + }
  43 + return nil
  44 +}
  1 +package command
  2 +
  3 +import (
  4 + "fmt"
  5 + "reflect"
  6 + "strings"
  7 +
  8 + "github.com/beego/beego/v2/core/validation"
  9 +)
  10 +
  11 +type UpdateCooperationModeCommand struct {
  12 + // 共创模式ID
  13 + CooperationModeId string `cname:"共创模式id" json:"cooperationModeId" valid:"Required"`
  14 + // 共创模式名称
  15 + CooperationModeName string `cname:"共创模式名称" json:"cooperationModeName" valid:"Required"`
  16 + // 共创模式编码,手动输入,唯一确定
  17 + CooperationModeNumber string `cname:"共创模式编码,手动输入,唯一确定" json:"cooperationModeNumber" valid:"Required"`
  18 + // 备注
  19 + Remarks string `cname:"备注" json:"remarks" valid:"Required"`
  20 + // 公司ID,通过集成REST上下文获取
  21 + CompanyId int64 `cname:"公司ID,通过集成REST上下文获取" json:"companyId,string" valid:"Required"`
  22 + // 组织机构ID
  23 + OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
  24 + // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
  25 + UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  26 +}
  27 +
  28 +func (updateCooperationModeCommand *UpdateCooperationModeCommand) Valid(validation *validation.Validation) {
  29 + validation.SetError("CustomValid", "未实现的自定义认证")
  30 +}
  31 +
  32 +func (updateCooperationModeCommand *UpdateCooperationModeCommand) ValidateCommand() error {
  33 + valid := validation.Validation{}
  34 + b, err := valid.Valid(updateCooperationModeCommand)
  35 + if err != nil {
  36 + return err
  37 + }
  38 + if !b {
  39 + elem := reflect.TypeOf(updateCooperationModeCommand).Elem()
  40 + for _, validErr := range valid.Errors {
  41 + field, isExist := elem.FieldByName(validErr.Field)
  42 + if isExist {
  43 + return fmt.Errorf(strings.Replace(validErr.Message, validErr.Field, field.Tag.Get("cname"), -1))
  44 + } else {
  45 + return fmt.Errorf(validErr.Message)
  46 + }
  47 + }
  48 + }
  49 + return nil
  50 +}
  1 +package query
  2 +
  3 +import (
  4 + "fmt"
  5 + "reflect"
  6 + "strings"
  7 +
  8 + "github.com/beego/beego/v2/core/validation"
  9 +)
  10 +
  11 +type GetCooperationModeQuery struct {
  12 + // 共创模式ID
  13 + CooperationModeId int64 `cname:"共创模式ID" json:"cooperationModeId,string" valid:"Required"`
  14 + // 公司ID,通过集成REST上下文获取
  15 + CompanyId int64 `cname:"公司ID,通过集成REST上下文获取" json:"companyId,string" valid:"Required"`
  16 + // 组织机构ID
  17 + OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
  18 + // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
  19 + UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  20 +}
  21 +
  22 +func (getCooperationModeQuery *GetCooperationModeQuery) Valid(validation *validation.Validation) {
  23 + validation.SetError("CustomValid", "未实现的自定义认证")
  24 +}
  25 +
  26 +func (getCooperationModeQuery *GetCooperationModeQuery) ValidateQuery() error {
  27 + valid := validation.Validation{}
  28 + b, err := valid.Valid(getCooperationModeQuery)
  29 + if err != nil {
  30 + return err
  31 + }
  32 + if !b {
  33 + elem := reflect.TypeOf(getCooperationModeQuery).Elem()
  34 + for _, validErr := range valid.Errors {
  35 + field, isExist := elem.FieldByName(validErr.Field)
  36 + if isExist {
  37 + return fmt.Errorf(strings.Replace(validErr.Message, validErr.Field, field.Tag.Get("cname"), -1))
  38 + } else {
  39 + return fmt.Errorf(validErr.Message)
  40 + }
  41 + }
  42 + }
  43 + return nil
  44 +}
  1 +package query
  2 +
  3 +import (
  4 + "fmt"
  5 + "reflect"
  6 + "strings"
  7 +
  8 + "github.com/beego/beego/v2/core/validation"
  9 +)
  10 +
  11 +type ListCooperationModeQuery struct {
  12 + // 查询偏离量
  13 + Offset int `cname:"查询偏离量" json:"offset" valid:"Required"`
  14 + // 查询限制
  15 + Limit int `cname:"查询限制" json:"limit" valid:"Required"`
  16 + // 公司ID,通过集成REST上下文获取
  17 + CompanyId int64 `cname:"公司ID,通过集成REST上下文获取" json:"companyId,string" valid:"Required"`
  18 + // 组织机构ID
  19 + OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
  20 + // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
  21 + UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  22 +}
  23 +
  24 +func (listCooperationModeQuery *ListCooperationModeQuery) Valid(validation *validation.Validation) {
  25 + validation.SetError("CustomValid", "未实现的自定义认证")
  26 +}
  27 +
  28 +func (listCooperationModeQuery *ListCooperationModeQuery) ValidateQuery() error {
  29 + valid := validation.Validation{}
  30 + b, err := valid.Valid(listCooperationModeQuery)
  31 + if err != nil {
  32 + return err
  33 + }
  34 + if !b {
  35 + elem := reflect.TypeOf(listCooperationModeQuery).Elem()
  36 + for _, validErr := range valid.Errors {
  37 + field, isExist := elem.FieldByName(validErr.Field)
  38 + if isExist {
  39 + return fmt.Errorf(strings.Replace(validErr.Message, validErr.Field, field.Tag.Get("cname"), -1))
  40 + } else {
  41 + return fmt.Errorf(validErr.Message)
  42 + }
  43 + }
  44 + }
  45 + return nil
  46 +}
  1 +package query
  2 +
  3 +import (
  4 + "fmt"
  5 + "reflect"
  6 + "strings"
  7 +
  8 + "github.com/beego/beego/v2/core/validation"
  9 +)
  10 +
  11 +type SearchCooperationModeQuery struct {
  12 + // 页面大小
  13 + PageNumber int32 `cname:"页面大小" json:"pageNumber" valid:"Required"`
  14 + // 页面大小
  15 + PageSize int32 `cname:"页面大小" json:"pageSize" valid:"Required"`
  16 + // 共创模式名称
  17 + CooperationModeName string `cname:"共创模式名称" json:"cooperationModeName" valid:"Required"`
  18 + // 组织机构名称
  19 + OrganizationName string `cname:"组织机构名称" json:"organizationName,omitempty"`
  20 + // 公司ID,通过集成REST上下文获取
  21 + CompanyId int64 `cname:"公司ID,通过集成REST上下文获取" json:"companyId,string" valid:"Required"`
  22 + // 组织机构ID
  23 + OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
  24 + // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
  25 + UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  26 +}
  27 +
  28 +func (searchCooperationModeQuery *SearchCooperationModeQuery) Valid(validation *validation.Validation) {
  29 + validation.SetError("CustomValid", "未实现的自定义认证")
  30 +}
  31 +
  32 +func (searchCooperationModeQuery *SearchCooperationModeQuery) ValidateQuery() error {
  33 + valid := validation.Validation{}
  34 + b, err := valid.Valid(searchCooperationModeQuery)
  35 + if err != nil {
  36 + return err
  37 + }
  38 + if !b {
  39 + elem := reflect.TypeOf(searchCooperationModeQuery).Elem()
  40 + for _, validErr := range valid.Errors {
  41 + field, isExist := elem.FieldByName(validErr.Field)
  42 + if isExist {
  43 + return fmt.Errorf(strings.Replace(validErr.Message, validErr.Field, field.Tag.Get("cname"), -1))
  44 + } else {
  45 + return fmt.Errorf(validErr.Message)
  46 + }
  47 + }
  48 + }
  49 + return nil
  50 +}
  1 +package service
  2 +
  3 +import (
  4 + "fmt"
  5 + "github.com/linmadan/egglib-go/core/application"
  6 + "github.com/linmadan/egglib-go/utils/tool_funs"
  7 + "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/cooperationMode/command"
  8 + "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/cooperationMode/query"
  9 + "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/factory"
  10 + "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/domain"
  11 +)
  12 +
  13 +// 共创模式服务
  14 +type CooperationModeService struct {
  15 +}
  16 +
  17 +// 创建共创模式服务
  18 +func (cooperationModeService *CooperationModeService) CreateCooperationMode(createCooperationModeCommand *command.CreateCooperationModeCommand) (interface{}, error) {
  19 + if err := createCooperationModeCommand.ValidateCommand(); err != nil {
  20 + return nil, application.ThrowError(application.ARG_ERROR, err.Error())
  21 + }
  22 + transactionContext, err := factory.CreateTransactionContext(nil)
  23 + if err != nil {
  24 + return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
  25 + }
  26 + if err := transactionContext.StartTransaction(); err != nil {
  27 + return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
  28 + }
  29 + defer func() {
  30 + transactionContext.RollbackTransaction()
  31 + }()
  32 + newCooperationMode := &domain.CooperationMode{
  33 + CooperationModeName: createCooperationModeCommand.CooperationModeName,
  34 + CooperationModeNumber: createCooperationModeCommand.CooperationModeNumber,
  35 + Remarks: createCooperationModeCommand.Remarks,
  36 + //CompanyId: createCooperationModeCommand.CompanyId,
  37 + //OrgId: createCooperationModeCommand.OrgId,
  38 + //UserId: createCooperationModeCommand.UserId,
  39 + }
  40 + var cooperationModeRepository domain.CooperationModeRepository
  41 + if value, err := factory.CreateCooperationModeRepository(map[string]interface{}{
  42 + "transactionContext": transactionContext,
  43 + }); err != nil {
  44 + return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
  45 + } else {
  46 + cooperationModeRepository = value
  47 + }
  48 + if cooperationMode, err := cooperationModeRepository.Save(newCooperationMode); err != nil {
  49 + return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
  50 + } else {
  51 + if err := transactionContext.CommitTransaction(); err != nil {
  52 + return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
  53 + }
  54 + return cooperationMode, nil
  55 + }
  56 +}
  57 +
  58 +// 返回共创模式服务
  59 +func (cooperationModeService *CooperationModeService) GetCooperationMode(getCooperationModeQuery *query.GetCooperationModeQuery) (interface{}, error) {
  60 + if err := getCooperationModeQuery.ValidateQuery(); err != nil {
  61 + return nil, application.ThrowError(application.ARG_ERROR, err.Error())
  62 + }
  63 + transactionContext, err := factory.CreateTransactionContext(nil)
  64 + if err != nil {
  65 + return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
  66 + }
  67 + if err := transactionContext.StartTransaction(); err != nil {
  68 + return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
  69 + }
  70 + defer func() {
  71 + transactionContext.RollbackTransaction()
  72 + }()
  73 + var cooperationModeRepository domain.CooperationModeRepository
  74 + if value, err := factory.CreateCooperationModeRepository(map[string]interface{}{
  75 + "transactionContext": transactionContext,
  76 + }); err != nil {
  77 + return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
  78 + } else {
  79 + cooperationModeRepository = value
  80 + }
  81 + cooperationMode, err := cooperationModeRepository.FindOne(map[string]interface{}{"cooperationModeId": getCooperationModeQuery.CooperationModeId})
  82 + if err != nil {
  83 + return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
  84 + }
  85 + if cooperationMode == nil {
  86 + return nil, application.ThrowError(application.RES_NO_FIND_ERROR, fmt.Sprintf("%s", string(getCooperationModeQuery.CooperationModeId)))
  87 + } else {
  88 + if err := transactionContext.CommitTransaction(); err != nil {
  89 + return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
  90 + }
  91 + return cooperationMode, nil
  92 + }
  93 +}
  94 +
  95 +// 返回共创模式服务列表
  96 +func (cooperationModeService *CooperationModeService) ListCooperationMode(listCooperationModeQuery *query.ListCooperationModeQuery) (interface{}, error) {
  97 + if err := listCooperationModeQuery.ValidateQuery(); err != nil {
  98 + return nil, application.ThrowError(application.ARG_ERROR, err.Error())
  99 + }
  100 + transactionContext, err := factory.CreateTransactionContext(nil)
  101 + if err != nil {
  102 + return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
  103 + }
  104 + if err := transactionContext.StartTransaction(); err != nil {
  105 + return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
  106 + }
  107 + defer func() {
  108 + transactionContext.RollbackTransaction()
  109 + }()
  110 + var cooperationModeRepository domain.CooperationModeRepository
  111 + if value, err := factory.CreateCooperationModeRepository(map[string]interface{}{
  112 + "transactionContext": transactionContext,
  113 + }); err != nil {
  114 + return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
  115 + } else {
  116 + cooperationModeRepository = value
  117 + }
  118 + if count, cooperationModes, err := cooperationModeRepository.Find(tool_funs.SimpleStructToMap(listCooperationModeQuery)); err != nil {
  119 + return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
  120 + } else {
  121 + if err := transactionContext.CommitTransaction(); err != nil {
  122 + return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
  123 + }
  124 + return map[string]interface{}{
  125 + "count": count,
  126 + "cooperationModes": cooperationModes,
  127 + }, nil
  128 + }
  129 +}
  130 +
  131 +// 移除共创模式服务
  132 +func (cooperationModeService *CooperationModeService) RemoveCooperationMode(removeCooperationModeCommand *command.RemoveCooperationModeCommand) (interface{}, error) {
  133 + if err := removeCooperationModeCommand.ValidateCommand(); err != nil {
  134 + return nil, application.ThrowError(application.ARG_ERROR, err.Error())
  135 + }
  136 + transactionContext, err := factory.CreateTransactionContext(nil)
  137 + if err != nil {
  138 + return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
  139 + }
  140 + if err := transactionContext.StartTransaction(); err != nil {
  141 + return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
  142 + }
  143 + defer func() {
  144 + transactionContext.RollbackTransaction()
  145 + }()
  146 + var cooperationModeRepository domain.CooperationModeRepository
  147 + if value, err := factory.CreateCooperationModeRepository(map[string]interface{}{
  148 + "transactionContext": transactionContext,
  149 + }); err != nil {
  150 + return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
  151 + } else {
  152 + cooperationModeRepository = value
  153 + }
  154 + cooperationMode, err := cooperationModeRepository.FindOne(map[string]interface{}{"cooperationModeId": removeCooperationModeCommand.CooperationModeId})
  155 + if err != nil {
  156 + return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
  157 + }
  158 + if cooperationMode == nil {
  159 + return nil, application.ThrowError(application.RES_NO_FIND_ERROR, fmt.Sprintf("%s", string(removeCooperationModeCommand.CooperationModeId)))
  160 + }
  161 + if cooperationMode, err := cooperationModeRepository.Remove(cooperationMode); err != nil {
  162 + return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
  163 + } else {
  164 + if err := transactionContext.CommitTransaction(); err != nil {
  165 + return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
  166 + }
  167 + return cooperationMode, nil
  168 + }
  169 +}
  170 +
  171 +// 查询共创模式
  172 +func (cooperationModeService *CooperationModeService) SearchCooperationMode(searchCooperationModeQuery *query.SearchCooperationModeQuery) (interface{}, error) {
  173 + if err := searchCooperationModeQuery.ValidateQuery(); err != nil {
  174 + return nil, application.ThrowError(application.ARG_ERROR, err.Error())
  175 + }
  176 + transactionContext, err := factory.CreateTransactionContext(nil)
  177 + if err != nil {
  178 + return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
  179 + }
  180 + if err := transactionContext.StartTransaction(); err != nil {
  181 + return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
  182 + }
  183 + defer func() {
  184 + transactionContext.RollbackTransaction()
  185 + }()
  186 + if err := transactionContext.CommitTransaction(); err != nil {
  187 + return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
  188 + }
  189 + return nil, nil
  190 +}
  191 +
  192 +// 更新共创模式服务
  193 +func (cooperationModeService *CooperationModeService) UpdateCooperationMode(updateCooperationModeCommand *command.UpdateCooperationModeCommand) (interface{}, error) {
  194 + if err := updateCooperationModeCommand.ValidateCommand(); err != nil {
  195 + return nil, application.ThrowError(application.ARG_ERROR, err.Error())
  196 + }
  197 + transactionContext, err := factory.CreateTransactionContext(nil)
  198 + if err != nil {
  199 + return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
  200 + }
  201 + if err := transactionContext.StartTransaction(); err != nil {
  202 + return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
  203 + }
  204 + defer func() {
  205 + transactionContext.RollbackTransaction()
  206 + }()
  207 + var cooperationModeRepository domain.CooperationModeRepository
  208 + if value, err := factory.CreateCooperationModeRepository(map[string]interface{}{
  209 + "transactionContext": transactionContext,
  210 + }); err != nil {
  211 + return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
  212 + } else {
  213 + cooperationModeRepository = value
  214 + }
  215 + cooperationMode, err := cooperationModeRepository.FindOne(map[string]interface{}{"cooperationModeId": updateCooperationModeCommand.CooperationModeId})
  216 + if err != nil {
  217 + return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
  218 + }
  219 + if cooperationMode == nil {
  220 + return nil, application.ThrowError(application.RES_NO_FIND_ERROR, fmt.Sprintf("%s", string(updateCooperationModeCommand.CooperationModeId)))
  221 + }
  222 + if err := cooperationMode.Update(tool_funs.SimpleStructToMap(updateCooperationModeCommand)); err != nil {
  223 + return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error())
  224 + }
  225 + if cooperationMode, err := cooperationModeRepository.Save(cooperationMode); err != nil {
  226 + return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
  227 + } else {
  228 + if err := transactionContext.CommitTransaction(); err != nil {
  229 + return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
  230 + }
  231 + return cooperationMode, nil
  232 + }
  233 +}
  234 +
  235 +func NewCooperationModeService(options map[string]interface{}) *CooperationModeService {
  236 + newCooperationModeService := &CooperationModeService{}
  237 + return newCooperationModeService
  238 +}
1 package factory 1 package factory
2 2
  3 +import (
  4 + "github.com/linmadan/egglib-go/transaction/pg"
  5 + "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/domain"
  6 + "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/infrastructure/repository"
  7 +)
  8 +
3 func CreateCooperationModeRepository(options map[string]interface{}) (domain.CooperationModeRepository, error) { 9 func CreateCooperationModeRepository(options map[string]interface{}) (domain.CooperationModeRepository, error) {
4 var transactionContext *pg.TransactionContext 10 var transactionContext *pg.TransactionContext
5 if value, ok := options["transactionContext"]; ok { 11 if value, ok := options["transactionContext"]; ok {
@@ -5,9 +5,17 @@ import "os" @@ -5,9 +5,17 @@ import "os"
5 const SERVICE_NAME = "allied-creation-cooperation" 5 const SERVICE_NAME = "allied-creation-cooperation"
6 6
7 var LOG_LEVEL = "debug" 7 var LOG_LEVEL = "debug"
  8 +var LOG_FILE = "app.log"
  9 +var LOG_PREFIX = "[allied-creation-cooperation]"
8 10
9 func init() { 11 func init() {
10 if os.Getenv("LOG_LEVEL") != "" { 12 if os.Getenv("LOG_LEVEL") != "" {
11 LOG_LEVEL = os.Getenv("LOG_LEVEL") 13 LOG_LEVEL = os.Getenv("LOG_LEVEL")
12 } 14 }
  15 + if os.Getenv("LOG_FILE") != "" {
  16 + LOG_FILE = os.Getenv("LOG_FILE")
  17 + }
  18 + if os.Getenv("LOG_PREFIX") != "" {
  19 + LOG_PREFIX = os.Getenv("LOG_PREFIX")
  20 + }
13 } 21 }
@@ -2,10 +2,23 @@ package constant @@ -2,10 +2,23 @@ package constant
2 2
3 import "os" 3 import "os"
4 4
  5 +// kafka 地址
5 var KAFKA_HOSTS = "" 6 var KAFKA_HOSTS = ""
6 7
  8 +// kafka topic log stash
  9 +var TOPIC_LOG_STASH = "go_stash_dev"
  10 +
  11 +// 是否启用日志收集 (本地不启用)
  12 +var ENABLE_KAFKA_LOG = false
  13 +
7 func init() { 14 func init() {
8 if os.Getenv("KAFKA_HOSTS") != "" { 15 if os.Getenv("KAFKA_HOSTS") != "" {
9 KAFKA_HOSTS = os.Getenv("KAFKA_HOSTS") 16 KAFKA_HOSTS = os.Getenv("KAFKA_HOSTS")
10 } 17 }
  18 + if os.Getenv("TOPIC_LOG_STASH") != "" {
  19 + POSTGRESQL_PORT = os.Getenv("TOPIC_LOG_STASH")
  20 + }
  21 + if os.Getenv("ENABLE_KAFKA_LOG") != "" {
  22 + DISABLE_CREATE_TABLE = true
  23 + }
11 } 24 }
1 package pg 1 package pg
2 2
3 import ( 3 import (
  4 + "fmt"
  5 + "github.com/go-pg/pg/v10"
4 "github.com/go-pg/pg/v10/orm" 6 "github.com/go-pg/pg/v10/orm"
5 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/constant" 7 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/constant"
  8 + "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/infrastructure/pg/models"
  9 + "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/log"
6 10
7 - //_ "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/infrastructure/pg/models"  
8 "github.com/linmadan/egglib-go/persistent/pg/comment" 11 "github.com/linmadan/egglib-go/persistent/pg/comment"
9 "github.com/linmadan/egglib-go/persistent/pg/hooks" 12 "github.com/linmadan/egglib-go/persistent/pg/hooks"
  13 + _ "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/infrastructure/pg/models"
10 ) 14 )
11 15
12 var DB *pg.DB 16 var DB *pg.DB
@@ -19,10 +23,19 @@ func init() { @@ -19,10 +23,19 @@ func init() {
19 Addr: fmt.Sprintf("%s:%s", constant.POSTGRESQL_HOST, constant.POSTGRESQL_PORT), 23 Addr: fmt.Sprintf("%s:%s", constant.POSTGRESQL_HOST, constant.POSTGRESQL_PORT),
20 }) 24 })
21 if !constant.DISABLE_SQL_GENERATE_PRINT { 25 if !constant.DISABLE_SQL_GENERATE_PRINT {
22 - DB.AddQueryHook(hooks.SqlGeneratePrintHook{}) 26 + DB.AddQueryHook(hooks.SqlGeneratePrintHook{Logger: log.Logger})
23 } 27 }
24 if !constant.DISABLE_CREATE_TABLE { 28 if !constant.DISABLE_CREATE_TABLE {
25 - for _, model := range []interface{}{} { 29 + for _, model := range []interface{}{
  30 + &models.ContractUndertakerFeedback{},
  31 + &models.CooperationApplication{},
  32 + &models.CooperationContract{},
  33 + &models.CooperationMode{},
  34 + &models.CooperationProject{},
  35 + &models.DividendsEstimate{},
  36 + &models.DividendsIncentivesRule{},
  37 + &models.MoneyIncentivesRule{},
  38 + } {
26 err := DB.Model(model).CreateTable(&orm.CreateTableOptions{ 39 err := DB.Model(model).CreateTable(&orm.CreateTableOptions{
27 Temp: false, 40 Temp: false,
28 IfNotExists: true, 41 IfNotExists: true,
1 package models 1 package models
2 2
  3 +import (
  4 + "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/domain"
  5 + "time"
  6 +)
  7 +
3 type ContractUndertakerFeedback struct { 8 type ContractUndertakerFeedback struct {
4 tableName string `comment:"承接人反馈信息" pg:"contract_undertaker_feedbacks,alias:contract_undertaker_feedback"` 9 tableName string `comment:"承接人反馈信息" pg:"contract_undertaker_feedbacks,alias:contract_undertaker_feedback"`
5 // 合约承接方反馈记录ID 10 // 合约承接方反馈记录ID
6 FeedbackId int64 `comment:"合约承接方反馈记录ID"` 11 FeedbackId int64 `comment:"合约承接方反馈记录ID"`
7 // 合约承接方反馈内容附件 12 // 合约承接方反馈内容附件
8 - FeedbackAttachment []*Attachment `comment:"合约承接方反馈内容附件" pg:",array"` 13 + FeedbackAttachment []*domain.Attachment `comment:"合约承接方反馈内容附件"`
9 // 合约承接方反馈内容 14 // 合约承接方反馈内容
10 FeedbackContent string `comment:"合约承接方反馈内容"` 15 FeedbackContent string `comment:"合约承接方反馈内容"`
11 // 共创合约编号 16 // 共创合约编号
12 CooperationContractNumber string `comment:"共创合约编号"` 17 CooperationContractNumber string `comment:"共创合约编号"`
13 // 共创合约承接人 18 // 共创合约承接人
14 - ContractUndertaker *User `comment:"共创合约承接人"` 19 + ContractUndertaker *domain.User `comment:"共创合约承接人"`
15 // 共创模式 20 // 共创模式
16 CooperationMode *CooperationMode `comment:"共创模式"` 21 CooperationMode *CooperationMode `comment:"共创模式"`
17 // 数据所属组织机构 22 // 数据所属组织机构
18 - Org *Org `comment:"数据所属组织机构"` 23 + Org *domain.Org `comment:"数据所属组织机构"`
19 // 公司 24 // 公司
20 - Company *Company `comment:"公司"` 25 + Company *domain.Company `comment:"公司"`
21 // 更新时间 26 // 更新时间
22 UpdatedAt time.Time `comment:"更新时间"` 27 UpdatedAt time.Time `comment:"更新时间"`
23 // 删除时间 28 // 删除时间
1 package models 1 package models
2 2
  3 +import (
  4 + "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/domain"
  5 + "time"
  6 +)
  7 +
3 type CooperationApplication struct { 8 type CooperationApplication struct {
4 tableName string `comment:"共创申请实体" pg:"cooperation_applications,alias:cooperation_application"` 9 tableName string `comment:"共创申请实体" pg:"cooperation_applications,alias:cooperation_application"`
5 // 共创申请ID 10 // 共创申请ID
6 CooperationApplicationId int64 `comment:"共创申请ID" pg:"pk:cooperation_application_id"` 11 CooperationApplicationId int64 `comment:"共创申请ID" pg:"pk:cooperation_application_id"`
7 // 共创申请人 12 // 共创申请人
8 - CooperationApplicationApplicant *User `comment:"共创申请人"` 13 + CooperationApplicationApplicant *domain.User `comment:"共创申请人"`
9 // 共创申请描述附件 14 // 共创申请描述附件
10 - CooperationApplicationAttachment []*Attachment `comment:"共创申请描述附件" pg:",array"` 15 + CooperationApplicationAttachment []*domain.Attachment `comment:"共创申请描述附件"`
11 // 共创申请描述 16 // 共创申请描述
12 CooperationApplicationDescription string `comment:"共创申请描述"` 17 CooperationApplicationDescription string `comment:"共创申请描述"`
13 // 共创申请审核状态,1待审核,2已同意,3已拒绝 18 // 共创申请审核状态,1待审核,2已同意,3已拒绝
14 CooperationApplicationStatus int32 `comment:"共创申请审核状态,1待审核,2已同意,3已拒绝"` 19 CooperationApplicationStatus int32 `comment:"共创申请审核状态,1待审核,2已同意,3已拒绝"`
15 // 共创申请审核人 20 // 共创申请审核人
16 - CooperationApplicationVerifier *User `comment:"共创申请审核人"` 21 + CooperationApplicationVerifier *domain.User `comment:"共创申请审核人"`
17 // 共创申请审核描述 22 // 共创申请审核描述
18 CooperationApplicationVerifyDescription string `comment:"共创申请审核描述"` 23 CooperationApplicationVerifyDescription string `comment:"共创申请审核描述"`
19 // 共创申请审核时间 24 // 共创申请审核时间
@@ -23,9 +28,9 @@ type CooperationApplication struct { @@ -23,9 +28,9 @@ type CooperationApplication struct {
23 // 共创项目编号 28 // 共创项目编号
24 CooperationProject *CooperationProject `comment:"共创项目编号"` 29 CooperationProject *CooperationProject `comment:"共创项目编号"`
25 // 数据所属组织机构 30 // 数据所属组织机构
26 - Org *Org `comment:"数据所属组织机构"` 31 + Org *domain.Org `comment:"数据所属组织机构"`
27 // 公司 32 // 公司
28 - Company *Company `comment:"公司"` 33 + Company *domain.Company `comment:"公司"`
29 // 创建时间 34 // 创建时间
30 CreatedAt time.Time `comment:"创建时间"` 35 CreatedAt time.Time `comment:"创建时间"`
31 // 删除时间 36 // 删除时间
1 package models 1 package models
2 2
  3 +import (
  4 + "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/domain"
  5 + "time"
  6 +)
  7 +
3 type CooperationContract struct { 8 type CooperationContract struct {
4 tableName string `comment:"共创项目合约实体" pg:"cooperation_contracts,alias:cooperation_contract"` 9 tableName string `comment:"共创项目合约实体" pg:"cooperation_contracts,alias:cooperation_contract"`
5 // 共创合约ID 10 // 共创合约ID
@@ -11,23 +16,23 @@ type CooperationContract struct { @@ -11,23 +16,23 @@ type CooperationContract struct {
11 // 共创合约编号 16 // 共创合约编号
12 CooperationContractNumber string `comment:"共创合约编号"` 17 CooperationContractNumber string `comment:"共创合约编号"`
13 // 合约推荐人 18 // 合约推荐人
14 - CooperationContractReferrer *User `comment:"合约推荐人"` 19 + CooperationContractReferrer *domain.User `comment:"合约推荐人"`
15 // 共创合约业务员 20 // 共创合约业务员
16 - CooperationContractSalesman *User `comment:"共创合约业务员"` 21 + CooperationContractSalesman *domain.User `comment:"共创合约业务员"`
17 // 共创合约承接对象,1员工,2共创用户,3公开 22 // 共创合约承接对象,1员工,2共创用户,3公开
18 CooperationContractUndertakerType []int32 `comment:"共创合约承接对象,1员工,2共创用户,3公开" pg:",array"` 23 CooperationContractUndertakerType []int32 `comment:"共创合约承接对象,1员工,2共创用户,3公开" pg:",array"`
19 // 共创合约发起人 24 // 共创合约发起人
20 - CooperationContractSponsor *User `comment:"共创合约发起人"` 25 + CooperationContractSponsor *domain.User `comment:"共创合约发起人"`
21 // 共创模式或者合伙模式 26 // 共创模式或者合伙模式
22 CooperationMode *CooperationMode `comment:"共创模式或者合伙模式"` 27 CooperationMode *CooperationMode `comment:"共创模式或者合伙模式"`
23 // 合约状态,1启用,2禁用 28 // 合约状态,1启用,2禁用
24 Status int32 `comment:"合约状态,1启用,2禁用"` 29 Status int32 `comment:"合约状态,1启用,2禁用"`
25 // 数据所属组织机构 30 // 数据所属组织机构
26 - Org *Org `comment:"数据所属组织机构"` 31 + Org *domain.Org `comment:"数据所属组织机构"`
27 // 公司 32 // 公司
28 - Company *Company `comment:"公司"` 33 + Company *domain.Company `comment:"公司"`
29 // 操作人 34 // 操作人
30 - Operator *User `comment:"操作人"` 35 + Operator *domain.User `comment:"操作人"`
31 // 操作时间 36 // 操作时间
32 OperateTime time.Time `comment:"操作时间"` 37 OperateTime time.Time `comment:"操作时间"`
33 // 创建时间 38 // 创建时间
1 package models 1 package models
2 2
  3 +import (
  4 + "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/domain"
  5 + "time"
  6 +)
  7 +
3 type MoneyIncentivesRule struct { 8 type MoneyIncentivesRule struct {
4 tableName string `comment:"金额激励规则实体" pg:"money_incentives_rules,alias:money_incentives_rule"` 9 tableName string `comment:"金额激励规则实体" pg:"money_incentives_rules,alias:money_incentives_rule"`
5 // 金额激励规则ID 10 // 金额激励规则ID
6 - MoneyIcentivesRuleId int64 `comment:"金额激励规则ID"` 11 + MoneyIncentivesRuleId int64 `comment:"金额激励规则ID"`
7 // 关联的共创合约编号 12 // 关联的共创合约编号
8 CooperationContractNumber string `comment:"关联的共创合约编号"` 13 CooperationContractNumber string `comment:"关联的共创合约编号"`
9 // 激励金额 14 // 激励金额
@@ -21,9 +26,9 @@ type MoneyIncentivesRule struct { @@ -21,9 +26,9 @@ type MoneyIncentivesRule struct {
21 // 业务员抽成比例 26 // 业务员抽成比例
22 SalesmanPercentage float64 `comment:"业务员抽成比例"` 27 SalesmanPercentage float64 `comment:"业务员抽成比例"`
23 // 数据所属组织机构 28 // 数据所属组织机构
24 - Org *Org `comment:"数据所属组织机构"` 29 + Org *domain.Org `comment:"数据所属组织机构"`
25 // 公司 30 // 公司
26 - Company *Company `comment:"公司"` 31 + Company *domain.Company `comment:"公司"`
27 // 更新时间 32 // 更新时间
28 UpdatedAt time.Time `comment:"更新时间"` 33 UpdatedAt time.Time `comment:"更新时间"`
29 // 删除时间 34 // 删除时间
@@ -7,7 +7,7 @@ import ( @@ -7,7 +7,7 @@ import (
7 7
8 func TransformToMoneyIncentivesRuleDomainModelFromPgModels(moneyIncentivesRuleModel *models.MoneyIncentivesRule) (*domain.MoneyIncentivesRule, error) { 8 func TransformToMoneyIncentivesRuleDomainModelFromPgModels(moneyIncentivesRuleModel *models.MoneyIncentivesRule) (*domain.MoneyIncentivesRule, error) {
9 return &domain.MoneyIncentivesRule{ 9 return &domain.MoneyIncentivesRule{
10 - MoneyIcentivesRuleId: moneyIncentivesRuleModel.MoneyIcentivesRuleId, 10 + MoneyIncentivesRuleId: moneyIncentivesRuleModel.MoneyIncentivesRuleId,
11 CooperationContractNumber: moneyIncentivesRuleModel.CooperationContractNumber, 11 CooperationContractNumber: moneyIncentivesRuleModel.CooperationContractNumber,
12 MoneyIncentivesAmount: moneyIncentivesRuleModel.MoneyIncentivesAmount, 12 MoneyIncentivesAmount: moneyIncentivesRuleModel.MoneyIncentivesAmount,
13 MoneyIncentivesStage: moneyIncentivesRuleModel.MoneyIncentivesStage, 13 MoneyIncentivesStage: moneyIncentivesRuleModel.MoneyIncentivesStage,
@@ -12,4 +12,9 @@ func init() { @@ -12,4 +12,9 @@ func init() {
12 Logger = logrus.NewLogrusLogger() 12 Logger = logrus.NewLogrusLogger()
13 Logger.SetServiceName(constant.SERVICE_NAME) 13 Logger.SetServiceName(constant.SERVICE_NAME)
14 Logger.SetLevel(constant.LOG_LEVEL) 14 Logger.SetLevel(constant.LOG_LEVEL)
  15 +
  16 + if constant.ENABLE_KAFKA_LOG {
  17 + w, _ := logrus.NewKafkaWriter(constant.KAFKA_HOSTS, constant.TOPIC_LOG_STASH, false)
  18 + Logger.AddHook(w)
  19 + }
15 } 20 }
@@ -2,12 +2,15 @@ package beego @@ -2,12 +2,15 @@ package beego
2 2
3 import ( 3 import (
4 "github.com/beego/beego/v2/server/web" 4 "github.com/beego/beego/v2/server/web"
  5 + "github.com/beego/beego/v2/server/web/context"
5 "github.com/linmadan/egglib-go/web/beego/filters" 6 "github.com/linmadan/egglib-go/web/beego/filters"
  7 + "net/http"
6 "os" 8 "os"
7 "strconv" 9 "strconv"
  10 + "time"
8 11
9 - //_ "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/port/beego/routers"  
10 . "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/log" 12 . "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/log"
  13 + _ "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/port/beego/routers"
11 ) 14 )
12 15
13 func init() { 16 func init() {
@@ -26,7 +29,25 @@ func init() { @@ -26,7 +29,25 @@ func init() {
26 web.BConfig.Listen.HTTPPort = port 29 web.BConfig.Listen.HTTPPort = port
27 } 30 }
28 } 31 }
  32 + web.InsertFilter("/*", web.BeforeRouter, AllowCors())
29 web.InsertFilter("/*", web.BeforeExec, filters.AllowCors()) 33 web.InsertFilter("/*", web.BeforeExec, filters.AllowCors())
30 web.InsertFilter("/*", web.BeforeExec, filters.CreateRequstLogFilter(Logger)) 34 web.InsertFilter("/*", web.BeforeExec, filters.CreateRequstLogFilter(Logger))
31 web.InsertFilter("/*", web.AfterExec, filters.CreateResponseLogFilter(Logger), web.WithReturnOnOutput(false)) 35 web.InsertFilter("/*", web.AfterExec, filters.CreateResponseLogFilter(Logger), web.WithReturnOnOutput(false))
  36 +
  37 + // 默认时区设置
  38 + timeLocal, _ := time.LoadLocation("Asia/Chongqing")
  39 + time.Local = timeLocal
  40 +}
  41 +
  42 +func AllowCors() func(ctx *context.Context) {
  43 + return func(ctx *context.Context) {
  44 + ctx.Output.Header("Access-Control-Allow-Methods", "OPTIONS,DELETE,POST,GET,PUT,PATCH")
  45 + 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")
  46 + ctx.Output.Header("Access-Control-Allow-Credentials", "true")
  47 + ctx.Output.Header("Access-Control-Allow-Origin", "*")
  48 + if ctx.Input.Method() == http.MethodOptions {
  49 + ctx.Output.SetStatus(http.StatusOK)
  50 + _ = ctx.Output.Body([]byte("options support"))
  51 + }
  52 + }
32 } 53 }
  1 +package controllers
  2 +
  3 +import (
  4 + "github.com/linmadan/egglib-go/web/beego"
  5 + "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/cooperationMode/command"
  6 + "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/cooperationMode/query"
  7 + "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/cooperationMode/service"
  8 +)
  9 +
  10 +type CooperationModeController struct {
  11 + beego.BaseController
  12 +}
  13 +
  14 +func (controller *CooperationModeController) CreateCooperationMode() {
  15 + cooperationModeService := service.NewCooperationModeService(nil)
  16 + createCooperationModeCommand := &command.CreateCooperationModeCommand{}
  17 + controller.Unmarshal(createCooperationModeCommand)
  18 + data, err := cooperationModeService.CreateCooperationMode(createCooperationModeCommand)
  19 + controller.Response(data, err)
  20 +}
  21 +
  22 +func (controller *CooperationModeController) UpdateCooperationMode() {
  23 + cooperationModeService := service.NewCooperationModeService(nil)
  24 + updateCooperationModeCommand := &command.UpdateCooperationModeCommand{}
  25 + controller.Unmarshal(updateCooperationModeCommand)
  26 + cooperationModeId := controller.GetString(":cooperationModeId")
  27 + updateCooperationModeCommand.CooperationModeId = cooperationModeId
  28 + data, err := cooperationModeService.UpdateCooperationMode(updateCooperationModeCommand)
  29 + controller.Response(data, err)
  30 +}
  31 +
  32 +func (controller *CooperationModeController) GetCooperationMode() {
  33 + cooperationModeService := service.NewCooperationModeService(nil)
  34 + getCooperationModeQuery := &query.GetCooperationModeQuery{}
  35 + cooperationModeId, _ := controller.GetInt64(":cooperationModeId")
  36 + getCooperationModeQuery.CooperationModeId = cooperationModeId
  37 + data, err := cooperationModeService.GetCooperationMode(getCooperationModeQuery)
  38 + controller.Response(data, err)
  39 +}
  40 +
  41 +func (controller *CooperationModeController) RemoveCooperationMode() {
  42 + cooperationModeService := service.NewCooperationModeService(nil)
  43 + removeCooperationModeCommand := &command.RemoveCooperationModeCommand{}
  44 + controller.Unmarshal(removeCooperationModeCommand)
  45 + cooperationModeId, _ := controller.GetInt64(":cooperationModeId")
  46 + removeCooperationModeCommand.CooperationModeId = cooperationModeId
  47 + data, err := cooperationModeService.RemoveCooperationMode(removeCooperationModeCommand)
  48 + controller.Response(data, err)
  49 +}
  50 +
  51 +func (controller *CooperationModeController) SearchCooperationMode() {
  52 + cooperationModeService := service.NewCooperationModeService(nil)
  53 + searchCooperationModeQuery := &query.SearchCooperationModeQuery{}
  54 + data, err := cooperationModeService.SearchCooperationMode(searchCooperationModeQuery)
  55 + controller.Response(data, err)
  56 +}
  57 +
  58 +func (controller *CooperationModeController) ListCooperationMode() {
  59 + cooperationModeService := service.NewCooperationModeService(nil)
  60 + listCooperationModeQuery := &query.ListCooperationModeQuery{}
  61 + offset, _ := controller.GetInt("offset")
  62 + listCooperationModeQuery.Offset = offset
  63 + limit, _ := controller.GetInt("limit")
  64 + listCooperationModeQuery.Limit = limit
  65 + data, err := cooperationModeService.ListCooperationMode(listCooperationModeQuery)
  66 + controller.Response(data, err)
  67 +}
  1 +package routers
  2 +
  3 +import (
  4 + "github.com/beego/beego/v2/server/web"
  5 + "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/port/beego/controllers"
  6 +)
  7 +
  8 +func init() {
  9 + web.Router("/cooperation-modes/", &controllers.CooperationModeController{}, "Post:CreateCooperationMode")
  10 + web.Router("/cooperation-modes/:cooperationModeId", &controllers.CooperationModeController{}, "Put:UpdateCooperationMode")
  11 + web.Router("/cooperation-modes/:cooperationModeId", &controllers.CooperationModeController{}, "Get:GetCooperationMode")
  12 + web.Router("/cooperation-modes/:cooperationModeId", &controllers.CooperationModeController{}, "Delete:RemoveCooperationMode")
  13 + web.Router("/cooperation-modes/search", &controllers.CooperationModeController{}, "Post:SearchCooperationMode")
  14 + web.Router("/cooperation-modes/", &controllers.CooperationModeController{}, "Get:ListCooperationMode")
  15 +}
  1 +package cooperation_mode
  2 +
  3 +import (
  4 + "net/http"
  5 + "net/http/httptest"
  6 + "testing"
  7 +
  8 + "github.com/beego/beego/v2/server/web"
  9 + . "github.com/onsi/ginkgo"
  10 + . "github.com/onsi/gomega"
  11 + _ "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application"
  12 + _ "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/infrastructure/pg"
  13 + _ "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/port/beego"
  14 +)
  15 +
  16 +func TestCooperationMode(t *testing.T) {
  17 + RegisterFailHandler(Fail)
  18 + RunSpecs(t, "Beego Port CooperationMode Correlations Test Case Suite")
  19 +}
  20 +
  21 +var handler http.Handler
  22 +var server *httptest.Server
  23 +
  24 +var _ = BeforeSuite(func() {
  25 + handler = web.BeeApp.Handlers
  26 + server = httptest.NewServer(handler)
  27 +})
  28 +
  29 +var _ = AfterSuite(func() {
  30 + server.Close()
  31 +})
  1 +package cooperation_mode
  2 +
  3 +import (
  4 + "net/http"
  5 +
  6 + "github.com/gavv/httpexpect"
  7 + . "github.com/onsi/ginkgo"
  8 + . "github.com/onsi/gomega"
  9 + pG "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/infrastructure/pg"
  10 +)
  11 +
  12 +var _ = Describe("创建共创模式服务", func() {
  13 + Describe("提交数据创建共创模式服务", func() {
  14 + Context("提交正确的新共创模式实体数据", func() {
  15 + It("返回共创模式实体数据", func() {
  16 + httpExpect := httpexpect.New(GinkgoT(), server.URL)
  17 + body := map[string]interface{}{
  18 + "cooperationModeName": "string",
  19 + "cooperationModeNumber": "string",
  20 + "remarks": "string",
  21 + "companyId": "int64",
  22 + "orgId": "int64",
  23 + "userId": "int64",
  24 + }
  25 + httpExpect.POST("/cooperation-modes/").
  26 + WithJSON(body).
  27 + Expect().
  28 + Status(http.StatusOK).
  29 + JSON().
  30 + Object().
  31 + ContainsKey("code").ValueEqual("code", 0).
  32 + ContainsKey("msg").ValueEqual("msg", "ok").
  33 + ContainsKey("data").Value("data").Object().
  34 + ContainsKey("cooperationModeId").ValueNotEqual("cooperationModeId", BeZero())
  35 + })
  36 + })
  37 + })
  38 + AfterEach(func() {
  39 + _, err := pG.DB.Exec("DELETE FROM cooperation_modes WHERE true")
  40 + Expect(err).NotTo(HaveOccurred())
  41 + })
  42 +})
  1 +package cooperation_mode
  2 +
  3 +import (
  4 + "github.com/go-pg/pg/v10"
  5 + "net/http"
  6 +
  7 + "github.com/gavv/httpexpect"
  8 + . "github.com/onsi/ginkgo"
  9 + . "github.com/onsi/gomega"
  10 + pG "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/infrastructure/pg"
  11 +)
  12 +
  13 +var _ = Describe("返回共创模式服务", func() {
  14 + var cooperationModeId int64
  15 + BeforeEach(func() {
  16 + _, err := pG.DB.QueryOne(
  17 + pg.Scan(&cooperationModeId),
  18 + "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",
  19 + "testCooperationModeId", "testCooperationModeNumber", "testCooperationModeName", "testStatus", "testOrg", "testCompany", "testRemarks", "testOperator", "testOperateTime", "testUpdatedAt", "testDeletedAt", "testCreatedAt")
  20 + Expect(err).NotTo(HaveOccurred())
  21 + })
  22 + Describe("根据cooperationModeId参数返回共创模式实体", func() {
  23 + Context("传入有效的cooperationModeId", func() {
  24 + It("返回共创模式实体数据", func() {
  25 + httpExpect := httpexpect.New(GinkgoT(), server.URL)
  26 + httpExpect.GET("/cooperation-modes/{cooperationModeId}").
  27 + Expect().
  28 + Status(http.StatusOK).
  29 + JSON().
  30 + Object().
  31 + ContainsKey("code").ValueEqual("code", 0).
  32 + ContainsKey("msg").ValueEqual("msg", "ok").
  33 + ContainsKey("data").Value("data").Object()
  34 + })
  35 + })
  36 + })
  37 + AfterEach(func() {
  38 + _, err := pG.DB.Exec("DELETE FROM cooperation_modes WHERE true")
  39 + Expect(err).NotTo(HaveOccurred())
  40 + })
  41 +})
  1 +package cooperation_mode
  2 +
  3 +import (
  4 + "github.com/go-pg/pg/v10"
  5 + "net/http"
  6 +
  7 + "github.com/gavv/httpexpect"
  8 + . "github.com/onsi/ginkgo"
  9 + . "github.com/onsi/gomega"
  10 + pG "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/infrastructure/pg"
  11 +)
  12 +
  13 +var _ = Describe("返回共创模式服务列表", func() {
  14 + var cooperationModeId int64
  15 + BeforeEach(func() {
  16 + _, err := pG.DB.QueryOne(
  17 + pg.Scan(&cooperationModeId),
  18 + "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",
  19 + "testCooperationModeId", "testCooperationModeNumber", "testCooperationModeName", "testStatus", "testOrg", "testCompany", "testRemarks", "testOperator", "testOperateTime", "testUpdatedAt", "testDeletedAt", "testCreatedAt")
  20 + Expect(err).NotTo(HaveOccurred())
  21 + })
  22 + Describe("根据参数返回共创模式实体列表", func() {
  23 + Context("传入有效的参数", func() {
  24 + It("返回共创模式实体数据列表", func() {
  25 + httpExpect := httpexpect.New(GinkgoT(), server.URL)
  26 + httpExpect.GET("/cooperation-modes/").
  27 + WithQuery("offset", "int").
  28 + WithQuery("limit", "int").
  29 + Expect().
  30 + Status(http.StatusOK).
  31 + JSON().
  32 + Object().
  33 + ContainsKey("code").ValueEqual("code", 0).
  34 + ContainsKey("msg").ValueEqual("msg", "ok").
  35 + ContainsKey("data").Value("data").Object().
  36 + ContainsKey("count").ValueEqual("count", 1).
  37 + ContainsKey("cooperationModes").Value("cooperationModes").Array()
  38 + })
  39 + })
  40 + })
  41 + AfterEach(func() {
  42 + _, err := pG.DB.Exec("DELETE FROM cooperation_modes WHERE true")
  43 + Expect(err).NotTo(HaveOccurred())
  44 + })
  45 +})
  1 +package cooperation_mode
  2 +
  3 +import (
  4 + "github.com/go-pg/pg/v10"
  5 + "net/http"
  6 +
  7 + "github.com/gavv/httpexpect"
  8 + . "github.com/onsi/ginkgo"
  9 + . "github.com/onsi/gomega"
  10 + pG "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/infrastructure/pg"
  11 +)
  12 +
  13 +var _ = Describe("移除共创模式服务", func() {
  14 + var cooperationModeId int64
  15 + BeforeEach(func() {
  16 + _, err := pG.DB.QueryOne(
  17 + pg.Scan(&cooperationModeId),
  18 + "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",
  19 + "testCooperationModeId", "testCooperationModeNumber", "testCooperationModeName", "testStatus", "testOrg", "testCompany", "testRemarks", "testOperator", "testOperateTime", "testUpdatedAt", "testDeletedAt", "testCreatedAt")
  20 + Expect(err).NotTo(HaveOccurred())
  21 + })
  22 + Describe("根据参数移除共创模式服务", func() {
  23 + Context("传入有效的cooperationModeId", func() {
  24 + It("返回被移除共创模式实体的数据", func() {
  25 + httpExpect := httpexpect.New(GinkgoT(), server.URL)
  26 + httpExpect.DELETE("/cooperation-modes/{cooperationModeId}").
  27 + Expect().
  28 + Status(http.StatusOK).
  29 + JSON().
  30 + Object().
  31 + ContainsKey("code").ValueEqual("code", 0).
  32 + ContainsKey("msg").ValueEqual("msg", "ok").
  33 + ContainsKey("data").Value("data").Object()
  34 + })
  35 + })
  36 + })
  37 + AfterEach(func() {
  38 + _, err := pG.DB.Exec("DELETE FROM cooperation_modes WHERE true")
  39 + Expect(err).NotTo(HaveOccurred())
  40 + })
  41 +})
  1 +package cooperation_mode
  2 +
  3 +import (
  4 + "github.com/go-pg/pg/v10"
  5 + "net/http"
  6 +
  7 + "github.com/gavv/httpexpect"
  8 + . "github.com/onsi/ginkgo"
  9 + . "github.com/onsi/gomega"
  10 + pG "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/infrastructure/pg"
  11 +)
  12 +
  13 +var _ = Describe("查询共创模式", func() {
  14 + var cooperationModeId int64
  15 + BeforeEach(func() {
  16 + _, err := pG.DB.QueryOne(
  17 + pg.Scan(&cooperationModeId),
  18 + "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",
  19 + "testCooperationModeId", "testCooperationModeNumber", "testCooperationModeName", "testStatus", "testOrg", "testCompany", "testRemarks", "testOperator", "testOperateTime", "testUpdatedAt", "testDeletedAt", "testCreatedAt")
  20 + Expect(err).NotTo(HaveOccurred())
  21 + })
  22 + Describe("查询共创模式", func() {
  23 + Context("", func() {
  24 + It("", func() {
  25 + httpExpect := httpexpect.New(GinkgoT(), server.URL)
  26 + body := map[string]interface{}{
  27 + "pageNumber": "int32",
  28 + "pageSize": "int32",
  29 + "cooperationModeName": "string",
  30 + "organizationName": "string",
  31 + "companyId": "int64",
  32 + "orgId": "int64",
  33 + "userId": "int64",
  34 + }
  35 + httpExpect.POST("/cooperation-modes/search").
  36 + WithJSON(body).
  37 + Expect().
  38 + Status(http.StatusOK).
  39 + JSON().
  40 + Object().
  41 + ContainsKey("code").ValueEqual("code", 0).
  42 + ContainsKey("msg").ValueEqual("msg", "ok").
  43 + ContainsKey("data").Value("data").Object()
  44 + })
  45 + })
  46 + })
  47 + AfterEach(func() {
  48 + _, err := pG.DB.Exec("DELETE FROM cooperation_modes WHERE true")
  49 + Expect(err).NotTo(HaveOccurred())
  50 + })
  51 +})
  1 +package cooperation_mode
  2 +
  3 +import (
  4 + "github.com/go-pg/pg/v10"
  5 + "net/http"
  6 +
  7 + "github.com/gavv/httpexpect"
  8 + . "github.com/onsi/ginkgo"
  9 + . "github.com/onsi/gomega"
  10 + pG "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/infrastructure/pg"
  11 +)
  12 +
  13 +var _ = Describe("更新共创模式服务", func() {
  14 + var cooperationModeId int64
  15 + BeforeEach(func() {
  16 + _, err := pG.DB.QueryOne(
  17 + pg.Scan(&cooperationModeId),
  18 + "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",
  19 + "testCooperationModeId", "testCooperationModeNumber", "testCooperationModeName", "testStatus", "testOrg", "testCompany", "testRemarks", "testOperator", "testOperateTime", "testUpdatedAt", "testDeletedAt", "testCreatedAt")
  20 + Expect(err).NotTo(HaveOccurred())
  21 + })
  22 + Describe("提交数据更新共创模式服务", func() {
  23 + Context("提交正确的共创模式实体数据", func() {
  24 + It("返回更新后的共创模式实体数据", func() {
  25 + httpExpect := httpexpect.New(GinkgoT(), server.URL)
  26 + body := map[string]interface{}{
  27 + "cooperationModeName": "string",
  28 + "cooperationModeNumber": "string",
  29 + "remarks": "string",
  30 + "companyId": "int64",
  31 + "orgId": "int64",
  32 + "userId": "int64",
  33 + }
  34 + httpExpect.PUT("/cooperation-modes/{cooperationModeId}").
  35 + WithJSON(body).
  36 + Expect().
  37 + Status(http.StatusOK).
  38 + JSON().
  39 + Object().
  40 + ContainsKey("code").ValueEqual("code", 0).
  41 + ContainsKey("msg").ValueEqual("msg", "ok").
  42 + ContainsKey("data").Value("data").Object().
  43 + ContainsKey("cooperationModeId").ValueEqual("cooperationModeId", cooperationModeId)
  44 + })
  45 + })
  46 + })
  47 + AfterEach(func() {
  48 + _, err := pG.DB.Exec("DELETE FROM cooperation_modes WHERE true")
  49 + Expect(err).NotTo(HaveOccurred())
  50 + })
  51 +})