作者 tangxuhui

新增:共创申请管理

正在显示 48 个修改的文件 包含 615 行增加54 行删除
  1 +version: v1
  2 +kind: HttpApi
  3 +metadata:
  4 + service: cooperationApplication
  5 + path: /cooperation-applications
  6 + endpoints:
  7 + - method: createCooperationApplication
  8 + route:
  9 + post: /
  10 + - method: updateCooperationApplication
  11 + route:
  12 + put: /{applicationId}
  13 + - method: getCooperationApplication
  14 + route:
  15 + get: /{applicationId}
  16 + - method: listCooperationApplication
  17 + route:
  18 + get: /
  19 + params:
  20 + - name: offset
  21 + - name: limit
  22 + - method: auditCooperationApplication
  23 + route:
  24 + put: /audit
  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: /{modeId}
  13 + - method: getCooperationMode
  14 + route:
  15 + get: /{modeId}
  16 + - method: removeCooperationMode
  17 + route:
  18 + delete: /{modeId}
  19 + - method: listCooperationMode
  20 + route:
  21 + get: /
  22 + params:
  23 + - name: offset
  24 + - name: limit
  1 +version: v1
  2 +kind: HttpApi
  3 +metadata:
  4 + service: cooperationProject
  5 + path: /cooperation-projects
  6 + endpoints:
  7 + - method: createCooperationProject
  8 + route:
  9 + post: /
  10 + - method: updateCooperationProject
  11 + route:
  12 + put: /{projectId}
  13 + - method: getCooperationProject
  14 + route:
  15 + get: /{projectId}
  16 + - method: listCooperationProject
  17 + route:
  18 + get: /
  19 + params:
  20 + - name: offset
  21 + - name: limit
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: attachmentName
  5 + description: 附件名称
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: attachmentType
  5 + description: 附件类型
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: attachmentUrl
  5 + description: 附件下载地址
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: fileSize
  5 + description: 文件大小
  6 + type:
  7 + primitive: string
@@ -3,5 +3,5 @@ kind: Attribute @@ -3,5 +3,5 @@ kind: Attribute
3 metadata: 3 metadata:
4 name: cooperationApplicationAttachment 4 name: cooperationApplicationAttachment
5 description: 共创申请描述附件 5 description: 共创申请描述附件
6 - type:  
7 - array: string 6 + type:
  7 + array: attachment
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: cooperationContractDescription
  5 + description: 共创合约描述
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: cooperationContractId
  5 + description: 共创合约ID
  6 + type:
  7 + primitive: int64
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: cooperationContractIncentivesRules
  5 + description: 共创合约激励规则列表
  6 + type:
  7 + array: dividendsIncentivesRules
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: cooperationContractName
  5 + description: 共创合约名称
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: cooperationContractNumber
  5 + description: 共创合约编号
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: cooperationContractSponsor
  5 + description: 共创合约发起人
  6 + type:
  7 + schema: user
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: cooperationContractUndertakerType
  5 + description: 共创合约承接对象,1员工,2共创用户,3公开
  6 + type:
  7 + array: int32
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: cooperationMode
  5 + description: 共创模式
  6 + type:
  7 + schema: cooperationMode
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: cooperationProjectDepartment
  5 + description: 发起部门
  6 + type:
  7 + schema: orgs
@@ -3,5 +3,5 @@ kind: Attribute @@ -3,5 +3,5 @@ kind: Attribute
3 metadata: 3 metadata:
4 name: cooperationProjectPublisher 4 name: cooperationProjectPublisher
5 description: 共创项目发布人 5 description: 共创项目发布人
6 - type:  
7 - schema: user 6 + type:
  7 + schema: users
