正在显示
380 个修改的文件
包含
6011 行增加
和
52 行删除
不能预览此文件类型
Dockerfile
0 → 100644
| 1 | +FROM golang:latest | ||
| 2 | +MAINTAINER 陈志颖 <steve.d.chan@qq.com> | ||
| 3 | +ENV APP_DIR $GOPATH/src/allied-creation-cooperation | ||
| 4 | +RUN mkdir -p $APP_DIR | ||
| 5 | +WORKDIR $APP_DIR/ | ||
| 6 | +COPY ./pkg pkg | ||
| 7 | +COPY ./conf conf | ||
| 8 | +COPY ./go.mod go.mod | ||
| 9 | +COPY ./go.sum go.sum | ||
| 10 | +COPY ./main.go main.go | ||
| 11 | +RUN ["ln","-sf","/usr/share/zoneinfo/Asia/Shanghai","/etc/localtime"] | ||
| 12 | +ENV GO111MODULE on | ||
| 13 | +ENV GOPROXY https://goproxy.io | ||
| 14 | +RUN ["go","mod","tidy"] | ||
| 15 | +RUN ["ls"] | ||
| 16 | +RUN ["go","build"] | ||
| 17 | +ENTRYPOINT ["./allied-creation-cooperation"] |
| 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: {} |
deploy/k8s/dev/install.sh
0 → 100644
| 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 | +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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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 | + |
document/allied-creation-cooperation/services/cooperationMode/methods/createCooperationMode.yaml
0 → 100644
| 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 |
document/allied-creation-cooperation/services/cooperationMode/methods/getCooperationMode.yaml
0 → 100644
| 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 |
document/allied-creation-cooperation/services/cooperationMode/methods/listCooperationMode.yaml
0 → 100644
| 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 |
document/allied-creation-cooperation/services/cooperationMode/methods/removeCooperationMode.yaml
0 → 100644
| 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 |
document/allied-creation-cooperation/services/cooperationMode/methods/searchCooperationMode.yaml
0 → 100644
| 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 |
document/allied-creation-cooperation/services/cooperationMode/methods/updateCooperationMode.yaml
0 → 100644
| 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: 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: 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 | + |
document/allied-creation-cooperation/services/cooperationProject/methods/checkUndertaker.yaml
0 → 100644
| 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 |
document/allied-creation-cooperation/services/cooperationProject/methods/getCooperationProject.yaml
0 → 100644
| 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 |
document/allied-creation-cooperation/services/cooperationProject/methods/listCooperationProject.yaml
0 → 100644
| 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 |
document/allied-creation-cooperation/services/creditAccount/methods/createCreditAccount.yaml
0 → 100644
| 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 |
document/allied-creation-cooperation/services/creditAccount/methods/creditAccountRanking.yaml
0 → 100644
| 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 |
document/allied-creation-cooperation/services/creditAccount/methods/getCreditAccount.yaml
0 → 100644
| 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 |
document/allied-creation-cooperation/services/creditAccount/methods/listCreditAccount.yaml
0 → 100644
| 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 |
document/allied-creation-cooperation/services/creditAccount/methods/payCreditAccount.yaml
0 → 100644
| 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 |
document/allied-creation-cooperation/services/creditAccount/methods/removeCreditAccount.yaml
0 → 100644
| 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 |
document/allied-creation-cooperation/services/creditAccount/methods/searchCreditAccount.yaml
0 → 100644
| 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 |
document/allied-creation-cooperation/services/creditAccount/methods/updateCreditAccount.yaml
0 → 100644
| 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: 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 | + |
document/allied-creation-cooperation/services/dividendsEstimate/methods/cancelDividendsEstimate.yaml
0 → 100644
| 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 |
document/allied-creation-cooperation/services/dividendsEstimate/methods/createDividendsEstimate.yaml
0 → 100644
| 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 |
document/allied-creation-cooperation/services/dividendsEstimate/methods/estimateMoneyIncentives.yaml
0 → 100644
| 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 |
document/allied-creation-cooperation/services/dividendsEstimate/methods/getDividendsEstimate.yaml
0 → 100644
| 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 |
document/allied-creation-cooperation/services/dividendsEstimate/methods/listDividendsEstimate.yaml
0 → 100644
| 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 |
document/allied-creation-cooperation/services/dividendsEstimate/methods/listDividendsIncentives.yaml
0 → 100644
| 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 |
document/allied-creation-cooperation/services/dividendsEstimate/methods/listMoneyIncentives.yaml
0 → 100644
| 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 |
document/allied-creation-cooperation/services/dividendsEstimate/methods/removeDividendsEstimate.yaml
0 → 100644
| 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 |
document/allied-creation-cooperation/services/dividendsEstimate/methods/searchDividendsEstimate.yaml
0 → 100644
| 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 |
document/allied-creation-cooperation/services/dividendsEstimate/methods/searchMoneyIncentives.yaml
0 → 100644
| 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 |
document/allied-creation-cooperation/services/dividendsEstimate/methods/updateDividendsEstimate.yaml
0 → 100644
| 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: 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: 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 |
document/allied-creation-cooperation/services/dividendsOrder/methods/createDividendsOrder.yaml
0 → 100644
| 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 |
document/allied-creation-cooperation/services/dividendsOrder/methods/getDividendsOrder.yaml
0 → 100644
| 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 |
document/allied-creation-cooperation/services/dividendsOrder/methods/listDividendsOrders.yaml
0 → 100644
| 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 |
document/allied-creation-cooperation/services/dividendsOrder/methods/removeDividendsOrder.yaml
0 → 100644
| 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 |
document/allied-creation-cooperation/services/dividendsOrder/methods/searchDividendsOrder.yaml
0 → 100644
| 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 |
document/allied-creation-cooperation/services/dividendsOrder/methods/updateDividendsOrder.yaml
0 → 100644
| 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: 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: 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: 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 |
document/openapi/swagger-v1.2.yaml
0 → 100644
此 diff 太大无法显示。
document/openapi/swagger-v1.3.json
0 → 100644
此 diff 太大无法显示。
document/openapi/swagger-v1.3.yaml
0 → 100644
此 diff 太大无法显示。
| @@ -268,8 +268,8 @@ paths: | @@ -268,8 +268,8 @@ paths: | ||
| 268 | post: | 268 | post: |
| 269 | tags: | 269 | tags: |
| 270 | - cooperation-application | 270 | - cooperation-application |
| 271 | - summary: 同意共创申请 | ||
| 272 | - description: 同意共创申请 | 271 | + summary: 审核-同意共创申请 |
| 272 | + description: 审核-同意共创申请 | ||
| 273 | operationId: cooperation-application#agreeCooperationApplication | 273 | operationId: cooperation-application#agreeCooperationApplication |
| 274 | parameters: | 274 | parameters: |
| 275 | - name: AgreeCooperationApplicationRequestBody | 275 | - name: AgreeCooperationApplicationRequestBody |
| @@ -308,8 +308,8 @@ paths: | @@ -308,8 +308,8 @@ paths: | ||
| 308 | post: | 308 | post: |
| 309 | tags: | 309 | tags: |
| 310 | - cooperation-application | 310 | - cooperation-application |
| 311 | - summary: 拒绝共创申请 | ||
| 312 | - description: 拒绝共创申请 | 311 | + summary: 审核-拒绝共创申请 |
| 312 | + description: 审核-拒绝共创申请 | ||
| 313 | operationId: cooperation-application#rejectCooperationApplication | 313 | operationId: cooperation-application#rejectCooperationApplication |
| 314 | parameters: | 314 | parameters: |
| 315 | - name: RejectCooperationApplicationRequestBody | 315 | - name: RejectCooperationApplicationRequestBody |
| @@ -639,29 +639,29 @@ paths: | @@ -639,29 +639,29 @@ paths: | ||
| 639 | /cooperation-goods-statistics/statistics: | 639 | /cooperation-goods-statistics/statistics: |
| 640 | post: | 640 | post: |
| 641 | tags: | 641 | tags: |
| 642 | - - cooperation-goods-statistic | ||
| 643 | - summary: 返回共创产品统计数据 | ||
| 644 | - description: 返回共创产品统计数据 | ||
| 645 | - operationId: cooperation-goods-statistic#searchCooperationGoodsStatistics | 642 | + - cooperation-goods-statistics |
| 643 | + summary: 返回企业共创产品统计数据 | ||
| 644 | + description: 返回企业共创产品统计数据 | ||
| 645 | + operationId: cooperation-goods-statistics#searchCooperationGoodsStatistics | ||
| 646 | parameters: | 646 | parameters: |
| 647 | - name: SearchCooperationGoodsStatisticsRequestBody | 647 | - name: SearchCooperationGoodsStatisticsRequestBody |
| 648 | in: body | 648 | in: body |
| 649 | required: true | 649 | required: true |
| 650 | schema: | 650 | schema: |
| 651 | - $ref: '#/definitions/CooperationGoodsStatisticSearchCooperationGoodsStatisticsRequestBody' | 651 | + $ref: '#/definitions/CooperationGoodsStatisticsSearchCooperationGoodsStatisticsRequestBody' |
| 652 | responses: | 652 | responses: |
| 653 | "200": | 653 | "200": |
| 654 | description: OK response. | 654 | description: OK response. |
| 655 | schema: | 655 | schema: |
| 656 | - $ref: '#/definitions/CooperationGoodsStatisticSearchCooperationGoodsStatisticsResponseBody' | 656 | + $ref: '#/definitions/CooperationGoodsStatisticsSearchCooperationGoodsStatisticsResponseBody' |
| 657 | schemes: | 657 | schemes: |
| 658 | - http | 658 | - http |
| 659 | /cooperation-mode-statistics/statistics: | 659 | /cooperation-mode-statistics/statistics: |
| 660 | post: | 660 | post: |
| 661 | tags: | 661 | tags: |
| 662 | - cooperation-mode-statistics | 662 | - cooperation-mode-statistics |
| 663 | - summary: 返回共创模式数据统计 | ||
| 664 | - description: 返回共创模式数据统计 | 663 | + summary: 返回企业共创模式数据统计 |
| 664 | + description: 返回企业共创模式数据统计 | ||
| 665 | operationId: cooperation-mode-statistics#searchCooperationModeStatistics | 665 | operationId: cooperation-mode-statistics#searchCooperationModeStatistics |
| 666 | parameters: | 666 | parameters: |
| 667 | - name: SearchCooperationModeStatisticsRequestBody | 667 | - name: SearchCooperationModeStatisticsRequestBody |
| @@ -816,8 +816,8 @@ paths: | @@ -816,8 +816,8 @@ paths: | ||
| 816 | post: | 816 | post: |
| 817 | tags: | 817 | tags: |
| 818 | - cooperation-person-statistics | 818 | - cooperation-person-statistics |
| 819 | - summary: 返回共创人员信息统计 | ||
| 820 | - description: 返回共创人员信息统计 | 819 | + summary: 返回企业共创人员信息统计 |
| 820 | + description: 返回企业共创人员信息统计 | ||
| 821 | operationId: cooperation-person-statistics#searchCooperationPersonStatistics | 821 | operationId: cooperation-person-statistics#searchCooperationPersonStatistics |
| 822 | parameters: | 822 | parameters: |
| 823 | - name: SearchCooperationPersonStatisticsRequestBody | 823 | - name: SearchCooperationPersonStatisticsRequestBody |
| @@ -948,6 +948,26 @@ paths: | @@ -948,6 +948,26 @@ paths: | ||
| 948 | $ref: '#/definitions/CooperationProjectRemoveCooperationProjectResponseBody' | 948 | $ref: '#/definitions/CooperationProjectRemoveCooperationProjectResponseBody' |
| 949 | schemes: | 949 | schemes: |
| 950 | - http | 950 | - http |
| 951 | + /cooperation-projects/check: | ||
| 952 | + post: | ||
| 953 | + tags: | ||
| 954 | + - cooperation-project | ||
| 955 | + summary: 判断当前勾选的承接对象是否存在用户 | ||
| 956 | + description: 判断当前勾选的承接对象是否存在用户 | ||
| 957 | + operationId: cooperation-project#checkUndertaker | ||
| 958 | + parameters: | ||
| 959 | + - name: CheckUndertakerRequestBody | ||
| 960 | + in: body | ||
| 961 | + required: true | ||
| 962 | + schema: | ||
| 963 | + $ref: '#/definitions/CooperationProjectCheckUndertakerRequestBody' | ||
| 964 | + responses: | ||
| 965 | + "200": | ||
| 966 | + description: OK response. | ||
| 967 | + schema: | ||
| 968 | + $ref: '#/definitions/CooperationProjectCheckUndertakerResponseBody' | ||
| 969 | + schemes: | ||
| 970 | + - http | ||
| 951 | /cooperation-projects/release-cooperation-project: | 971 | /cooperation-projects/release-cooperation-project: |
| 952 | post: | 972 | post: |
| 953 | tags: | 973 | tags: |
| @@ -1109,8 +1129,8 @@ paths: | @@ -1109,8 +1129,8 @@ paths: | ||
| 1109 | post: | 1129 | post: |
| 1110 | tags: | 1130 | tags: |
| 1111 | - credit-account | 1131 | - credit-account |
| 1112 | - summary: 支付账期结算 | ||
| 1113 | - description: 支付账期结算 | 1132 | + summary: 支付账期结算(支付分红) |
| 1133 | + description: 支付账期结算(支付分红) | ||
| 1114 | operationId: credit-account#payCreditAccount | 1134 | operationId: credit-account#payCreditAccount |
| 1115 | parameters: | 1135 | parameters: |
| 1116 | - name: PayCreditAccountRequestBody | 1136 | - name: PayCreditAccountRequestBody |
| @@ -1741,8 +1761,8 @@ paths: | @@ -1741,8 +1761,8 @@ paths: | ||
| 1741 | post: | 1761 | post: |
| 1742 | tags: | 1762 | tags: |
| 1743 | - project-overview-statistics | 1763 | - project-overview-statistics |
| 1744 | - summary: 返回共创项目概览统计 | ||
| 1745 | - description: 返回共创项目概览统计 | 1764 | + summary: 返回共创企业项目概览统计 |
| 1765 | + description: 返回共创企业项目概览统计 | ||
| 1746 | operationId: project-overview-statistics#searchProjectOverviewStatistics | 1766 | operationId: project-overview-statistics#searchProjectOverviewStatistics |
| 1747 | parameters: | 1767 | parameters: |
| 1748 | - name: SearchProjectOverviewStatisticsRequestBody | 1768 | - name: SearchProjectOverviewStatisticsRequestBody |
| @@ -1784,6 +1804,11 @@ definitions: | @@ -1784,6 +1804,11 @@ definitions: | ||
| 1784 | description: 合约承接方反馈内容 | 1804 | description: 合约承接方反馈内容 |
| 1785 | required: | 1805 | required: |
| 1786 | - feedbackContent | 1806 | - feedbackContent |
| 1807 | + orgId: | ||
| 1808 | + type: integer | ||
| 1809 | + description: 组织机构ID | ||
| 1810 | + required: | ||
| 1811 | + - orgId | ||
| 1787 | underTakerUid: | 1812 | underTakerUid: |
| 1788 | type: string | 1813 | type: string |
| 1789 | description: 承接人uid | 1814 | description: 承接人uid |
| @@ -1812,6 +1837,11 @@ definitions: | @@ -1812,6 +1837,11 @@ definitions: | ||
| 1812 | description: 合约承接方反馈记录ID | 1837 | description: 合约承接方反馈记录ID |
| 1813 | required: | 1838 | required: |
| 1814 | - feedbackId | 1839 | - feedbackId |
| 1840 | + orgId: | ||
| 1841 | + type: integer | ||
| 1842 | + description: 组织机构ID | ||
| 1843 | + required: | ||
| 1844 | + - orgId | ||
| 1815 | underTakerUid: | 1845 | underTakerUid: |
| 1816 | type: string | 1846 | type: string |
| 1817 | description: 承接人uid | 1847 | description: 承接人uid |
| @@ -1855,6 +1885,11 @@ definitions: | @@ -1855,6 +1885,11 @@ definitions: | ||
| 1855 | description: 合约承接方反馈记录ID | 1885 | description: 合约承接方反馈记录ID |
| 1856 | required: | 1886 | required: |
| 1857 | - feedbackId | 1887 | - feedbackId |
| 1888 | + orgId: | ||
| 1889 | + type: integer | ||
| 1890 | + description: 组织机构ID | ||
| 1891 | + required: | ||
| 1892 | + - orgId | ||
| 1858 | underTakerUid: | 1893 | underTakerUid: |
| 1859 | type: string | 1894 | type: string |
| 1860 | description: 承接人uid | 1895 | description: 承接人uid |
| @@ -1883,6 +1918,14 @@ definitions: | @@ -1883,6 +1918,14 @@ definitions: | ||
| 1883 | description: 共创合约名称 | 1918 | description: 共创合约名称 |
| 1884 | required: | 1919 | required: |
| 1885 | - cooperationContractName | 1920 | - cooperationContractName |
| 1921 | + matchWord: | ||
| 1922 | + type: string | ||
| 1923 | + description: 查询关键词 | ||
| 1924 | + orgId: | ||
| 1925 | + type: integer | ||
| 1926 | + description: 组织机构ID | ||
| 1927 | + required: | ||
| 1928 | + - orgId | ||
| 1886 | pageNumber: | 1929 | pageNumber: |
| 1887 | type: integer | 1930 | type: integer |
| 1888 | description: 页面大小 | 1931 | description: 页面大小 |
| @@ -1911,6 +1954,11 @@ definitions: | @@ -1911,6 +1954,11 @@ definitions: | ||
| 1911 | $ref: '#/definitions/contractUndertakerFeedbackResponseBody' | 1954 | $ref: '#/definitions/contractUndertakerFeedbackResponseBody' |
| 1912 | required: | 1955 | required: |
| 1913 | - contractUndertakerFeedbacks | 1956 | - contractUndertakerFeedbacks |
| 1957 | + count: | ||
| 1958 | + type: integer | ||
| 1959 | + description: 匹配数目 | ||
| 1960 | + required: | ||
| 1961 | + - count | ||
| 1914 | ContractUndertakerFeedbackUpdateContractUndertakerFeedbackRequestBody: | 1962 | ContractUndertakerFeedbackUpdateContractUndertakerFeedbackRequestBody: |
| 1915 | title: ContractUndertakerFeedbackUpdateContractUndertakerFeedbackRequestBody | 1963 | title: ContractUndertakerFeedbackUpdateContractUndertakerFeedbackRequestBody |
| 1916 | type: object | 1964 | type: object |
| @@ -1937,6 +1985,11 @@ definitions: | @@ -1937,6 +1985,11 @@ definitions: | ||
| 1937 | description: 合约承接方反馈内容 | 1985 | description: 合约承接方反馈内容 |
| 1938 | required: | 1986 | required: |
| 1939 | - feedbackContent | 1987 | - feedbackContent |
| 1988 | + orgId: | ||
| 1989 | + type: integer | ||
| 1990 | + description: 组织机构ID | ||
| 1991 | + required: | ||
| 1992 | + - orgId | ||
| 1940 | underTakerUid: | 1993 | underTakerUid: |
| 1941 | type: string | 1994 | type: string |
| 1942 | description: 承接人用户uid | 1995 | description: 承接人用户uid |
| @@ -1955,6 +2008,11 @@ definitions: | @@ -1955,6 +2008,11 @@ definitions: | ||
| 1955 | title: CooperationApplicationAgreeCooperationApplicationRequestBody | 2008 | title: CooperationApplicationAgreeCooperationApplicationRequestBody |
| 1956 | type: object | 2009 | type: object |
| 1957 | properties: | 2010 | properties: |
| 2011 | + code: | ||
| 2012 | + type: string | ||
| 2013 | + description: 菜单编码,APP端必须 | ||
| 2014 | + required: | ||
| 2015 | + - code | ||
| 1958 | companyId: | 2016 | companyId: |
| 1959 | type: integer | 2017 | type: integer |
| 1960 | description: 公司ID,通过集成REST上下文获取 | 2018 | description: 公司ID,通过集成REST上下文获取 |
| @@ -1970,6 +2028,11 @@ definitions: | @@ -1970,6 +2028,11 @@ definitions: | ||
| 1970 | description: 共创申请审核描述 | 2028 | description: 共创申请审核描述 |
| 1971 | required: | 2029 | required: |
| 1972 | - cooperationApplicationVerifyDescription | 2030 | - cooperationApplicationVerifyDescription |
| 2031 | + orgId: | ||
| 2032 | + type: integer | ||
| 2033 | + description: 组织机构id | ||
| 2034 | + required: | ||
| 2035 | + - orgId | ||
| 1973 | userId: | 2036 | userId: |
| 1974 | type: integer | 2037 | type: integer |
| 1975 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 | 2038 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 |
| @@ -2019,6 +2082,11 @@ definitions: | @@ -2019,6 +2082,11 @@ definitions: | ||
| 2019 | description: 共创项目编号,自生成,生成规则:XM+6位年月日+#+3位流水,例XM210601#001 | 2082 | description: 共创项目编号,自生成,生成规则:XM+6位年月日+#+3位流水,例XM210601#001 |
| 2020 | required: | 2083 | required: |
| 2021 | - cooperationProjectNumber | 2084 | - cooperationProjectNumber |
| 2085 | + orgId: | ||
| 2086 | + type: integer | ||
| 2087 | + description: 组织机构ID | ||
| 2088 | + required: | ||
| 2089 | + - orgId | ||
| 2022 | userId: | 2090 | userId: |
| 2023 | type: integer | 2091 | type: integer |
| 2024 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 | 2092 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 |
| @@ -2057,6 +2125,11 @@ definitions: | @@ -2057,6 +2125,11 @@ definitions: | ||
| 2057 | description: 关联的共创项目编号 | 2125 | description: 关联的共创项目编号 |
| 2058 | required: | 2126 | required: |
| 2059 | - cooperationProjectNumber | 2127 | - cooperationProjectNumber |
| 2128 | + orgId: | ||
| 2129 | + type: integer | ||
| 2130 | + description: 组织机构ID | ||
| 2131 | + required: | ||
| 2132 | + - orgId | ||
| 2060 | userId: | 2133 | userId: |
| 2061 | type: integer | 2134 | type: integer |
| 2062 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 | 2135 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 |
| @@ -2077,6 +2150,11 @@ definitions: | @@ -2077,6 +2150,11 @@ definitions: | ||
| 2077 | description: 公司ID,通过集成REST上下文获取 | 2150 | description: 公司ID,通过集成REST上下文获取 |
| 2078 | required: | 2151 | required: |
| 2079 | - companyId | 2152 | - companyId |
| 2153 | + orgId: | ||
| 2154 | + type: integer | ||
| 2155 | + description: 组织机构ID | ||
| 2156 | + required: | ||
| 2157 | + - orgId | ||
| 2080 | userId: | 2158 | userId: |
| 2081 | type: integer | 2159 | type: integer |
| 2082 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 | 2160 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 |
| @@ -2107,6 +2185,11 @@ definitions: | @@ -2107,6 +2185,11 @@ definitions: | ||
| 2107 | title: CooperationApplicationRejectCooperationApplicationRequestBody | 2185 | title: CooperationApplicationRejectCooperationApplicationRequestBody |
| 2108 | type: object | 2186 | type: object |
| 2109 | properties: | 2187 | properties: |
| 2188 | + code: | ||
| 2189 | + type: string | ||
| 2190 | + description: 菜单模块编码,APP端必须 | ||
| 2191 | + required: | ||
| 2192 | + - code | ||
| 2110 | companyId: | 2193 | companyId: |
| 2111 | type: integer | 2194 | type: integer |
| 2112 | description: 公司ID,通过集成REST上下文获取 | 2195 | description: 公司ID,通过集成REST上下文获取 |
| @@ -2122,6 +2205,11 @@ definitions: | @@ -2122,6 +2205,11 @@ definitions: | ||
| 2122 | description: 共创申请审核描述 | 2205 | description: 共创申请审核描述 |
| 2123 | required: | 2206 | required: |
| 2124 | - cooperationApplicationVerifyDescription | 2207 | - cooperationApplicationVerifyDescription |
| 2208 | + orgId: | ||
| 2209 | + type: integer | ||
| 2210 | + description: 组织机构id | ||
| 2211 | + required: | ||
| 2212 | + - orgId | ||
| 2125 | userId: | 2213 | userId: |
| 2126 | type: integer | 2214 | type: integer |
| 2127 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 | 2215 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 |
| @@ -2142,6 +2230,11 @@ definitions: | @@ -2142,6 +2230,11 @@ definitions: | ||
| 2142 | description: 公司ID,通过集成REST上下文获取 | 2230 | description: 公司ID,通过集成REST上下文获取 |
| 2143 | required: | 2231 | required: |
| 2144 | - companyId | 2232 | - companyId |
| 2233 | + orgId: | ||
| 2234 | + type: integer | ||
| 2235 | + description: 组织机构ID | ||
| 2236 | + required: | ||
| 2237 | + - orgId | ||
| 2145 | userId: | 2238 | userId: |
| 2146 | type: integer | 2239 | type: integer |
| 2147 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 | 2240 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 |
| @@ -2174,6 +2267,11 @@ definitions: | @@ -2174,6 +2267,11 @@ definitions: | ||
| 2174 | description: 共创项目名称 | 2267 | description: 共创项目名称 |
| 2175 | required: | 2268 | required: |
| 2176 | - cooperationProjectName | 2269 | - cooperationProjectName |
| 2270 | + orgId: | ||
| 2271 | + type: integer | ||
| 2272 | + description: 组织机构ID | ||
| 2273 | + required: | ||
| 2274 | + - orgId | ||
| 2177 | pageNumber: | 2275 | pageNumber: |
| 2178 | type: integer | 2276 | type: integer |
| 2179 | description: 页面大小 | 2277 | description: 页面大小 |
| @@ -2197,6 +2295,11 @@ definitions: | @@ -2197,6 +2295,11 @@ definitions: | ||
| 2197 | $ref: '#/definitions/cooperationApplicationResponseBody' | 2295 | $ref: '#/definitions/cooperationApplicationResponseBody' |
| 2198 | required: | 2296 | required: |
| 2199 | - cooperationApplications | 2297 | - cooperationApplications |
| 2298 | + count: | ||
| 2299 | + type: integer | ||
| 2300 | + description: 匹配数目 | ||
| 2301 | + required: | ||
| 2302 | + - count | ||
| 2200 | CooperationApplicationUpdateCooperationApplicationRequestBody: | 2303 | CooperationApplicationUpdateCooperationApplicationRequestBody: |
| 2201 | title: CooperationApplicationUpdateCooperationApplicationRequestBody | 2304 | title: CooperationApplicationUpdateCooperationApplicationRequestBody |
| 2202 | type: object | 2305 | type: object |
| @@ -2224,6 +2327,11 @@ definitions: | @@ -2224,6 +2327,11 @@ definitions: | ||
| 2224 | description: 关联的共创项目编号 | 2327 | description: 关联的共创项目编号 |
| 2225 | required: | 2328 | required: |
| 2226 | - cooperationProjectNumber | 2329 | - cooperationProjectNumber |
| 2330 | + orgId: | ||
| 2331 | + type: integer | ||
| 2332 | + description: 组织机构ID | ||
| 2333 | + required: | ||
| 2334 | + - orgId | ||
| 2227 | userId: | 2335 | userId: |
| 2228 | type: integer | 2336 | type: integer |
| 2229 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 | 2337 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 |
| @@ -2264,6 +2372,11 @@ definitions: | @@ -2264,6 +2372,11 @@ definitions: | ||
| 2264 | description: 合约变更操作类型,1编辑、2暂停、3恢复 | 2372 | description: 合约变更操作类型,1编辑、2暂停、3恢复 |
| 2265 | required: | 2373 | required: |
| 2266 | - operationType | 2374 | - operationType |
| 2375 | + orgId: | ||
| 2376 | + type: integer | ||
| 2377 | + description: 组织机构ID | ||
| 2378 | + required: | ||
| 2379 | + - orgId | ||
| 2267 | undertakers: | 2380 | undertakers: |
| 2268 | type: string | 2381 | type: string |
| 2269 | description: 承接人 | 2382 | description: 承接人 |
| @@ -2289,6 +2402,11 @@ definitions: | @@ -2289,6 +2402,11 @@ definitions: | ||
| 2289 | description: 公司ID,通过集成REST上下文获取 | 2402 | description: 公司ID,通过集成REST上下文获取 |
| 2290 | required: | 2403 | required: |
| 2291 | - companyId | 2404 | - companyId |
| 2405 | + orgId: | ||
| 2406 | + type: integer | ||
| 2407 | + description: 组织机构ID | ||
| 2408 | + required: | ||
| 2409 | + - orgId | ||
| 2292 | userId: | 2410 | userId: |
| 2293 | type: integer | 2411 | type: integer |
| 2294 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 | 2412 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 |
| @@ -2324,6 +2442,11 @@ definitions: | @@ -2324,6 +2442,11 @@ definitions: | ||
| 2324 | description: 公司ID,通过集成REST上下文获取 | 2442 | description: 公司ID,通过集成REST上下文获取 |
| 2325 | required: | 2443 | required: |
| 2326 | - companyId | 2444 | - companyId |
| 2445 | + orgId: | ||
| 2446 | + type: integer | ||
| 2447 | + description: 组织机构ID | ||
| 2448 | + required: | ||
| 2449 | + - orgId | ||
| 2327 | userId: | 2450 | userId: |
| 2328 | type: integer | 2451 | type: integer |
| 2329 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 | 2452 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 |
| @@ -2351,6 +2474,11 @@ definitions: | @@ -2351,6 +2474,11 @@ definitions: | ||
| 2351 | type: integer | 2474 | type: integer |
| 2352 | description: 合约变更操作类型,1编辑、2暂停、3恢复 | 2475 | description: 合约变更操作类型,1编辑、2暂停、3恢复 |
| 2353 | format: int32 | 2476 | format: int32 |
| 2477 | + orgId: | ||
| 2478 | + type: integer | ||
| 2479 | + description: 组织机构ID | ||
| 2480 | + required: | ||
| 2481 | + - orgId | ||
| 2354 | pageNumber: | 2482 | pageNumber: |
| 2355 | type: integer | 2483 | type: integer |
| 2356 | description: 页面大小 | 2484 | description: 页面大小 |
| @@ -2374,6 +2502,11 @@ definitions: | @@ -2374,6 +2502,11 @@ definitions: | ||
| 2374 | $ref: '#/definitions/cooperationContractChangeLogResponseBody' | 2502 | $ref: '#/definitions/cooperationContractChangeLogResponseBody' |
| 2375 | required: | 2503 | required: |
| 2376 | - cooperationContractChangeLogs | 2504 | - cooperationContractChangeLogs |
| 2505 | + count: | ||
| 2506 | + type: integer | ||
| 2507 | + description: 匹配数目 | ||
| 2508 | + required: | ||
| 2509 | + - count | ||
| 2377 | CooperationContractChangeLogUpdateCooperationContractChangeLogRequestBody: | 2510 | CooperationContractChangeLogUpdateCooperationContractChangeLogRequestBody: |
| 2378 | title: CooperationContractChangeLogUpdateCooperationContractChangeLogRequestBody | 2511 | title: CooperationContractChangeLogUpdateCooperationContractChangeLogRequestBody |
| 2379 | type: object | 2512 | type: object |
| @@ -2403,6 +2536,11 @@ definitions: | @@ -2403,6 +2536,11 @@ definitions: | ||
| 2403 | description: 合约变更操作类型,1编辑、2暂停、3恢复 | 2536 | description: 合约变更操作类型,1编辑、2暂停、3恢复 |
| 2404 | required: | 2537 | required: |
| 2405 | - operationType | 2538 | - operationType |
| 2539 | + orgId: | ||
| 2540 | + type: integer | ||
| 2541 | + description: 组织机构ID | ||
| 2542 | + required: | ||
| 2543 | + - orgId | ||
| 2406 | undertakers: | 2544 | undertakers: |
| 2407 | type: string | 2545 | type: string |
| 2408 | description: 承接人 | 2546 | description: 承接人 |
| @@ -2476,6 +2614,11 @@ definitions: | @@ -2476,6 +2614,11 @@ definitions: | ||
| 2476 | items: | 2614 | items: |
| 2477 | $ref: '#/definitions/moneyIncentivesRuleRequestBody' | 2615 | $ref: '#/definitions/moneyIncentivesRuleRequestBody' |
| 2478 | description: 金额激励规则列表 | 2616 | description: 金额激励规则列表 |
| 2617 | + orgId: | ||
| 2618 | + type: integer | ||
| 2619 | + description: 组织机构ID | ||
| 2620 | + required: | ||
| 2621 | + - orgId | ||
| 2479 | relevants: | 2622 | relevants: |
| 2480 | type: array | 2623 | type: array |
| 2481 | items: | 2624 | items: |
| @@ -2509,6 +2652,11 @@ definitions: | @@ -2509,6 +2652,11 @@ definitions: | ||
| 2509 | description: 公司ID,通过集成REST上下文获取 | 2652 | description: 公司ID,通过集成REST上下文获取 |
| 2510 | required: | 2653 | required: |
| 2511 | - companyId | 2654 | - companyId |
| 2655 | + orgId: | ||
| 2656 | + type: integer | ||
| 2657 | + description: 组织机构ID | ||
| 2658 | + required: | ||
| 2659 | + - orgId | ||
| 2512 | sponsorUid: | 2660 | sponsorUid: |
| 2513 | type: string | 2661 | type: string |
| 2514 | description: 发起人uid | 2662 | description: 发起人uid |
| @@ -2547,6 +2695,11 @@ definitions: | @@ -2547,6 +2695,11 @@ definitions: | ||
| 2547 | description: 公司ID,通过集成REST上下文获取 | 2695 | description: 公司ID,通过集成REST上下文获取 |
| 2548 | required: | 2696 | required: |
| 2549 | - companyId | 2697 | - companyId |
| 2698 | + orgId: | ||
| 2699 | + type: integer | ||
| 2700 | + description: 组织机构ID | ||
| 2701 | + required: | ||
| 2702 | + - orgId | ||
| 2550 | userId: | 2703 | userId: |
| 2551 | type: integer | 2704 | type: integer |
| 2552 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 | 2705 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 |
| @@ -2570,6 +2723,11 @@ definitions: | @@ -2570,6 +2723,11 @@ definitions: | ||
| 2570 | cooperationContractName: | 2723 | cooperationContractName: |
| 2571 | type: string | 2724 | type: string |
| 2572 | description: 共创合约名称 | 2725 | description: 共创合约名称 |
| 2726 | + orgId: | ||
| 2727 | + type: integer | ||
| 2728 | + description: 组织机构ID | ||
| 2729 | + required: | ||
| 2730 | + - orgId | ||
| 2573 | sponsorName: | 2731 | sponsorName: |
| 2574 | type: string | 2732 | type: string |
| 2575 | description: 项目发起人姓名 | 2733 | description: 项目发起人姓名 |
| @@ -2587,6 +2745,11 @@ definitions: | @@ -2587,6 +2745,11 @@ definitions: | ||
| 2587 | items: | 2745 | items: |
| 2588 | $ref: '#/definitions/cooperationContractByUndertakerResponseBody' | 2746 | $ref: '#/definitions/cooperationContractByUndertakerResponseBody' |
| 2589 | description: 根据承接人返回的共创项目合约 | 2747 | description: 根据承接人返回的共创项目合约 |
| 2748 | + count: | ||
| 2749 | + type: integer | ||
| 2750 | + description: 匹配数目 | ||
| 2751 | + required: | ||
| 2752 | + - count | ||
| 2590 | CooperationContractSearchCooperationContractRequestBody: | 2753 | CooperationContractSearchCooperationContractRequestBody: |
| 2591 | title: CooperationContractSearchCooperationContractRequestBody | 2754 | title: CooperationContractSearchCooperationContractRequestBody |
| 2592 | type: object | 2755 | type: object |
| @@ -2601,6 +2764,11 @@ definitions: | @@ -2601,6 +2764,11 @@ definitions: | ||
| 2601 | description: 共创合约编号 | 2764 | description: 共创合约编号 |
| 2602 | required: | 2765 | required: |
| 2603 | - cooperationContractNumber | 2766 | - cooperationContractNumber |
| 2767 | + orgId: | ||
| 2768 | + type: integer | ||
| 2769 | + description: 组织机构ID | ||
| 2770 | + required: | ||
| 2771 | + - orgId | ||
| 2604 | pageNumber: | 2772 | pageNumber: |
| 2605 | type: integer | 2773 | type: integer |
| 2606 | description: 页面大小 | 2774 | description: 页面大小 |
| @@ -2676,6 +2844,11 @@ definitions: | @@ -2676,6 +2844,11 @@ definitions: | ||
| 2676 | description: 部门编码 | 2844 | description: 部门编码 |
| 2677 | required: | 2845 | required: |
| 2678 | - departmentNumber | 2846 | - departmentNumber |
| 2847 | + orgId: | ||
| 2848 | + type: integer | ||
| 2849 | + description: 组织机构ID | ||
| 2850 | + required: | ||
| 2851 | + - orgId | ||
| 2679 | sponsorUid: | 2852 | sponsorUid: |
| 2680 | type: string | 2853 | type: string |
| 2681 | description: 共创合约发起人uid | 2854 | description: 共创合约发起人uid |
| @@ -2690,15 +2863,18 @@ definitions: | @@ -2690,15 +2863,18 @@ definitions: | ||
| 2690 | properties: | 2863 | properties: |
| 2691 | cooperationContract: | 2864 | cooperationContract: |
| 2692 | $ref: '#/definitions/cooperationContractResponseBody' | 2865 | $ref: '#/definitions/cooperationContractResponseBody' |
| 2693 | - CooperationGoodsStatisticSearchCooperationGoodsStatisticsRequestBody: | ||
| 2694 | - title: CooperationGoodsStatisticSearchCooperationGoodsStatisticsRequestBody | 2866 | + CooperationGoodsStatisticsSearchCooperationGoodsStatisticsRequestBody: |
| 2867 | + title: CooperationGoodsStatisticsSearchCooperationGoodsStatisticsRequestBody | ||
| 2695 | type: object | 2868 | type: object |
| 2696 | properties: | 2869 | properties: |
| 2697 | companyId: | 2870 | companyId: |
| 2698 | type: integer | 2871 | type: integer |
| 2699 | - description: 公司ID,通过集成REST上下文获取 | ||
| 2700 | - required: | ||
| 2701 | - - companyId | 2872 | + description: 企业ID,企业和组织id二选一 |
| 2873 | + format: int64 | ||
| 2874 | + orgId: | ||
| 2875 | + type: integer | ||
| 2876 | + description: 组织机构id,组织和企业id二选一 | ||
| 2877 | + format: int64 | ||
| 2702 | pageNumber: | 2878 | pageNumber: |
| 2703 | type: integer | 2879 | type: integer |
| 2704 | description: 页面大小 | 2880 | description: 页面大小 |
| @@ -2716,8 +2892,8 @@ definitions: | @@ -2716,8 +2892,8 @@ definitions: | ||
| 2716 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 | 2892 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 |
| 2717 | required: | 2893 | required: |
| 2718 | - userId | 2894 | - userId |
| 2719 | - CooperationGoodsStatisticSearchCooperationGoodsStatisticsResponseBody: | ||
| 2720 | - title: 'Mediatype identifier: CooperationGoodsStatisticSearchCooperationGoodsStatisticsResponseBody' | 2895 | + CooperationGoodsStatisticsSearchCooperationGoodsStatisticsResponseBody: |
| 2896 | + title: 'Mediatype identifier: CooperationGoodsStatisticsSearchCooperationGoodsStatisticsResponseBody' | ||
| 2721 | type: object | 2897 | type: object |
| 2722 | properties: | 2898 | properties: |
| 2723 | cooperationGoodsStatistics: | 2899 | cooperationGoodsStatistics: |
| @@ -2741,6 +2917,11 @@ definitions: | @@ -2741,6 +2917,11 @@ definitions: | ||
| 2741 | description: 共创模式编码,手动输入,唯一确定 | 2917 | description: 共创模式编码,手动输入,唯一确定 |
| 2742 | required: | 2918 | required: |
| 2743 | - cooperationModeNumber | 2919 | - cooperationModeNumber |
| 2920 | + orgId: | ||
| 2921 | + type: integer | ||
| 2922 | + description: 组织机构ID | ||
| 2923 | + required: | ||
| 2924 | + - orgId | ||
| 2744 | remarks: | 2925 | remarks: |
| 2745 | type: string | 2926 | type: string |
| 2746 | description: 备注 | 2927 | description: 备注 |
| @@ -2766,6 +2947,11 @@ definitions: | @@ -2766,6 +2947,11 @@ definitions: | ||
| 2766 | description: 公司ID,通过集成REST上下文获取 | 2947 | description: 公司ID,通过集成REST上下文获取 |
| 2767 | required: | 2948 | required: |
| 2768 | - companyId | 2949 | - companyId |
| 2950 | + orgId: | ||
| 2951 | + type: integer | ||
| 2952 | + description: 组织机构ID | ||
| 2953 | + required: | ||
| 2954 | + - orgId | ||
| 2769 | userId: | 2955 | userId: |
| 2770 | type: integer | 2956 | type: integer |
| 2771 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 | 2957 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 |
| @@ -2801,6 +2987,11 @@ definitions: | @@ -2801,6 +2987,11 @@ definitions: | ||
| 2801 | description: 公司ID,通过集成REST上下文获取 | 2987 | description: 公司ID,通过集成REST上下文获取 |
| 2802 | required: | 2988 | required: |
| 2803 | - companyId | 2989 | - companyId |
| 2990 | + orgId: | ||
| 2991 | + type: integer | ||
| 2992 | + description: 组织机构ID | ||
| 2993 | + required: | ||
| 2994 | + - orgId | ||
| 2804 | userId: | 2995 | userId: |
| 2805 | type: integer | 2996 | type: integer |
| 2806 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 | 2997 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 |
| @@ -2826,6 +3017,11 @@ definitions: | @@ -2826,6 +3017,11 @@ definitions: | ||
| 2826 | description: 共创模式名称 | 3017 | description: 共创模式名称 |
| 2827 | required: | 3018 | required: |
| 2828 | - cooperationModeName | 3019 | - cooperationModeName |
| 3020 | + orgId: | ||
| 3021 | + type: integer | ||
| 3022 | + description: 组织机构ID | ||
| 3023 | + required: | ||
| 3024 | + - orgId | ||
| 2829 | organizationName: | 3025 | organizationName: |
| 2830 | type: string | 3026 | type: string |
| 2831 | description: 组织机构名称 | 3027 | description: 组织机构名称 |
| @@ -2854,15 +3050,23 @@ definitions: | @@ -2854,15 +3050,23 @@ definitions: | ||
| 2854 | $ref: '#/definitions/cooperationModeResponseBody' | 3050 | $ref: '#/definitions/cooperationModeResponseBody' |
| 2855 | required: | 3051 | required: |
| 2856 | - cooperationModes | 3052 | - cooperationModes |
| 3053 | + count: | ||
| 3054 | + type: integer | ||
| 3055 | + description: 匹配数目 | ||
| 3056 | + required: | ||
| 3057 | + - count | ||
| 2857 | CooperationModeStatisticsSearchCooperationModeStatisticsRequestBody: | 3058 | CooperationModeStatisticsSearchCooperationModeStatisticsRequestBody: |
| 2858 | title: CooperationModeStatisticsSearchCooperationModeStatisticsRequestBody | 3059 | title: CooperationModeStatisticsSearchCooperationModeStatisticsRequestBody |
| 2859 | type: object | 3060 | type: object |
| 2860 | properties: | 3061 | properties: |
| 2861 | companyId: | 3062 | companyId: |
| 2862 | type: integer | 3063 | type: integer |
| 2863 | - description: 公司ID,通过集成REST上下文获取 | ||
| 2864 | - required: | ||
| 2865 | - - companyId | 3064 | + description: 企业id,企业和组织二选一 |
| 3065 | + format: int64 | ||
| 3066 | + orgId: | ||
| 3067 | + type: integer | ||
| 3068 | + description: 组织id,组织和企业二选一 | ||
| 3069 | + format: int64 | ||
| 2866 | userId: | 3070 | userId: |
| 2867 | type: integer | 3071 | type: integer |
| 2868 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 | 3072 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 |
| @@ -2893,6 +3097,11 @@ definitions: | @@ -2893,6 +3097,11 @@ definitions: | ||
| 2893 | description: 共创模式编码,手动输入,唯一确定 | 3097 | description: 共创模式编码,手动输入,唯一确定 |
| 2894 | required: | 3098 | required: |
| 2895 | - cooperationModeNumber | 3099 | - cooperationModeNumber |
| 3100 | + orgId: | ||
| 3101 | + type: integer | ||
| 3102 | + description: 组织机构ID | ||
| 3103 | + required: | ||
| 3104 | + - orgId | ||
| 2896 | remarks: | 3105 | remarks: |
| 2897 | type: string | 3106 | type: string |
| 2898 | description: 备注 | 3107 | description: 备注 |
| @@ -2915,9 +3124,12 @@ definitions: | @@ -2915,9 +3124,12 @@ definitions: | ||
| 2915 | properties: | 3124 | properties: |
| 2916 | companyId: | 3125 | companyId: |
| 2917 | type: integer | 3126 | type: integer |
| 2918 | - description: 公司ID,通过集成REST上下文获取 | ||
| 2919 | - required: | ||
| 2920 | - - companyId | 3127 | + description: 查看的目标公司id,公司和组织入参二选一 |
| 3128 | + format: int64 | ||
| 3129 | + orgId: | ||
| 3130 | + type: integer | ||
| 3131 | + description: 查看的目标组织id,组织和公司入参二选一 | ||
| 3132 | + format: int64 | ||
| 2921 | userId: | 3133 | userId: |
| 2922 | type: integer | 3134 | type: integer |
| 2923 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 | 3135 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 |
| @@ -2929,6 +3141,29 @@ definitions: | @@ -2929,6 +3141,29 @@ definitions: | ||
| 2929 | properties: | 3141 | properties: |
| 2930 | cooperationPersonStatistics: | 3142 | cooperationPersonStatistics: |
| 2931 | $ref: '#/definitions/cooperationPersonStatisticsResponseBody' | 3143 | $ref: '#/definitions/cooperationPersonStatisticsResponseBody' |
| 3144 | + CooperationProjectCheckUndertakerRequestBody: | ||
| 3145 | + title: CooperationProjectCheckUndertakerRequestBody | ||
| 3146 | + type: object | ||
| 3147 | + properties: | ||
| 3148 | + cooperationProjectId: | ||
| 3149 | + type: integer | ||
| 3150 | + description: 共创项目ID | ||
| 3151 | + required: | ||
| 3152 | + - cooperationProjectId | ||
| 3153 | + cooperationProjectUndertakerType: | ||
| 3154 | + type: array | ||
| 3155 | + items: | ||
| 3156 | + type: integer | ||
| 3157 | + format: int32 | ||
| 3158 | + description: 共创项目承接对象,1员工,2共创用户,3公开,可以多选 | ||
| 3159 | + required: | ||
| 3160 | + - cooperationProjectUndertakerType | ||
| 3161 | + CooperationProjectCheckUndertakerResponseBody: | ||
| 3162 | + title: 'Mediatype identifier: CooperationProjectCheckUndertakerResponseBody' | ||
| 3163 | + type: object | ||
| 3164 | + properties: | ||
| 3165 | + cooperationProject: | ||
| 3166 | + $ref: '#/definitions/cooperationProjectResponseBody' | ||
| 2932 | CooperationProjectCreateCooperationProjectRequestBody: | 3167 | CooperationProjectCreateCooperationProjectRequestBody: |
| 2933 | title: CooperationProjectCreateCooperationProjectRequestBody | 3168 | title: CooperationProjectCreateCooperationProjectRequestBody |
| 2934 | type: object | 3169 | type: object |
| @@ -2954,6 +3189,11 @@ definitions: | @@ -2954,6 +3189,11 @@ definitions: | ||
| 2954 | description: 承接对象,1员工,2共创用户,3公开,可以多选 | 3189 | description: 承接对象,1员工,2共创用户,3公开,可以多选 |
| 2955 | required: | 3190 | required: |
| 2956 | - cooperationProjectUndertakerType | 3191 | - cooperationProjectUndertakerType |
| 3192 | + orgId: | ||
| 3193 | + type: integer | ||
| 3194 | + description: 组织机构ID | ||
| 3195 | + required: | ||
| 3196 | + - orgId | ||
| 2957 | publisherUid: | 3197 | publisherUid: |
| 2958 | type: string | 3198 | type: string |
| 2959 | description: 共创项目发布人uid | 3199 | description: 共创项目发布人uid |
| @@ -2984,6 +3224,11 @@ definitions: | @@ -2984,6 +3224,11 @@ definitions: | ||
| 2984 | description: 公司ID,通过集成REST上下文获取 | 3224 | description: 公司ID,通过集成REST上下文获取 |
| 2985 | required: | 3225 | required: |
| 2986 | - companyId | 3226 | - companyId |
| 3227 | + orgId: | ||
| 3228 | + type: integer | ||
| 3229 | + description: 组织机构ID | ||
| 3230 | + required: | ||
| 3231 | + - orgId | ||
| 2987 | userId: | 3232 | userId: |
| 2988 | type: integer | 3233 | type: integer |
| 2989 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 | 3234 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 |
| @@ -3044,6 +3289,11 @@ definitions: | @@ -3044,6 +3289,11 @@ definitions: | ||
| 3044 | description: 共创项目承接对象,1员工,2共创用户,3公开,可以多选 | 3289 | description: 共创项目承接对象,1员工,2共创用户,3公开,可以多选 |
| 3045 | required: | 3290 | required: |
| 3046 | - cooperationProjectUndertakerType | 3291 | - cooperationProjectUndertakerType |
| 3292 | + orgId: | ||
| 3293 | + type: integer | ||
| 3294 | + description: 组织机构ID | ||
| 3295 | + required: | ||
| 3296 | + - orgId | ||
| 3047 | userId: | 3297 | userId: |
| 3048 | type: integer | 3298 | type: integer |
| 3049 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 | 3299 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 |
| @@ -3064,6 +3314,11 @@ definitions: | @@ -3064,6 +3314,11 @@ definitions: | ||
| 3064 | description: 公司ID,通过集成REST上下文获取 | 3314 | description: 公司ID,通过集成REST上下文获取 |
| 3065 | required: | 3315 | required: |
| 3066 | - companyId | 3316 | - companyId |
| 3317 | + orgId: | ||
| 3318 | + type: integer | ||
| 3319 | + description: 组织机构ID | ||
| 3320 | + required: | ||
| 3321 | + - orgId | ||
| 3067 | userId: | 3322 | userId: |
| 3068 | type: integer | 3323 | type: integer |
| 3069 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 | 3324 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 |
| @@ -3090,6 +3345,11 @@ definitions: | @@ -3090,6 +3345,11 @@ definitions: | ||
| 3090 | departmentName: | 3345 | departmentName: |
| 3091 | type: string | 3346 | type: string |
| 3092 | description: 部门名称 | 3347 | description: 部门名称 |
| 3348 | + orgId: | ||
| 3349 | + type: integer | ||
| 3350 | + description: 组织机构ID | ||
| 3351 | + required: | ||
| 3352 | + - orgId | ||
| 3093 | pageNumber: | 3353 | pageNumber: |
| 3094 | type: integer | 3354 | type: integer |
| 3095 | description: 页面大小 | 3355 | description: 页面大小 |
| @@ -3117,6 +3377,11 @@ definitions: | @@ -3117,6 +3377,11 @@ definitions: | ||
| 3117 | $ref: '#/definitions/cooperationProjectResponseBody' | 3377 | $ref: '#/definitions/cooperationProjectResponseBody' |
| 3118 | required: | 3378 | required: |
| 3119 | - cooperationProjects | 3379 | - cooperationProjects |
| 3380 | + count: | ||
| 3381 | + type: integer | ||
| 3382 | + description: 匹配数目 | ||
| 3383 | + required: | ||
| 3384 | + - count | ||
| 3120 | CooperationProjectUpdateCooperationProjectRequestBody: | 3385 | CooperationProjectUpdateCooperationProjectRequestBody: |
| 3121 | title: CooperationProjectUpdateCooperationProjectRequestBody | 3386 | title: CooperationProjectUpdateCooperationProjectRequestBody |
| 3122 | type: object | 3387 | type: object |
| @@ -3142,6 +3407,11 @@ definitions: | @@ -3142,6 +3407,11 @@ definitions: | ||
| 3142 | description: 承接对象,1员工,2共创用户,3公开,可以多选 | 3407 | description: 承接对象,1员工,2共创用户,3公开,可以多选 |
| 3143 | required: | 3408 | required: |
| 3144 | - cooperationProjectUndertakerType | 3409 | - cooperationProjectUndertakerType |
| 3410 | + orgId: | ||
| 3411 | + type: integer | ||
| 3412 | + description: 组织机构ID | ||
| 3413 | + required: | ||
| 3414 | + - orgId | ||
| 3145 | publisherUid: | 3415 | publisherUid: |
| 3146 | type: string | 3416 | type: string |
| 3147 | description: 共创项目发布人uid | 3417 | description: 共创项目发布人uid |
| @@ -3172,6 +3442,11 @@ definitions: | @@ -3172,6 +3442,11 @@ definitions: | ||
| 3172 | description: 公司ID,通过集成REST上下文获取 | 3442 | description: 公司ID,通过集成REST上下文获取 |
| 3173 | required: | 3443 | required: |
| 3174 | - companyId | 3444 | - companyId |
| 3445 | + orgId: | ||
| 3446 | + type: integer | ||
| 3447 | + description: 组织机构ID | ||
| 3448 | + required: | ||
| 3449 | + - orgId | ||
| 3175 | userId: | 3450 | userId: |
| 3176 | type: integer | 3451 | type: integer |
| 3177 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 | 3452 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 |
| @@ -3192,6 +3467,11 @@ definitions: | @@ -3192,6 +3467,11 @@ definitions: | ||
| 3192 | description: 公司ID,通过集成REST上下文获取 | 3467 | description: 公司ID,通过集成REST上下文获取 |
| 3193 | required: | 3468 | required: |
| 3194 | - companyId | 3469 | - companyId |
| 3470 | + orgId: | ||
| 3471 | + type: integer | ||
| 3472 | + description: 组织机构ID | ||
| 3473 | + required: | ||
| 3474 | + - orgId | ||
| 3195 | userId: | 3475 | userId: |
| 3196 | type: integer | 3476 | type: integer |
| 3197 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 | 3477 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 |
| @@ -3232,6 +3512,11 @@ definitions: | @@ -3232,6 +3512,11 @@ definitions: | ||
| 3232 | description: 公司ID,通过集成REST上下文获取 | 3512 | description: 公司ID,通过集成REST上下文获取 |
| 3233 | required: | 3513 | required: |
| 3234 | - companyId | 3514 | - companyId |
| 3515 | + orgId: | ||
| 3516 | + type: integer | ||
| 3517 | + description: 组织机构ID | ||
| 3518 | + required: | ||
| 3519 | + - orgId | ||
| 3235 | remarks: | 3520 | remarks: |
| 3236 | type: string | 3521 | type: string |
| 3237 | description: 备注 | 3522 | description: 备注 |
| @@ -3257,6 +3542,11 @@ definitions: | @@ -3257,6 +3542,11 @@ definitions: | ||
| 3257 | description: 公司ID,通过集成REST上下文获取 | 3542 | description: 公司ID,通过集成REST上下文获取 |
| 3258 | required: | 3543 | required: |
| 3259 | - companyId | 3544 | - companyId |
| 3545 | + orgId: | ||
| 3546 | + type: integer | ||
| 3547 | + description: 组织机构ID | ||
| 3548 | + required: | ||
| 3549 | + - orgId | ||
| 3260 | userId: | 3550 | userId: |
| 3261 | type: integer | 3551 | type: integer |
| 3262 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 | 3552 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 |
| @@ -3282,9 +3572,23 @@ definitions: | @@ -3282,9 +3572,23 @@ definitions: | ||
| 3282 | description: 账期结算单号 | 3572 | description: 账期结算单号 |
| 3283 | required: | 3573 | required: |
| 3284 | - creditAccountOrderNum | 3574 | - creditAccountOrderNum |
| 3575 | + orgId: | ||
| 3576 | + type: integer | ||
| 3577 | + description: 组织机构ID | ||
| 3578 | + required: | ||
| 3579 | + - orgId | ||
| 3285 | participatorName: | 3580 | participatorName: |
| 3286 | type: string | 3581 | type: string |
| 3287 | description: 参与人姓名 | 3582 | description: 参与人姓名 |
| 3583 | + paymentStatus: | ||
| 3584 | + type: integer | ||
| 3585 | + description: 账期结算支付状态,1待支付,2已支付,APP端结算记录返回已结算的账期结算单 | ||
| 3586 | + required: | ||
| 3587 | + - paymentStatus | ||
| 3588 | + period: | ||
| 3589 | + type: string | ||
| 3590 | + description: 结算周期,按年“2021”或者按月结算”2021-07“ | ||
| 3591 | + format: datetime | ||
| 3288 | userId: | 3592 | userId: |
| 3289 | type: integer | 3593 | type: integer |
| 3290 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 | 3594 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 |
| @@ -3294,12 +3598,22 @@ definitions: | @@ -3294,12 +3598,22 @@ definitions: | ||
| 3294 | title: 'Mediatype identifier: CreditAccountSearchCreditAccountResponseBody' | 3598 | title: 'Mediatype identifier: CreditAccountSearchCreditAccountResponseBody' |
| 3295 | type: object | 3599 | type: object |
| 3296 | properties: | 3600 | properties: |
| 3601 | + count: | ||
| 3602 | + type: integer | ||
| 3603 | + description: 匹配数目 | ||
| 3604 | + required: | ||
| 3605 | + - count | ||
| 3297 | creditAccounts: | 3606 | creditAccounts: |
| 3298 | type: array | 3607 | type: array |
| 3299 | items: | 3608 | items: |
| 3300 | $ref: '#/definitions/creditAccountResponseBody' | 3609 | $ref: '#/definitions/creditAccountResponseBody' |
| 3301 | required: | 3610 | required: |
| 3302 | - creditAccounts | 3611 | - creditAccounts |
| 3612 | + sum: | ||
| 3613 | + type: number | ||
| 3614 | + description: 本月结算或本年度结算总和 | ||
| 3615 | + required: | ||
| 3616 | + - sum | ||
| 3303 | CreditAccountUpdateCreditAccountRequestBody: | 3617 | CreditAccountUpdateCreditAccountRequestBody: |
| 3304 | title: CreditAccountUpdateCreditAccountRequestBody | 3618 | title: CreditAccountUpdateCreditAccountRequestBody |
| 3305 | type: object | 3619 | type: object |
| @@ -3309,6 +3623,11 @@ definitions: | @@ -3309,6 +3623,11 @@ definitions: | ||
| 3309 | description: 公司ID,通过集成REST上下文获取 | 3623 | description: 公司ID,通过集成REST上下文获取 |
| 3310 | required: | 3624 | required: |
| 3311 | - companyId | 3625 | - companyId |
| 3626 | + orgId: | ||
| 3627 | + type: integer | ||
| 3628 | + description: 组织机构ID | ||
| 3629 | + required: | ||
| 3630 | + - orgId | ||
| 3312 | userId: | 3631 | userId: |
| 3313 | type: integer | 3632 | type: integer |
| 3314 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 | 3633 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 |
| @@ -3326,9 +3645,12 @@ definitions: | @@ -3326,9 +3645,12 @@ definitions: | ||
| 3326 | properties: | 3645 | properties: |
| 3327 | companyId: | 3646 | companyId: |
| 3328 | type: integer | 3647 | type: integer |
| 3329 | - description: 公司ID,通过集成REST上下文获取 | ||
| 3330 | - required: | ||
| 3331 | - - companyId | 3648 | + description: 企业id,企业和组织二选一 |
| 3649 | + format: int64 | ||
| 3650 | + orgId: | ||
| 3651 | + type: integer | ||
| 3652 | + description: 组织id,组织和企业二选一 | ||
| 3653 | + format: int64 | ||
| 3332 | userId: | 3654 | userId: |
| 3333 | type: integer | 3655 | type: integer |
| 3334 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 | 3656 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 |
| @@ -3349,6 +3671,11 @@ definitions: | @@ -3349,6 +3671,11 @@ definitions: | ||
| 3349 | description: 公司ID,通过集成REST上下文获取 | 3671 | description: 公司ID,通过集成REST上下文获取 |
| 3350 | required: | 3672 | required: |
| 3351 | - companyId | 3673 | - companyId |
| 3674 | + orgId: | ||
| 3675 | + type: integer | ||
| 3676 | + description: 组织机构ID | ||
| 3677 | + required: | ||
| 3678 | + - orgId | ||
| 3352 | userId: | 3679 | userId: |
| 3353 | type: integer | 3680 | type: integer |
| 3354 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 | 3681 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 |
| @@ -3369,6 +3696,11 @@ definitions: | @@ -3369,6 +3696,11 @@ definitions: | ||
| 3369 | description: 公司ID,通过集成REST上下文获取 | 3696 | description: 公司ID,通过集成REST上下文获取 |
| 3370 | required: | 3697 | required: |
| 3371 | - companyId | 3698 | - companyId |
| 3699 | + orgId: | ||
| 3700 | + type: integer | ||
| 3701 | + description: 组织机构ID | ||
| 3702 | + required: | ||
| 3703 | + - orgId | ||
| 3372 | userId: | 3704 | userId: |
| 3373 | type: integer | 3705 | type: integer |
| 3374 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 | 3706 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 |
| @@ -3399,6 +3731,11 @@ definitions: | @@ -3399,6 +3731,11 @@ definitions: | ||
| 3399 | description: 分红订单号/退货单号 | 3731 | description: 分红订单号/退货单号 |
| 3400 | required: | 3732 | required: |
| 3401 | - orderOrReturnedOrderNum | 3733 | - orderOrReturnedOrderNum |
| 3734 | + orgId: | ||
| 3735 | + type: integer | ||
| 3736 | + description: 组织机构ID | ||
| 3737 | + required: | ||
| 3738 | + - orgId | ||
| 3402 | userId: | 3739 | userId: |
| 3403 | type: integer | 3740 | type: integer |
| 3404 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 | 3741 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 |
| @@ -3429,6 +3766,11 @@ definitions: | @@ -3429,6 +3766,11 @@ definitions: | ||
| 3429 | description: 分红阶段 | 3766 | description: 分红阶段 |
| 3430 | required: | 3767 | required: |
| 3431 | - dividendsIncentivesStage | 3768 | - dividendsIncentivesStage |
| 3769 | + orgId: | ||
| 3770 | + type: integer | ||
| 3771 | + description: 组织机构ID | ||
| 3772 | + required: | ||
| 3773 | + - orgId | ||
| 3432 | undertakerUid: | 3774 | undertakerUid: |
| 3433 | type: string | 3775 | type: string |
| 3434 | description: 承接人UID | 3776 | description: 承接人UID |
| @@ -3454,6 +3796,11 @@ definitions: | @@ -3454,6 +3796,11 @@ definitions: | ||
| 3454 | description: 公司ID,通过集成REST上下文获取 | 3796 | description: 公司ID,通过集成REST上下文获取 |
| 3455 | required: | 3797 | required: |
| 3456 | - companyId | 3798 | - companyId |
| 3799 | + orgId: | ||
| 3800 | + type: integer | ||
| 3801 | + description: 组织机构ID | ||
| 3802 | + required: | ||
| 3803 | + - orgId | ||
| 3457 | userId: | 3804 | userId: |
| 3458 | type: integer | 3805 | type: integer |
| 3459 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 | 3806 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 |
| @@ -3499,6 +3846,11 @@ definitions: | @@ -3499,6 +3846,11 @@ definitions: | ||
| 3499 | description: 查询偏离量 | 3846 | description: 查询偏离量 |
| 3500 | required: | 3847 | required: |
| 3501 | - offset | 3848 | - offset |
| 3849 | + orgId: | ||
| 3850 | + type: integer | ||
| 3851 | + description: 组织机构ID | ||
| 3852 | + required: | ||
| 3853 | + - orgId | ||
| 3502 | userId: | 3854 | userId: |
| 3503 | type: integer | 3855 | type: integer |
| 3504 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 | 3856 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 |
| @@ -3508,6 +3860,11 @@ definitions: | @@ -3508,6 +3860,11 @@ definitions: | ||
| 3508 | title: 'Mediatype identifier: DividendsEstimateListDividendsIncentivesResponseBody' | 3860 | title: 'Mediatype identifier: DividendsEstimateListDividendsIncentivesResponseBody' |
| 3509 | type: object | 3861 | type: object |
| 3510 | properties: | 3862 | properties: |
| 3863 | + count: | ||
| 3864 | + type: integer | ||
| 3865 | + description: 匹配数目 | ||
| 3866 | + required: | ||
| 3867 | + - count | ||
| 3511 | dividendsIncentives: | 3868 | dividendsIncentives: |
| 3512 | $ref: '#/definitions/dividendsIncentivesResponseBody' | 3869 | $ref: '#/definitions/dividendsIncentivesResponseBody' |
| 3513 | DividendsEstimateListMoneyIncentivesRequestBody: | 3870 | DividendsEstimateListMoneyIncentivesRequestBody: |
| @@ -3529,6 +3886,11 @@ definitions: | @@ -3529,6 +3886,11 @@ definitions: | ||
| 3529 | description: 查询偏离量 | 3886 | description: 查询偏离量 |
| 3530 | required: | 3887 | required: |
| 3531 | - offset | 3888 | - offset |
| 3889 | + orgId: | ||
| 3890 | + type: integer | ||
| 3891 | + description: 组织机构ID | ||
| 3892 | + required: | ||
| 3893 | + - orgId | ||
| 3532 | userId: | 3894 | userId: |
| 3533 | type: integer | 3895 | type: integer |
| 3534 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 | 3896 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 |
| @@ -3538,6 +3900,11 @@ definitions: | @@ -3538,6 +3900,11 @@ definitions: | ||
| 3538 | title: 'Mediatype identifier: DividendsEstimateListMoneyIncentivesResponseBody' | 3900 | title: 'Mediatype identifier: DividendsEstimateListMoneyIncentivesResponseBody' |
| 3539 | type: object | 3901 | type: object |
| 3540 | properties: | 3902 | properties: |
| 3903 | + count: | ||
| 3904 | + type: integer | ||
| 3905 | + description: 匹配数目 | ||
| 3906 | + required: | ||
| 3907 | + - count | ||
| 3541 | moneyIncentives: | 3908 | moneyIncentives: |
| 3542 | $ref: '#/definitions/moneyIncentivesResponseBody' | 3909 | $ref: '#/definitions/moneyIncentivesResponseBody' |
| 3543 | DividendsEstimateRemoveDividendsEstimateRequestBody: | 3910 | DividendsEstimateRemoveDividendsEstimateRequestBody: |
| @@ -3549,6 +3916,11 @@ definitions: | @@ -3549,6 +3916,11 @@ definitions: | ||
| 3549 | description: 公司ID,通过集成REST上下文获取 | 3916 | description: 公司ID,通过集成REST上下文获取 |
| 3550 | required: | 3917 | required: |
| 3551 | - companyId | 3918 | - companyId |
| 3919 | + orgId: | ||
| 3920 | + type: integer | ||
| 3921 | + description: 组织机构ID | ||
| 3922 | + required: | ||
| 3923 | + - orgId | ||
| 3552 | userId: | 3924 | userId: |
| 3553 | type: integer | 3925 | type: integer |
| 3554 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 | 3926 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 |
| @@ -3579,6 +3951,11 @@ definitions: | @@ -3579,6 +3951,11 @@ definitions: | ||
| 3579 | description: 分红类型,1订单分红,2退货冲销,3金额激励 | 3951 | description: 分红类型,1订单分红,2退货冲销,3金额激励 |
| 3580 | required: | 3952 | required: |
| 3581 | - dividendsType | 3953 | - dividendsType |
| 3954 | + orgId: | ||
| 3955 | + type: integer | ||
| 3956 | + description: 组织机构ID | ||
| 3957 | + required: | ||
| 3958 | + - orgId | ||
| 3582 | userId: | 3959 | userId: |
| 3583 | type: integer | 3960 | type: integer |
| 3584 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 | 3961 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 |
| @@ -3588,6 +3965,11 @@ definitions: | @@ -3588,6 +3965,11 @@ definitions: | ||
| 3588 | title: 'Mediatype identifier: DividendsEstimateSearchDividendsEstimateResponseBody' | 3965 | title: 'Mediatype identifier: DividendsEstimateSearchDividendsEstimateResponseBody' |
| 3589 | type: object | 3966 | type: object |
| 3590 | properties: | 3967 | properties: |
| 3968 | + count: | ||
| 3969 | + type: integer | ||
| 3970 | + description: 匹配数目 | ||
| 3971 | + required: | ||
| 3972 | + - count | ||
| 3591 | dividendsEstimate: | 3973 | dividendsEstimate: |
| 3592 | $ref: '#/definitions/dividendsEstimateResponseBody' | 3974 | $ref: '#/definitions/dividendsEstimateResponseBody' |
| 3593 | DividendsEstimateSearchDividendsIncentivesRequestBody: | 3975 | DividendsEstimateSearchDividendsIncentivesRequestBody: |
| @@ -3605,6 +3987,11 @@ definitions: | @@ -3605,6 +3987,11 @@ definitions: | ||
| 3605 | orderOrReturnedOrderNum: | 3987 | orderOrReturnedOrderNum: |
| 3606 | type: string | 3988 | type: string |
| 3607 | description: 分红订单号/退货单号 | 3989 | description: 分红订单号/退货单号 |
| 3990 | + orgId: | ||
| 3991 | + type: integer | ||
| 3992 | + description: 组织机构ID | ||
| 3993 | + required: | ||
| 3994 | + - orgId | ||
| 3608 | userId: | 3995 | userId: |
| 3609 | type: integer | 3996 | type: integer |
| 3610 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 | 3997 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 |
| @@ -3614,6 +4001,11 @@ definitions: | @@ -3614,6 +4001,11 @@ definitions: | ||
| 3614 | title: 'Mediatype identifier: DividendsEstimateSearchDividendsIncentivesResponseBody' | 4001 | title: 'Mediatype identifier: DividendsEstimateSearchDividendsIncentivesResponseBody' |
| 3615 | type: object | 4002 | type: object |
| 3616 | properties: | 4003 | properties: |
| 4004 | + count: | ||
| 4005 | + type: integer | ||
| 4006 | + description: 匹配数目 | ||
| 4007 | + required: | ||
| 4008 | + - count | ||
| 3617 | dividendsIncentives: | 4009 | dividendsIncentives: |
| 3618 | $ref: '#/definitions/dividendsIncentivesResponseBody' | 4010 | $ref: '#/definitions/dividendsIncentivesResponseBody' |
| 3619 | DividendsEstimateSearchMoneyIncentivesRequestBody: | 4011 | DividendsEstimateSearchMoneyIncentivesRequestBody: |
| @@ -3631,6 +4023,11 @@ definitions: | @@ -3631,6 +4023,11 @@ definitions: | ||
| 3631 | departmentName: | 4023 | departmentName: |
| 3632 | type: string | 4024 | type: string |
| 3633 | description: 发起部门名称 | 4025 | description: 发起部门名称 |
| 4026 | + orgId: | ||
| 4027 | + type: integer | ||
| 4028 | + description: 组织机构ID | ||
| 4029 | + required: | ||
| 4030 | + - orgId | ||
| 3634 | userId: | 4031 | userId: |
| 3635 | type: integer | 4032 | type: integer |
| 3636 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 | 4033 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 |
| @@ -3640,6 +4037,11 @@ definitions: | @@ -3640,6 +4037,11 @@ definitions: | ||
| 3640 | title: 'Mediatype identifier: DividendsEstimateSearchMoneyIncentivesResponseBody' | 4037 | title: 'Mediatype identifier: DividendsEstimateSearchMoneyIncentivesResponseBody' |
| 3641 | type: object | 4038 | type: object |
| 3642 | properties: | 4039 | properties: |
| 4040 | + count: | ||
| 4041 | + type: integer | ||
| 4042 | + description: 匹配数目 | ||
| 4043 | + required: | ||
| 4044 | + - count | ||
| 3643 | moneyIncentives: | 4045 | moneyIncentives: |
| 3644 | type: array | 4046 | type: array |
| 3645 | items: | 4047 | items: |
| @@ -3655,6 +4057,11 @@ definitions: | @@ -3655,6 +4057,11 @@ definitions: | ||
| 3655 | description: 公司ID,通过集成REST上下文获取 | 4057 | description: 公司ID,通过集成REST上下文获取 |
| 3656 | required: | 4058 | required: |
| 3657 | - companyId | 4059 | - companyId |
| 4060 | + orgId: | ||
| 4061 | + type: integer | ||
| 4062 | + description: 组织机构ID | ||
| 4063 | + required: | ||
| 4064 | + - orgId | ||
| 3658 | userId: | 4065 | userId: |
| 3659 | type: integer | 4066 | type: integer |
| 3660 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 | 4067 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 |
| @@ -3708,6 +4115,11 @@ definitions: | @@ -3708,6 +4115,11 @@ definitions: | ||
| 3708 | description: 订单产生时间 | 4115 | description: 订单产生时间 |
| 3709 | required: | 4116 | required: |
| 3710 | - orderTime | 4117 | - orderTime |
| 4118 | + orgId: | ||
| 4119 | + type: integer | ||
| 4120 | + description: 组织机构ID | ||
| 4121 | + required: | ||
| 4122 | + - orgId | ||
| 3711 | remarks: | 4123 | remarks: |
| 3712 | type: string | 4124 | type: string |
| 3713 | description: 备注 | 4125 | description: 备注 |
| @@ -3736,6 +4148,11 @@ definitions: | @@ -3736,6 +4148,11 @@ definitions: | ||
| 3736 | description: 公司ID,通过集成REST上下文获取 | 4148 | description: 公司ID,通过集成REST上下文获取 |
| 3737 | required: | 4149 | required: |
| 3738 | - companyId | 4150 | - companyId |
| 4151 | + orgId: | ||
| 4152 | + type: integer | ||
| 4153 | + description: 组织机构ID | ||
| 4154 | + required: | ||
| 4155 | + - orgId | ||
| 3739 | userId: | 4156 | userId: |
| 3740 | type: integer | 4157 | type: integer |
| 3741 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 | 4158 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 |
| @@ -3771,6 +4188,11 @@ definitions: | @@ -3771,6 +4188,11 @@ definitions: | ||
| 3771 | description: 公司ID,通过集成REST上下文获取 | 4188 | description: 公司ID,通过集成REST上下文获取 |
| 3772 | required: | 4189 | required: |
| 3773 | - companyId | 4190 | - companyId |
| 4191 | + orgId: | ||
| 4192 | + type: integer | ||
| 4193 | + description: 组织机构ID | ||
| 4194 | + required: | ||
| 4195 | + - orgId | ||
| 3774 | userId: | 4196 | userId: |
| 3775 | type: integer | 4197 | type: integer |
| 3776 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 | 4198 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 |
| @@ -3798,6 +4220,11 @@ definitions: | @@ -3798,6 +4220,11 @@ definitions: | ||
| 3798 | type: integer | 4220 | type: integer |
| 3799 | description: 分红订单号 | 4221 | description: 分红订单号 |
| 3800 | format: int64 | 4222 | format: int64 |
| 4223 | + orgId: | ||
| 4224 | + type: integer | ||
| 4225 | + description: 组织机构ID | ||
| 4226 | + required: | ||
| 4227 | + - orgId | ||
| 3801 | pageNumber: | 4228 | pageNumber: |
| 3802 | type: integer | 4229 | type: integer |
| 3803 | description: 页面大小 | 4230 | description: 页面大小 |
| @@ -3815,6 +4242,11 @@ definitions: | @@ -3815,6 +4242,11 @@ definitions: | ||
| 3815 | title: 'Mediatype identifier: DividendsOrderSearchDividendsOrderResponseBody' | 4242 | title: 'Mediatype identifier: DividendsOrderSearchDividendsOrderResponseBody' |
| 3816 | type: object | 4243 | type: object |
| 3817 | properties: | 4244 | properties: |
| 4245 | + count: | ||
| 4246 | + type: integer | ||
| 4247 | + description: 匹配数目 | ||
| 4248 | + required: | ||
| 4249 | + - count | ||
| 3818 | dividendsOrders: | 4250 | dividendsOrders: |
| 3819 | type: array | 4251 | type: array |
| 3820 | items: | 4252 | items: |
| @@ -3858,6 +4290,11 @@ definitions: | @@ -3858,6 +4290,11 @@ definitions: | ||
| 3858 | description: 订单产生时间 | 4290 | description: 订单产生时间 |
| 3859 | required: | 4291 | required: |
| 3860 | - orderTime | 4292 | - orderTime |
| 4293 | + orgId: | ||
| 4294 | + type: integer | ||
| 4295 | + description: 组织机构ID | ||
| 4296 | + required: | ||
| 4297 | + - orgId | ||
| 3861 | remarks: | 4298 | remarks: |
| 3862 | type: string | 4299 | type: string |
| 3863 | description: 备注 | 4300 | description: 备注 |
| @@ -3906,6 +4343,11 @@ definitions: | @@ -3906,6 +4343,11 @@ definitions: | ||
| 3906 | items: | 4343 | items: |
| 3907 | $ref: '#/definitions/orderGoodsRequestBody' | 4344 | $ref: '#/definitions/orderGoodsRequestBody' |
| 3908 | description: 订单产品列表 | 4345 | description: 订单产品列表 |
| 4346 | + orgId: | ||
| 4347 | + type: integer | ||
| 4348 | + description: 组织机构ID | ||
| 4349 | + required: | ||
| 4350 | + - orgId | ||
| 3909 | originalOrderNum: | 4351 | originalOrderNum: |
| 3910 | type: string | 4352 | type: string |
| 3911 | description: 来源单号,源单号,订单号 | 4353 | description: 来源单号,源单号,订单号 |
| @@ -3939,6 +4381,11 @@ definitions: | @@ -3939,6 +4381,11 @@ definitions: | ||
| 3939 | description: 公司ID,通过集成REST上下文获取 | 4381 | description: 公司ID,通过集成REST上下文获取 |
| 3940 | required: | 4382 | required: |
| 3941 | - companyId | 4383 | - companyId |
| 4384 | + orgId: | ||
| 4385 | + type: integer | ||
| 4386 | + description: 组织机构ID | ||
| 4387 | + required: | ||
| 4388 | + - orgId | ||
| 3942 | userId: | 4389 | userId: |
| 3943 | type: integer | 4390 | type: integer |
| 3944 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 | 4391 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 |
| @@ -3962,6 +4409,11 @@ definitions: | @@ -3962,6 +4409,11 @@ definitions: | ||
| 3962 | file: | 4409 | file: |
| 3963 | type: string | 4410 | type: string |
| 3964 | description: 导入文件 | 4411 | description: 导入文件 |
| 4412 | + orgId: | ||
| 4413 | + type: integer | ||
| 4414 | + description: 组织机构ID | ||
| 4415 | + required: | ||
| 4416 | + - orgId | ||
| 3965 | userId: | 4417 | userId: |
| 3966 | type: integer | 4418 | type: integer |
| 3967 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 | 4419 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 |
| @@ -4000,6 +4452,11 @@ definitions: | @@ -4000,6 +4452,11 @@ definitions: | ||
| 4000 | description: 公司ID,通过集成REST上下文获取 | 4452 | description: 公司ID,通过集成REST上下文获取 |
| 4001 | required: | 4453 | required: |
| 4002 | - companyId | 4454 | - companyId |
| 4455 | + orgId: | ||
| 4456 | + type: integer | ||
| 4457 | + description: 组织机构ID | ||
| 4458 | + required: | ||
| 4459 | + - orgId | ||
| 4003 | userId: | 4460 | userId: |
| 4004 | type: integer | 4461 | type: integer |
| 4005 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 | 4462 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 |
| @@ -4026,6 +4483,11 @@ definitions: | @@ -4026,6 +4483,11 @@ definitions: | ||
| 4026 | dividendsReturnedOrderNumber: | 4483 | dividendsReturnedOrderNumber: |
| 4027 | type: string | 4484 | type: string |
| 4028 | description: 分红退货单号 | 4485 | description: 分红退货单号 |
| 4486 | + orgId: | ||
| 4487 | + type: integer | ||
| 4488 | + description: 组织机构ID | ||
| 4489 | + required: | ||
| 4490 | + - orgId | ||
| 4029 | pageNumber: | 4491 | pageNumber: |
| 4030 | type: integer | 4492 | type: integer |
| 4031 | description: 页面大小 | 4493 | description: 页面大小 |
| @@ -4043,6 +4505,11 @@ definitions: | @@ -4043,6 +4505,11 @@ definitions: | ||
| 4043 | title: 'Mediatype identifier: DividendsReturnedOrderSearchDividendsReturnedOrderResponseBody' | 4505 | title: 'Mediatype identifier: DividendsReturnedOrderSearchDividendsReturnedOrderResponseBody' |
| 4044 | type: object | 4506 | type: object |
| 4045 | properties: | 4507 | properties: |
| 4508 | + count: | ||
| 4509 | + type: integer | ||
| 4510 | + description: 匹配数目 | ||
| 4511 | + required: | ||
| 4512 | + - count | ||
| 4046 | dividendsReturnedOrders: | 4513 | dividendsReturnedOrders: |
| 4047 | type: array | 4514 | type: array |
| 4048 | items: | 4515 | items: |
| @@ -4078,6 +4545,11 @@ definitions: | @@ -4078,6 +4545,11 @@ definitions: | ||
| 4078 | items: | 4545 | items: |
| 4079 | $ref: '#/definitions/orderGoodsRequestBody' | 4546 | $ref: '#/definitions/orderGoodsRequestBody' |
| 4080 | description: 订单产品列表 | 4547 | description: 订单产品列表 |
| 4548 | + orgId: | ||
| 4549 | + type: integer | ||
| 4550 | + description: 组织机构ID | ||
| 4551 | + required: | ||
| 4552 | + - orgId | ||
| 4081 | originalOrderNum: | 4553 | originalOrderNum: |
| 4082 | type: string | 4554 | type: string |
| 4083 | description: 来源单号,源单号,订单号 | 4555 | description: 来源单号,源单号,订单号 |
| @@ -4108,9 +4580,12 @@ definitions: | @@ -4108,9 +4580,12 @@ definitions: | ||
| 4108 | properties: | 4580 | properties: |
| 4109 | companyId: | 4581 | companyId: |
| 4110 | type: integer | 4582 | type: integer |
| 4111 | - description: 公司ID,通过集成REST上下文获取 | ||
| 4112 | - required: | ||
| 4113 | - - companyId | 4583 | + description: 企业id,企业和组织二选一 |
| 4584 | + format: int64 | ||
| 4585 | + orgId: | ||
| 4586 | + type: integer | ||
| 4587 | + description: 组织id,组织和企业二选一 | ||
| 4588 | + format: int64 | ||
| 4114 | userId: | 4589 | userId: |
| 4115 | type: integer | 4590 | type: integer |
| 4116 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 | 4591 | description: 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 |
| @@ -4309,11 +4784,8 @@ definitions: | @@ -4309,11 +4784,8 @@ definitions: | ||
| 4309 | description: 共创申请时间 | 4784 | description: 共创申请时间 |
| 4310 | required: | 4785 | required: |
| 4311 | - cooperationApplyTime | 4786 | - cooperationApplyTime |
| 4312 | - cooperationProjectNumber: | ||
| 4313 | - type: string | ||
| 4314 | - description: 共创项目编号,自生成,生成规则:XM+6位年月日+#+3位流水,例XM210601#001 | ||
| 4315 | - required: | ||
| 4316 | - - cooperationProjectNumber | 4787 | + cooperationProject: |
| 4788 | + $ref: '#/definitions/cooperationProjectResponseBody' | ||
| 4317 | createdAt: | 4789 | createdAt: |
| 4318 | type: string | 4790 | type: string |
| 4319 | description: 创建时间 | 4791 | description: 创建时间 |
| @@ -4510,7 +4982,7 @@ definitions: | @@ -4510,7 +4982,7 @@ definitions: | ||
| 4510 | - goodRatio | 4982 | - goodRatio |
| 4511 | rank: | 4983 | rank: |
| 4512 | type: integer | 4984 | type: integer |
| 4513 | - description: 共创产品TOP5排名 | 4985 | + description: 排名 |
| 4514 | required: | 4986 | required: |
| 4515 | - rank | 4987 | - rank |
| 4516 | description: 共创产品统计 | 4988 | description: 共创产品统计 |
| @@ -4532,7 +5004,7 @@ definitions: | @@ -4532,7 +5004,7 @@ definitions: | ||
| 4532 | - cooperationModeName | 5004 | - cooperationModeName |
| 4533 | cooperationModeNumber: | 5005 | cooperationModeNumber: |
| 4534 | type: string | 5006 | type: string |
| 4535 | - description: 模式编码,唯一确定 | 5007 | + description: 共创模式编码,唯一确定 |
| 4536 | required: | 5008 | required: |
| 4537 | - cooperationModeNumber | 5009 | - cooperationModeNumber |
| 4538 | createdAt: | 5010 | createdAt: |
| @@ -4585,8 +5057,8 @@ definitions: | @@ -4585,8 +5057,8 @@ definitions: | ||
| 4585 | required: | 5057 | required: |
| 4586 | - dividendsEstimate | 5058 | - dividendsEstimate |
| 4587 | orderAmount: | 5059 | orderAmount: |
| 4588 | - type: string | ||
| 4589 | - description: 具体成交类型的订单金额 | 5060 | + type: number |
| 5061 | + description: 订单金额统计 | ||
| 4590 | required: | 5062 | required: |
| 4591 | - orderAmount | 5063 | - orderAmount |
| 4592 | description: 共创模式统计 | 5064 | description: 共创模式统计 |
| @@ -4785,8 +5257,8 @@ definitions: | @@ -4785,8 +5257,8 @@ definitions: | ||
| 4785 | required: | 5257 | required: |
| 4786 | - dividendsEstimate | 5258 | - dividendsEstimate |
| 4787 | orderAmount: | 5259 | orderAmount: |
| 4788 | - type: string | ||
| 4789 | - description: 具体成交类型的订单金额 | 5260 | + type: number |
| 5261 | + description: 订单金额统计 | ||
| 4790 | required: | 5262 | required: |
| 4791 | - orderAmount | 5263 | - orderAmount |
| 4792 | description: 本月分红统计 | 5264 | description: 本月分红统计 |
| @@ -5307,8 +5779,8 @@ definitions: | @@ -5307,8 +5779,8 @@ definitions: | ||
| 5307 | type: object | 5779 | type: object |
| 5308 | properties: | 5780 | properties: |
| 5309 | orderAmount: | 5781 | orderAmount: |
| 5310 | - type: string | ||
| 5311 | - description: 具体成交类型的订单金额 | 5782 | + type: number |
| 5783 | + description: 订单金额统计 | ||
| 5312 | required: | 5784 | required: |
| 5313 | - orderAmount | 5785 | - orderAmount |
| 5314 | orderTypeName: | 5786 | orderTypeName: |
| @@ -5322,8 +5794,8 @@ definitions: | @@ -5322,8 +5794,8 @@ definitions: | ||
| 5322 | type: object | 5794 | type: object |
| 5323 | properties: | 5795 | properties: |
| 5324 | orderAmount: | 5796 | orderAmount: |
| 5325 | - type: string | ||
| 5326 | - description: 具体成交类型的订单金额 | 5797 | + type: number |
| 5798 | + description: 订单金额统计 | ||
| 5327 | required: | 5799 | required: |
| 5328 | - orderAmount | 5800 | - orderAmount |
| 5329 | orderAmountByTypes: | 5801 | orderAmountByTypes: |
pkg/application/factory/domain_service.go
0 → 100644
| 1 | +package factory |
pkg/application/factory/message.go
0 → 100644
| 1 | +package factory | ||
| 2 | + | ||
| 3 | +import ( | ||
| 4 | + "fmt" | ||
| 5 | + | ||
| 6 | + "github.com/linmadan/egglib-go/core/application" | ||
| 7 | + "github.com/linmadan/egglib-go/message/publisher/kafkaMessage/sarama" | ||
| 8 | + localMessagePublisher "github.com/linmadan/egglib-go/message/publisher/localMessage" | ||
| 9 | + localMessageReceiver "github.com/linmadan/egglib-go/message/receiver/localMessage" | ||
| 10 | + . "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation" | ||
| 11 | + "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/constant" | ||
| 12 | +) | ||
| 13 | + | ||
| 14 | +func CreateMessagePublisher(options map[string]interface{}) (application.MessagePublisher, error) { | ||
| 15 | + if localMessageOptions, ok := options["localMessageOptions"]; ok { | ||
| 16 | + var storeType string | ||
| 17 | + var storeOptions map[string]interface{} | ||
| 18 | + if value, ok := localMessageOptions.(map[string]interface{})["storeType"]; ok { | ||
| 19 | + storeType = value.(string) | ||
| 20 | + } else { | ||
| 21 | + return nil, fmt.Errorf("LocalMessagePublisher缺少参数storeType") | ||
| 22 | + } | ||
| 23 | + if value, ok := localMessageOptions.(map[string]interface{})["storeOptions"]; ok { | ||
| 24 | + storeOptions = value.(map[string]interface{}) | ||
| 25 | + } else { | ||
| 26 | + return nil, fmt.Errorf("LocalMessagePublisher缺少参数storeOptions") | ||
| 27 | + } | ||
| 28 | + return localMessagePublisher.NewLocalMessagePublisher(storeType, storeOptions) | ||
| 29 | + } else { | ||
| 30 | + return sarama.NewKafkaSaramaMessagePublisher(constant.KAFKA_HOSTS, Logger) | ||
| 31 | + } | ||
| 32 | +} | ||
| 33 | + | ||
| 34 | +func CreateMessageReceiver(options map[string]interface{}) (application.MessageReceiver, error) { | ||
| 35 | + if localMessageOptions, ok := options["localMessageOptions"]; ok { | ||
| 36 | + var converterType string | ||
| 37 | + if value, ok := localMessageOptions.(map[string]interface{})["converterType"]; ok { | ||
| 38 | + converterType = value.(string) | ||
| 39 | + } else { | ||
| 40 | + return nil, fmt.Errorf("LocalMessageReceiver缺少参数converterType") | ||
| 41 | + } | ||
| 42 | + var storeType string | ||
| 43 | + var storeOptions map[string]interface{} | ||
| 44 | + if value, ok := localMessageOptions.(map[string]interface{})["storeType"]; ok { | ||
| 45 | + storeType = value.(string) | ||
| 46 | + } else { | ||
| 47 | + return nil, fmt.Errorf("LocalMessageReceiver缺少参数storeType") | ||
| 48 | + } | ||
| 49 | + if value, ok := localMessageOptions.(map[string]interface{})["storeOptions"]; ok { | ||
| 50 | + storeOptions = value.(map[string]interface{}) | ||
| 51 | + } else { | ||
| 52 | + return nil, fmt.Errorf("LocalMessageReceiver缺少参数storeOptions") | ||
| 53 | + } | ||
| 54 | + return localMessageReceiver.NewLocalMessageReceiver(converterType, nil, storeType, storeOptions) | ||
| 55 | + } else { | ||
| 56 | + return nil, fmt.Errorf("缺少参数localMessageOptions") | ||
| 57 | + } | ||
| 58 | +} |
pkg/application/factory/repository.go
0 → 100644
| 1 | +package factory |
pkg/application/factory/transaction.go
0 → 100644
| 1 | +package factory | ||
| 2 | + | ||
| 3 | +import ( | ||
| 4 | + "github.com/linmadan/egglib-go/core/application" | ||
| 5 | + pG "github.com/linmadan/egglib-go/transaction/pg" | ||
| 6 | +) | ||
| 7 | + | ||
| 8 | +func CreateTransactionContext(options map[string]interface{}) (application.TransactionContext, error) { | ||
| 9 | + return pG.NewPGTransactionContext(pg.DB), nil | ||
| 10 | +} |
pkg/application/init.go
0 → 100644
pkg/constant/common.go
0 → 100644
pkg/constant/kafka.go
0 → 100644
pkg/constant/postgresql.go
0 → 100644
| 1 | +package constant | ||
| 2 | + | ||
| 3 | +import "os" | ||
| 4 | + | ||
| 5 | +var POSTGRESQL_DB_NAME = "allied-creation-cooperation" | ||
| 6 | +var POSTGRESQL_USER = "postgres" | ||
| 7 | +var POSTGRESQL_PASSWORD = "" | ||
| 8 | +var POSTGRESQL_HOST = "127.0.0.1" | ||
| 9 | +var POSTGRESQL_PORT = "32432" | ||
| 10 | +var DISABLE_CREATE_TABLE = false | ||
| 11 | +var DISABLE_SQL_GENERATE_PRINT = false | ||
| 12 | + | ||
| 13 | +func init() { | ||
| 14 | + if os.Getenv("POSTGRESQL_DB_NAME") != "" { | ||
| 15 | + POSTGRESQL_DB_NAME = os.Getenv("POSTGRESQL_DB_NAME") | ||
| 16 | + } | ||
| 17 | + if os.Getenv("POSTGRESQL_USER") != "" { | ||
| 18 | + POSTGRESQL_USER = os.Getenv("POSTGRESQL_USER") | ||
| 19 | + } | ||
| 20 | + if os.Getenv("POSTGRESQL_PASSWORD") != "" { | ||
| 21 | + POSTGRESQL_PASSWORD = os.Getenv("POSTGRESQL_PASSWORD") | ||
| 22 | + } | ||
| 23 | + if os.Getenv("POSTGRESQL_HOST") != "" { | ||
| 24 | + POSTGRESQL_HOST = os.Getenv("POSTGRESQL_HOST") | ||
| 25 | + } | ||
| 26 | + if os.Getenv("POSTGRESQL_PORT") != "" { | ||
| 27 | + POSTGRESQL_PORT = os.Getenv("POSTGRESQL_PORT") | ||
| 28 | + } | ||
| 29 | + if os.Getenv("DISABLE_CREATE_TABLE") != "" { | ||
| 30 | + DISABLE_CREATE_TABLE = true | ||
| 31 | + } | ||
| 32 | + if os.Getenv("DISABLE_SQL_GENERATE_PRINT") != "" { | ||
| 33 | + DISABLE_SQL_GENERATE_PRINT = true | ||
| 34 | + } | ||
| 35 | +} |
pkg/infrastructure/pg/init.go
0 → 100644
| 1 | +package pg | ||
| 2 | + | ||
| 3 | +import ( | ||
| 4 | + "github.com/go-pg/pg/v10/orm" | ||
| 5 | + "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/constant" | ||
| 6 | + | ||
| 7 | + //_ "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/infrastructure/pg/models" | ||
| 8 | + "github.com/linmadan/egglib-go/persistent/pg/comment" | ||
| 9 | + "github.com/linmadan/egglib-go/persistent/pg/hooks" | ||
| 10 | +) | ||
| 11 | + | ||
| 12 | +var DB *pg.DB | ||
| 13 | + | ||
| 14 | +func init() { | ||
| 15 | + DB = pg.Connect(&pg.Options{ | ||
| 16 | + User: constant.POSTGRESQL_USER, | ||
| 17 | + Password: constant.POSTGRESQL_PASSWORD, | ||
| 18 | + Database: constant.POSTGRESQL_DB_NAME, | ||
| 19 | + Addr: fmt.Sprintf("%s:%s", constant.POSTGRESQL_HOST, constant.POSTGRESQL_PORT), | ||
| 20 | + }) | ||
| 21 | + if !constant.DISABLE_SQL_GENERATE_PRINT { | ||
| 22 | + DB.AddQueryHook(hooks.SqlGeneratePrintHook{}) | ||
| 23 | + } | ||
| 24 | + if !constant.DISABLE_CREATE_TABLE { | ||
| 25 | + for _, model := range []interface{}{} { | ||
| 26 | + err := DB.Model(model).CreateTable(&orm.CreateTableOptions{ | ||
| 27 | + Temp: false, | ||
| 28 | + IfNotExists: true, | ||
| 29 | + FKConstraints: true, | ||
| 30 | + }) | ||
| 31 | + if err != nil { | ||
| 32 | + panic(err) | ||
| 33 | + } | ||
| 34 | + comment.AddComments(DB, model) | ||
| 35 | + } | ||
| 36 | + } | ||
| 37 | +} |
pkg/log/logger.go
0 → 100644
| 1 | +package log | ||
| 2 | + | ||
| 3 | +import ( | ||
| 4 | + "github.com/linmadan/egglib-go/log" | ||
| 5 | + "github.com/linmadan/egglib-go/log/logrus" | ||
| 6 | + "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/constant" | ||
| 7 | +) | ||
| 8 | + | ||
| 9 | +var Logger log.Logger | ||
| 10 | + | ||
| 11 | +func init() { | ||
| 12 | + Logger = logrus.NewLogrusLogger() | ||
| 13 | + Logger.SetServiceName(constant.SERVICE_NAME) | ||
| 14 | + Logger.SetLevel(constant.LOG_LEVEL) | ||
| 15 | +} |
pkg/port/beego/beego.go
0 → 100644
| 1 | +package beego | ||
| 2 | + | ||
| 3 | +import ( | ||
| 4 | + "github.com/beego/beego/v2/server/web" | ||
| 5 | + "github.com/linmadan/egglib-go/web/beego/filters" | ||
| 6 | + | ||
| 7 | + //_ "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/port/beego/routers" | ||
| 8 | + . "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/log" | ||
| 9 | +) | ||
| 10 | + | ||
| 11 | +func init() { | ||
| 12 | + web.BConfig.AppName = "allied-creation-cooperation" | ||
| 13 | + web.BConfig.CopyRequestBody = true | ||
| 14 | + web.BConfig.RunMode = "dev" | ||
| 15 | + web.BConfig.Listen.HTTPPort = 8080 | ||
| 16 | + web.BConfig.Listen.EnableAdmin = false | ||
| 17 | + web.BConfig.WebConfig.CommentRouterPath = "/pkg/port/beego" | ||
| 18 | + if os.Getenv("RUN_MODE") != "" { | ||
| 19 | + web.BConfig.RunMode = os.Getenv("RUN_MODE") | ||
| 20 | + } | ||
| 21 | + if os.Getenv("HTTP_PORT") != "" { | ||
| 22 | + portStr := os.Getenv("HTTP_PORT") | ||
| 23 | + if port, err := strconv.Atoi(portStr); err == nil { | ||
| 24 | + web.BConfig.Listen.HTTPPort = port | ||
| 25 | + } | ||
| 26 | + } | ||
| 27 | + web.InsertFilter("/*", web.BeforeExec, filters.AllowCors()) | ||
| 28 | + web.InsertFilter("/*", web.BeforeExec, filters.CreateRequstLogFilter(Logger)) | ||
| 29 | + web.InsertFilter("/*", web.AfterExec, filters.CreateResponseLogFilter(Logger), web.WithReturnOnOutput(false)) | ||
| 30 | +} |
pkg/port/sarama/sarama.go
0 → 100644
| 1 | +package sarama | ||
| 2 | + | ||
| 3 | +import ( | ||
| 4 | + "github.com/Shopify/sarama" | ||
| 5 | + saramaConsumer "github.com/linmadan/egglib-go/mom/kafka/sarama" | ||
| 6 | + "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/constant" | ||
| 7 | + . "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/log" | ||
| 8 | + // "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/port/sarama/messageHandler" | ||
| 9 | +) | ||
| 10 | + | ||
| 11 | +func Run() { | ||
| 12 | + messageHandlerMap := make(map[string]func(message *sarama.ConsumerMessage) error) | ||
| 13 | + messageHandlerMap[constant.PUSH_MESSAGE_COMMAND] = messageHandler.PushMessageCommandHandler | ||
| 14 | + saramaConsumer.StartConsume(constant.KAFKA_HOSTS, constant.SERVICE_NAME, messageHandlerMap, Logger) | ||
| 15 | +} |
-
请 注册 或 登录 后发表评论