作者 tangxuhui

新增:共创申请管理

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