@@ -3,5 +3,5 @@ kind: Attribute @@ -3,5 +3,5 @@ kind: Attribute
3 metadata: 3 metadata:
4 name: cooperationProjectSponsor 4 name: cooperationProjectSponsor
5 description: 共创项目发起人 5 description: 共创项目发起人
6 - type:  
7 - schema: user 6 + type:
  7 + schema: users
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: dividendsPercentage
  5 + description: 分红规则激励百分点
  6 + type:
  7 + primitive: float64
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: dividendsRuleId
  5 + description: 分红规则ID
  6 + type:
  7 + primitive: int64
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: dividendsStage
  5 + description: 分红规则激励阶段,阶段返回时需要转换为中文数字
  6 + type:
  7 + primitive: int64
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: dividendsStageEnd
  5 + description: 分红规则激励阶段结束
  6 + type:
  7 + primitive: datetime
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: dividendsStageStart
  5 + description: 分红规则激励阶段开始
  6 + type:
  7 + primitive: datetime
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: referrerPercentage
  5 + description: 推荐人抽成比例
  6 + type:
  7 + primitive: float64
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: salesmanPercentage
  5 + description: 业务员抽成比例
  6 + type:
  7 + primitive: float64
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: attachment
  5 + description: 附件信息
  6 + attributes:
  7 + - ref: attachmentUrl
  8 + required: true
  9 + - ref: attachmentType
  10 + required: true
  11 + - ref: attachmentName
  12 + required: true
  13 + - ref: fileSize
  14 + required: true
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: cooperationApplication
  5 + description: 共创申请
  6 + attributes:
  7 + - ref: cooperationApplicationApplicant
  8 + required: true
  9 + - ref: cooperationApplicationAttachment
  10 + required: true
  11 + - ref: cooperationApplicationDescription
  12 + required: true
  13 + - ref: cooperationApplicationId
  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: cooperationProjectId
  26 + required: true
  27 + - ref: cooperationProjectNumber
  28 + required: true
  29 + - ref: companyId
  30 + required: true
  31 + - ref: orgName
  32 + required: true
  33 + - ref: orgId
  34 + required: true
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: cooperationInfo
  5 + description: 共创信息
  6 + attributes:
  7 + - ref: usersCode
  8 + required: true
  9 + - ref: usersId
  10 + required: true
  11 + - ref: orgId
  12 + required: true
  13 + - ref: orgName
  14 + required: true
  15 + - ref: usersName
  16 + required: true
  17 + - ref: phone
  18 + required: true
  19 + - ref: status
  20 + required: true
  21 + - name: statusName
  22 + description: 状态描述
  23 + type:
  24 + primitive: string
  25 + - name: referrer
  26 + type:
  27 + schema: users
@@ -4,26 +4,35 @@ metadata: @@ -4,26 +4,35 @@ metadata:
4 name: cooperationMode 4 name: cooperationMode
5 description: 共创模式实体 5 description: 共创模式实体
6 attributes: 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: remarks  
19 - required: true  
20 - - ref: operator  
21 - required: true  
22 - - ref: operateTime  
23 - required: true  
24 - - ref: updatedAt  
25 - required: true  
26 - - ref: deletedAt  
27 - required: true  
28 - - ref: createdAt  
29 - required: true 7 + - ref: cooperationModeId
  8 + required: true
  9 + - ref: companyId
  10 + required: true
  11 + - ref: orgId
  12 + required: true
  13 + - ref: orgName
  14 + - ref: cooperationModeNumber
  15 + description: 模式编码,唯一确定
  16 + required: true
  17 + - ref: cooperationModeName
  18 + description: 模式名称,唯一确定
  19 + required: true
  20 + - ref: status
  21 + description: 共创模式状态,1启用,2禁用
  22 + required: true
  23 + - name: statusName
  24 + description: 状态描述
  25 + type:
  26 + primitive: string
  27 + - ref: remarks
  28 + required: true
  29 + - ref: operator
  30 + required: true
  31 + - ref: operateTime
  32 + required: true
  33 + - ref: updatedAt
  34 + required: true
  35 + - ref: deletedAt
  36 + required: true
  37 + - ref: createdAt
  38 + required: true
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: cooperationProject
  5 + description: 共创项目
  6 + attributes:
  7 + - ref: cooperationProjectDescription
  8 + required: true
  9 + - ref: cooperationProjectId
  10 + required: true
  11 + - ref: cooperationProjectName
  12 + required: true
  13 + - ref: cooperationProjectNumber
  14 + required: true
  15 + - ref: cooperationProjectPublishTime
  16 + required: true
  17 + - ref: cooperationProjectPublisher
  18 + required: true
  19 + - ref: cooperationProjectSponsor
  20 + required: true
  21 + - ref: cooperationProjectUndertakerType
  22 + required: true
  23 + - ref: companyId
  24 + required: true
  25 + - ref: orgName
  26 + required: true
  27 + - ref: orgId
  28 + required: true
  29 + - ref: cooperationModeName
  30 + - ref: cooperationModeNumber
  31 + description: 模式编码,唯一确定
  32 + - ref: cooperationProjectDepartment
  33 + - name: cooperationMode
  34 + description: 共创模式
  35 + type:
  36 + schema: cooperationMode
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: dividendsIncentivesRules
  5 + description: 金额激励规则实体
  6 + attributes:
  7 + - ref: dividendsIncentivesRuleId
  8 + required: true
  9 + - ref: referrerPercentage
  10 + required: true
  11 + - ref: salesmanPercentage
  12 + required: true
  13 + - ref: dividendsIncentivesPercentage
  14 + required: true
  15 + - ref: dividendsIncentivesStage
  16 + required: true
  17 + - ref: dividendsIncentivesStageEnd
  18 + required: true
  19 + - ref: dividendsIncentivesStageStart
  20 + required: true
  21 + - ref: updatedAt
  22 + required: true
  23 + - ref: deletedAt
  24 + required: true
  25 + - ref: createdAt
  26 + required: true
