作者 tangxuhui

更新

正在显示 76 个修改的文件 包含 711 行增加78 行删除
version: v1
kind: HttpApi
metadata:
service: appCooperationApplication
path: /app/cooperation-applications
endpoints:
- method: createCooperationApplication
route:
post: /
- method: updateCooperationApplication
route:
put: /{applicationId}
- method: getCooperationApplication
route:
get: /{applicationId}
- method: listCooperationApplication
route:
get: /search
- method: auditCooperationApplication
route:
put: /audit
... ...
version: v1
kind: HttpApi
metadata:
service: appCooperationProject
path: /app/cooperation-projects
endpoints:
- method: createCooperationProject
route:
post: /
- method: updateCooperationProject
route:
put: /{projectId}
- method: getCooperationProject
route:
get: /{projectId}
- method: listCooperationProject
route:
post: /search
- method: endCooperationProject
route:
put: /end
... ...
... ... @@ -16,3 +16,9 @@ metadata:
- method: setNewPassword
route:
post: /set-password
- method: editPersonalData
route:
put: /personal
- method: getPersonalData
route:
get: /personal
... ...
version: v1
kind: HttpApi
metadata:
service: dividendsEstimate
path: /web/dividends-estimate
endpoints:
- method: createDividendsEstimate
route:
post: /
- method: updateDividendsEstimate
route:
put: /{estimateId}
- method: cancelDividendsEstimate
route:
post: /cancel
- method: getDividendsEstimate
route:
get: /{estimateId}
- method: searchDividendsEstimate
route:
post: /search
- method: searchDividendsIncentives
route:
post: /dividends-incentives/search
- method: searchMoneyIncentives
route:
post: /money-incentives/search
- method: estimateMoneyIncentives
route:
post: /money-incentives/estimate
- method: estimateDividendsIncentives
route:
post: /dividends-incentives/estimate
... ...
version: v1
kind: HttpApi
metadata:
service: dividendsOrder
path: /web/dividends-order
endpoints:
- method: createDividendsOrder
route:
post: /
- method: updateDividendsOrder
route:
put: /{orderId}
- method: removeDividendsOrder
route:
delete: /{orderId}
- method: getDividendsOrder
route:
get: /{orderId}
- method: searchDividendsOrder
route:
post: /search
... ...
version: v1
kind: HttpApi
metadata:
service: dividendsReturnedOrder
path: /web/dividends-returned-order
endpoints:
- method: createDividendsReturnedOrder
route:
post: /
- method: updateDividendsReturnedOrder
route:
put: /{projectId}
- method: removeDividendsReturnedOrder
route:
delete: /{projectId}
- method: getDividendsReturnedOrder
route:
get: /{projectId}
- method: listDividendsReturnedOrder
route:
post: /search
... ...
... ... @@ -9,4 +9,7 @@ metadata:
post: /search
- method: menuUpdate
route:
put: /{menuId}
put: /
- method: menuFavorite
route:
put: /favorite
... ...
... ... @@ -4,4 +4,4 @@ metadata:
name: contractUndertaker
description: 共创合约承接人
type:
schema: users
schema: usersBase
... ...
... ... @@ -4,4 +4,4 @@ metadata:
name: cooperationApplicationApplicant
description: 共创申请人
type:
schema: users
schema: usersBase
... ...
... ... @@ -4,4 +4,4 @@ metadata:
name: cooperationApplicationVerifier
description: 共创申请审核人
type:
schema: users
schema: usersBase
... ...
... ... @@ -4,4 +4,4 @@ metadata:
name: cooperationContractSponsor
description: 共创合约发起人
type:
schema: users
schema: usersBase
... ...
... ... @@ -4,4 +4,4 @@ metadata:
name: cooperationProjectSponsor
description: 共创项目发起人
type:
schema: users
schema: usersBase
... ...
version: v1
kind: Attribute
metadata:
name: actuallyPaidAmount
description: 账期结算实付金额
type:
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: creditAccountId
description: 账期结算单ID
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: creditAccountOrderNum
description: 账期结算单号
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: paymentDocumentAttachment
description: 支付凭证附件
type:
schema: attachment
... ...
version: v1
kind: Attribute
metadata:
name: paymentStatus
description: 共创账期结算支付状态,1待支付,2已支付
type:
primitive: int32
... ...
version: v1
kind: Attribute
metadata:
name: paymentTime
description: 共创账期结算支付时间
type:
primitive: datetime
... ...
version: v1
kind: Attribute
metadata:
name: settlementAmount
description: 账期结算金额
type:
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: settlementTime
description: 共创账期结算时间
type:
primitive: datetime
... ...
version: v1
kind: Attribute
metadata:
name: dividendsAccountStatus
description: 分红结算状态,1待结算,2已结算
type:
primitive: int32
... ...
version: v1
kind: Attribute
metadata:
name: dividendsAmount
description: 分红金额
type:
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: dividendsEstimateId
description: 承接人分红预算记录ID
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: dividendsEstimateOrderNumber
description: 承接人分红预算单号
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: dividendsEstimateTime
description: 分红预算时间
type:
primitive: datetime
... ...
version: v1
kind: Attribute
metadata:
name: dividendsParticipateType
description: 参与分红类型,1承接人,2推荐人,3关联业务员
type:
primitive: int32
... ...
version: v1
kind: Attribute
metadata:
name: dividendsType
description: 分红类型,1订单分红,2退货冲销,3金额激励
type:
primitive: int32
... ...
version: v1
kind: Attribute
metadata:
name: dividendsUser
description: 分红用户
type:
schema: usersBase
... ...
version: v1
kind: Attribute
metadata:
name: orderOrReturnedOrderNum
description: 分红订单号或退货单号
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: dividendsIncentivesAmount
description: 业绩激励分红金额
type:
primitive: float64
... ...
swagger: "2.0"
info:
title: ""
description: 数据聚合、转发,权限校验
contact:
name: ""
email: ""
home: ""
version: 0.0.1
paths: {}
... ...
... ... @@ -33,7 +33,7 @@ metadata:
- name: referrerUser
description: 推荐人信息
type:
schema: users
schema: usersBase
- name: hasSalesman
description: 是否有关联业务员
type:
... ...
... ... @@ -26,7 +26,7 @@ metadata:
- name: undertaker
description: 承接人信息
type:
schema: users
schema: contractUndertaker
- ref: orgId
required: true
- ref: orgName
... ...
... ... @@ -2,33 +2,29 @@ version: v1
kind: Schema
metadata:
name: cooperationUser
description: web页面上共创用户数据展示
description: 共创用户信息
attributes:
- name: usersId
description: 用户的id
type:
primitive: int64
- name: usersCode
description: 用户编号
type:
primitive: string
- name: usersName
description: 用户名称
type:
primitive: string
- name: cooperationCompany
description: 共创公司
- ref: phone
required: true
- ref: status
required: true
- name: statusName
description: 状态描述
type:
primitive: string
- name: cooperationDeadline
description: 共创到期时间 (yyyy-MM-dd)
type:
primitive: datetime
- name: enableStatus
description: 启用状态(启用:1 禁用:2)
- ref: usersCode
required: true
- ref: usersId
required: true
- ref: usersName
required: true
- name: org
description: 用户的组织
type:
primitive: int
- name: email
description: 邮箱
type:
primitive: string
schema: orgsBase
- ref: cooperationCompany
required: true
- ref: cooperationDeadline
required: true
- ref: email
required: true
... ...
version: v1
kind: Schema
metadata:
name: creditAccount
description: 账期结算单实体
attributes:
- ref: creditAccountId
required: true
- ref: actuallyPaidAmount
required: true
- ref: creditAccountOrderNum
required: true
- ref: paymentStatus
description: 账期结算支付状态,1待支付,2已支付
required: true
- ref: paymentTime
required: true
- ref: settlementAmount
required: true
- ref: settlementTime
required: true
- ref: cooperationContractNumber
required: true
- name: participator
description: 参与人uid,包括承接人、推荐人、关联业务员
required: true
type:
array: int64
- ref: paymentDocumentAttachment
description: 支付凭证附件
required: true
- name: organization
description: 数据关联组织机构
type:
schema: orgsBase
- ref: companyId
required: true
- ref: operator
required: true
- ref: operateTime
required: true
- ref: createdAt
required: true
- ref: deletedAt
required: true
- ref: updatedAt
required: true
... ...
version: v1
kind: Schema
metadata:
name: department
description: 部门
attributes:
- ref: orgId
required: true
- ref: orgName
required: true
- ref: orgCode
required: true
- ref: parentId
required: true
... ...
version: v1
kind: Schema
metadata:
name: dividendsEstimate
description: 分红预算实体
attributes:
- ref: dividendsEstimateId
required: true
- ref: dividendsAccountStatus
description: 分红结算状态
required: true
- ref: dividendsAmount
required: true
- ref: dividendsEstimateOrderNumber
required: true
- ref: dividendsEstimateTime
required: true
- ref: dividendsParticipateType
required: true
- ref: dividendsType
required: true
- ref: orderOrReturnedOrderNum
required: true
- ref: cooperationProjectNumber
required: true
- ref: dividendsUser
required: true
- name: organization
description: 数据关联组织机构
type:
schema: orgsBase
- ref: companyId
required: true
- ref: operator
required: true
- ref: operateTime
required: true
- ref: createdAt
required: true
- ref: deletedAt
required: true
- ref: updatedAt
required: true
... ...
version: v1
kind: Schema
metadata:
name: dividendsIncentives
description: 业绩分红DTO
attributes:
- ref: cooperationContractNumber
required: true
- ref: orderOrReturnedOrderNum
required: true
- ref: originalOrderNum
required: true
- ref: customerName
required: true
- ref: region
required: true
- ref: dividendsIncentivesAmount
required: true
- ref: orderTime
description: 订单/退货单日期
required: true
... ...
... ... @@ -10,6 +10,8 @@ metadata:
required: true
- ref: menuName
required: true
- ref: menuAlias
required: true
- ref: code
required: true
- ref: accessCode
... ... @@ -26,10 +28,6 @@ metadata:
description: 菜单类别 (web:1、app:2)
type:
primitive: string
- name: parentPath
description: 父级节点路径("0,11,12,")
type:
primitive: string
- ref: enableStatus
description: 启用状态(启用:1 禁用:0)
required: true
... ...
version: v1
kind: Schema
metadata:
name: menuBase
description: 系统菜单基础信息
attributes:
- ref: menuId
required: true
- ref: parentId
required: true
- ref: menuName
required: true
- ref: menuType
required: true
- ref: sort
required: true
description: 菜单类别 (web:1、app:2)
type:
primitive: string
... ...
version: v1
kind: Schema
metadata:
name: moneyIncentives
description: 金额激励分红DTO
attributes:
- ref: cooperationContractNumber
required: true
- ref: cooperationContractName
required: true
- ref: cooperationMode
required: true
- ref: cooperationContractSponsor
required: true
- ref: createdAt
description: 共创合约建立时间
required: true
... ...
version: v1
kind: Schema
metadata:
name: orgsBase
description: 组织organization基础值对象
attributes:
- ref: orgId
required: true
- ref: orgCode
required: true
- ref: orgName
required: true
... ...
... ... @@ -14,11 +14,5 @@ metadata:
required: true
- ref: roleName
required: true
- ref: accessMenus
required: true
- ref: desc
required: true
- ref: createdAt
required: true
- ref: updatedAt
required: true
... ...
... ... @@ -18,12 +18,11 @@ metadata:
required: true
- ref: usersName
required: true
- ref: email
required: true
- ref: companyId
required: true
- ref: companyName
required: true
- ref: orgId
required: true
- ref: orgName
- name: org
description: 用户的组织
type:
schema: orgsBase
- name: department
description: 用户的部门
type:
schema: department
... ...
... ... @@ -29,7 +29,7 @@ metadata:
- name: user
description: 用户信息
type:
schema: users
schema: usersBase
- name: orgs
description: 可选组织列表
type:
... ...
... ... @@ -33,7 +33,7 @@ metadata:
- name: user
description: 用户信息
type:
schema: users
schema: usersBase
- name: orgs
description: 可选组织列表
type:
... ...
version: v1
kind: Method
metadata:
name: editPersonalData
name: getPersonalData
type: query
description: 获取个人资料
payload:
... ... @@ -10,6 +10,10 @@ metadata:
type:
primitive: int64
result:
- name: userId
description: 用户id
type:
primitive: int64
- name: avator
description: 头像地址
type:
... ...
version: v1
kind: Method
metadata:
name: cancelDividendsEstimate
type: command
description: 取消分红预算
result:
- name: dividendsEstimate
type:
schema: dividendsEstimate
required: true
... ...
version: v1
kind: Method
metadata:
name: createDividendsEstimate
type: command
description: 创建分红预算服务
result:
- name: dividendsEstimate
type:
schema: dividendsEstimate
required: true
... ...
version: v1
kind: Method
metadata:
name: estimateDividendsIncentives
type: command
description: 确定预算分红激励
payload:
- ref: orderOrReturnedOrderNum
description: 分红订单号/退货单号
required: true
- ref: cooperationContractNumber
description: 合约编号
required: true
result:
- name: dividendsEstimate
type:
schema: dividendsEstimate
required: true
... ...
version: v1
kind: Method
metadata:
name: estimateMoneyIncentives
type: command
description: 确定预算金额激励分红
payload:
- ref: cooperationContractNumber
description: 共创项目合约编号
required: true
- name: undertakerUid
description: 承接人UID
type:
primitive: string
result:
- name: dividendsEstimate
type:
schema: dividendsEstimate
required: true
... ...
version: v1
kind: Method
metadata:
name: getDividendsEstimate
type: query
description: 返回分红预算服务
payload:
- ref: dividendsEstimateId
required: true
result:
- name: dividendsEstimate
type:
schema: dividendsEstimate
required: true
... ...
version: v1
kind: Method
metadata:
name: listDividendsEstimate
type: query
description: 返回分红预算服务列表
payload:
- ref: offset
required: true
- ref: limit
required: true
result:
- ref: count
required: true
- name: dividendsEstimates
type:
array: dividendsEstimate
required: true
... ...
version: v1
kind: Method
metadata:
name: listDividendsIncentives
type: query
description: 返回业绩激励分红
payload:
- ref: offset
required: true
- ref: limit
required: true
result:
- name: dividendsIncentives
type:
array: dividendsIncentives
required: true
... ...
version: v1
kind: Method
metadata:
name: listMoneyIncentives
type: query
description: 返回金额激励分红
payload:
- ref: offset
required: true
- ref: limit
required: true
result:
- name: moneyIncentives
type:
schema: moneyIncentives
required: true
... ...
version: v1
kind: Method
metadata:
name: removeDividendsEstimate
type: command
description: 移除分红预算服务
payload:
- ref: dividendsEstimateId
required: true
result:
- name: dividendsEstimate
type:
schema: dividendsEstimate
required: true
... ...
version: v1
kind: Method
metadata:
name: searchDividendsEstimate
type: query
description: 查询分红预算单
payload:
- ref: dividendsEstimateOrderNumber
required: true
- ref: dividendsType
required: true
result:
- name: dividendsEstimate
type:
schema: dividendsEstimate
required: true
... ...
version: v1
kind: Method
metadata:
name: searchDividendsIncentives
type: query
description: 查询业绩分红
payload:
- ref: cooperationContractNumber
description: 合约编号
required: false
- ref: orderOrReturnedOrderNum
description: 分红订单号/退货单号
required: false
result:
- name: dividendsIncentives
type:
schema: dividendsIncentives
required: true
... ...
version: v1
kind: Method
metadata:
name: searchMoneyIncentives
type: query
description: 查询金额激励分红
payload:
- ref: cooperationContractName
description: 共创合约名称
required: false
result:
- name: moneyIncentives
type:
schema: moneyIncentives
required: true
... ...
version: v1
kind: Method
metadata:
name: updateDividendsEstimate
type: command
description: 更新分红预算服务
payload:
- ref: dividendsEstimateId
required: true
result:
- name: dividendsEstimate
type:
schema: dividendsEstimate
required: true
... ...
version: v1
kind: Service
metadata:
name: dividendsEstimate
description: 分红预算管理
... ...
... ... @@ -33,4 +33,4 @@ metadata:
- name: user
description: 用户信息
type:
schema: users
schema: usersBase
... ...
... ... @@ -21,4 +21,4 @@ metadata:
- name: orgs
description: 可选组织列表
type:
array: orgs
array: orgsBase
... ...
version: v1
kind: Method
metadata:
name: menuUpdate
type: query
name: menuFavorite
type: command
description: 设置收藏菜单
payload:
- ref: companyId
required: true
- ref: menuId
required: true
- name: menuId
description: 对应菜单的id
type:
array: int64
result:
- name: menusId
type:
... ...
... ... @@ -7,5 +7,5 @@ metadata:
result:
- name: menus
type:
array: menu
array: menuBase
required: true
... ...
... ... @@ -16,5 +16,5 @@ metadata:
result:
- name: menus
type:
schema: menu
schema: menuBase
required: true
... ...
... ... @@ -14,7 +14,7 @@ metadata:
required: true
- name: menus
type:
array: menu
array: menuBase
- name: users
type:
array: users
array: usersBase
... ...
... ... @@ -14,4 +14,4 @@ metadata:
required: true
- name: menus
type:
array: menu
array: menuBase
... ...
... ... @@ -11,4 +11,4 @@ metadata:
required: true
- name: orgs
type:
array: orgs
array: orgsBase
... ...
... ... @@ -15,8 +15,8 @@ metadata:
- name: roleUser
description: 关联的用户
type:
schema: users
schema: usersBase
- name: notInRoleUser
description: 未关联的用户列表
type:
array: users
array: usersBase
... ...
... ... @@ -10,13 +10,13 @@ metadata:
result:
- name: user
type:
schema: users
schema: usersBase
- name: userOrg
type:
array: orgs
array: orgsBase
- name: userRole
type:
array: roles
- name: userMenu
type:
array: menu
array: menuBase
... ...
... ... @@ -3,7 +3,7 @@ kind: Method
metadata:
name: companyUserEnable
type: command
description: 启用禁用用户信息
description: 启用禁用公司用户信息
payload:
- name: usersIds
type:
... ...
... ... @@ -14,5 +14,5 @@ metadata:
required: true
- name: userList
type:
array: users
array: usersBase
required: true
... ...
... ... @@ -3,7 +3,7 @@ kind: Method
metadata:
name: cooperationUserEnable
type: command
description: 启用禁用用户信息
description: 启用禁用共创用户信息
payload:
- name: usersIds
type:
... ...
... ... @@ -11,4 +11,4 @@ metadata:
- name: user
description: 共创用户信息
type:
schema: users
schema: cooperationUser
... ...
... ... @@ -14,5 +14,5 @@ metadata:
required: true
- name: userList
type:
array: users
array: cooperationUser
required: true
... ...