@@ -26,6 +26,10 @@ metadata: @@ -26,6 +26,10 @@ metadata:
26 required: true 26 required: true
27 - ref: status 27 - ref: status
28 required: true 28 required: true
  29 + - name: statusName
  30 + description: 状态描述
  31 + type:
  32 + primitive: string
29 - ref: usersCode 33 - ref: usersCode
30 required: true 34 required: true
31 - ref: usersId 35 - ref: usersId
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: auditCooperationApplication
  5 + type: command
  6 + description: 审核共创申请
  7 + payload:
  8 + - ref: cooperationApplicationId
  9 + required: true
  10 + - name: userId
  11 + description: 审核人id
  12 + type:
  13 + primitive: int64
  14 + - ref: cooperationApplicationStatus
  15 + required: true
  16 + - ref: cooperationApplicationVerifyDescription
  17 + required: true
  18 + result:
  19 + - ref: cooperationApplicationId
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: createCooperationApplication
  5 + type: command
  6 + description: 创建共创申请管理
  7 + payload:
  8 + - ref: cooperationApplicationDescription
  9 + required: true
  10 + - name: userId
  11 + description: 申请人的id
  12 + type:
  13 + primitive: int64
  14 + - name: attachment
  15 + description: 附件列表
  16 + type:
  17 + array: attachment
  18 + result:
  19 + - name: cooperationApplication
  20 + type:
  21 + schema: cooperationApplication
  22 + required: true
  23 + - name: cooperationProject
  24 + type:
  25 + schema: cooperationProject
  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 + result:
  11 + - name: cooperationApplication
  12 + type:
  13 + schema: cooperationApplication
  14 + 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 + result:
  13 + - ref: count
  14 + required: true
  15 + - name: cooperationApplications
  16 + type:
  17 + array: cooperationApplication
  18 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: updateCooperationApplication
  5 + type: command
  6 + description: 更新共创申请管理
  7 + payload:
  8 + - ref: cooperationApplicationId
  9 + required: true
  10 + result:
  11 + - name: cooperationApplication
  12 + type:
  13 + schema: cooperationApplication
  14 + required: true
  1 +version: v1
  2 +kind: Service
  3 +metadata:
  4 + name: cooperationApplication
  5 + description: 共创申请管理
@@ -3,10 +3,27 @@ kind: Method @@ -3,10 +3,27 @@ kind: Method
3 metadata: 3 metadata:
4 name: createCooperationProject 4 name: createCooperationProject
5 type: command 5 type: command
6 - description: 创建共创项目服务 6 + description: 创建共创项目管理
7 payload: 7 payload:
  8 + - ref: cooperationModeNumber
  9 + description: 模式编码,唯一确定
  10 + required: true
  11 + - ref: orgId
  12 + required: true
  13 + - ref: cooperationProjectName
  14 + required: true
  15 + - name: cooperationProjectSponsor
  16 + description: 共创发起人id
  17 + type:
  18 + primitive: int64
  19 + - name: cooperationProjectUndertakerType
  20 + description: 项目承接对象
  21 + type:
  22 + array: int32
  23 + - ref: cooperationProjectDescription
  24 + required: true
8 result: 25 result:
9 - - name: cooperationProject  
10 - type:  
11 - schema: cooperationProject  
12 - required: true 26 + - name: cooperationProject
  27 + type:
  28 + schema: cooperationProject
  29 + required: true
@@ -3,12 +3,15 @@ kind: Method @@ -3,12 +3,15 @@ kind: Method
3 metadata: 3 metadata:
4 name: getCooperationProject 4 name: getCooperationProject
5 type: query 5 type: query
6 - description: 返回共创项目服务 6 + description: 返回共创项目管理
7 payload: 7 payload:
8 - - ref: cooperationProjectId  
9 - required: true 8 + - ref: cooperationProjectId
  9 + required: true
10 result: 10 result:
11 - - name: cooperationProject  
12 - type:  
13 - schema: cooperationProject  
14 - required: true 11 + - name: cooperationProject
  12 + type:
  13 + schema: cooperationProject
  14 + required: true
  15 + - name: application
  16 + type:
  17 + array: cooperationApplication
@@ -3,7 +3,7 @@ kind: Method @@ -3,7 +3,7 @@ kind: Method
3 metadata: 3 metadata:
4 name: listCooperationProject 4 name: listCooperationProject
5 type: query 5 type: query
6 - description: 返回共创项目服务列表 6 + description: 返回共创项目管理列表
7 payload: 7 payload:
8 - ref: offset 8 - ref: offset
9 required: true 9 required: true
@@ -3,12 +3,29 @@ kind: Method @@ -3,12 +3,29 @@ kind: Method
3 metadata: 3 metadata:
4 name: updateCooperationProject 4 name: updateCooperationProject
5 type: command 5 type: command
6 - description: 更新共创项目服务 6 + description: 更新共创项目管理
7 payload: 7 payload:
8 - - ref: cooperationProjectId  
9 - required: true 8 + - ref: cooperationProjectId
  9 + required: true
  10 + - ref: cooperationModeNumber
  11 + description: 模式编码,唯一确定
  12 + required: true
  13 + - ref: orgId
  14 + required: true
  15 + - ref: cooperationProjectName
  16 + required: true
  17 + - name: cooperationProjectSponsor
  18 + description: 共创发起人id
  19 + type:
  20 + primitive: int64
  21 + - name: cooperationProjectUndertakerType
  22 + description: 项目承接对象
  23 + type:
  24 + array: int32
  25 + - ref: cooperationProjectDescription
  26 + required: true
10 result: 27 result:
11 - - name: cooperationProject  
12 - type:  
13 - schema: cooperationProject  
14 - required: true 28 + - name: cooperationProject
  29 + type:
  30 + schema: cooperationProject
  31 + required: true
@@ -2,4 +2,4 @@ version: v1 @@ -2,4 +2,4 @@ version: v1
2 kind: Service 2 kind: Service
3 metadata: 3 metadata:
4 name: cooperationProject 4 name: cooperationProject
5 - description: 共创项目服务 5 + description: 共创项目管理
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: AuthCodeToAccessToken
  5 + type: query
  6 + description: 获取具体的进入系统的凭证
  7 + payload:
  8 + - name: authCode
  9 + description: 登录认证的凭证
  10 + type:
  11 + primitive: string
  12 + - name: companyId
  13 + description: 公司id
  14 + type:
  15 + primitive: string
  16 + - name: organizationId
  17 + description: 组织id
  18 + type:
  19 + primitive: string
  20 + result:
  21 + - name: accessToken
  22 + description: 登录系统的凭证
  23 + type:
  24 + primitive: string
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: changeIdentity
  5 + type: query
  6 + description: 切换公司组织
  7 + payload:
  8 + - name: accessToken
  9 + description: 登录凭证
  10 + type:
  11 + primitive: string
  12 + - name: companyId
  13 + description: 公司id
  14 + type:
  15 + primitive: int64
  16 + result:
  17 + - name: accessToken
  18 + description: 登录系统的凭证
  19 + type:
  20 + primitive: string
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: menuUpdate
  5 + type: query
  6 + description: 设置收藏菜单
  7 + payload:
  8 + - ref: companyId
  9 + required: true
  10 + - ref: menuId
  11 + required: true
  12 + result:
  13 + - name: menusId
  14 + type:
  15 + array: int64
  16 + required: true
@@ -5,10 +5,20 @@ metadata: @@ -5,10 +5,20 @@ metadata:
5 type: command 5 type: command
6 description: 编辑共创用户信息 6 description: 编辑共创用户信息
7 payload: 7 payload:
8 - - name: userinfo  
9 - description: 共创用户信息  
10 - type:  
11 - schema: cooperationUser 8 + - ref: usersId
  9 + required: true
  10 + - ref: usersCode
  11 + required: true
  12 + - ref: usersName
  13 + required: true
  14 + - ref: cooperationCompany
  15 + required: true
  16 + - ref: cooperationDeadline
  17 + required: true
  18 + - ref: enableStatus
  19 + required: true
  20 + - ref: email
  21 + required: true
12 result: 22 result:
13 - name: usersId 23 - name: usersId
14 type: 24 type: