作者 tangxuhui
正在显示 221 个修改的文件 包含 1028 行增加1470 行删除
version: v1
kind: HttpApi
metadata:
service: cooperationGoodsStatistics
path: /cooperation-goods-statistics
endpoints:
- method: searchCooperationGoodsStatistics
route:
post: /statistics
... ...
version: v1
kind: HttpApi
metadata:
service: cooperationModeStatistics
path: /cooperation-mode-statistics
endpoints:
- method: searchCooperationModeStatistics
route:
post: /statistics
... ...
version: v1
kind: HttpApi
metadata:
service: cooperationPersonStatistics
path: /cooperation-person-statistics
endpoints:
- method: searchCooperationPersonStatistics
route:
post: /statistics
... ...
version: v1
kind: HttpApi
metadata:
service: currentMonthDividendsStatistics
path: /current-month-dividends-statistics
endpoints:
- method: searchCurrentMonthDividendsStatistics
route:
post: /statistics
... ...
version: v1
kind: HttpApi
metadata:
service: projectOverviewStatistics
path: /project-overview-statistics
endpoints:
- method: searchProjectOverviewStatistics
route:
post: /statistics
... ...
version: v1
kind: Attribute
metadata:
name: dividendsExpense
description: 分红支出
type:
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: dividendsExpenseByTypes
description: 具体分红类型支出
type:
array: dividendsExpenseByType
... ...
version: v1
kind: Attribute
metadata:
name: dividendsExpenseByType
description: 具体分红类型支出
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: dividendsTypeName
description: 分红类型名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: orderAmount
description: 具体成交类型的订单金额
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: orderTypeName
description: 成交订单类型名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: orderAmount
description: 成交订单金额
type:
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: orderAmountByTypes
description: 具体订单类型的金额明细
type:
array: orderAmountByType
... ...
version: v1
kind: Attribute
metadata:
name: organizationId
name: orgId
description: 组织机构ID
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: orgName
description: 组织名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: code
description: 返回码
type:
primitive: int32
... ...
version: v1
kind: Attribute
metadata:
name: msg
description: 返回信息
type:
primitive: int32
... ...
version: v1
kind: Attribute
metadata:
name: goodAmount
description: 共创产品总金额统计
type:
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: goodName
description: 共创产品名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: goodRatio
description: 共创产品在TOP5中的占比统计
type:
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: rank
description: 共创产品TOP5排名
type:
primitive: int32
... ...
version: v1
kind: Attribute
metadata:
name: cooperationPeople
description: 共创人数统计
type:
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: dividendsEstimate
description: 分红预算统计
type:
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: orderAmount
description: 订单金额统计
type:
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: cooperationTime
description: 共创时间
type:
primitive: datetime
... ...
version: v1
kind: Attribute
metadata:
name: cooperationTypes
description: 合伙类型,即共创模式
type:
array: cooperationMode
... ...
version: v1
kind: Attribute
metadata:
name: dividendsDetails
description: 分红明细
type:
schema: dividendsDetails
... ...
version: v1
kind: Attribute
metadata:
name: orderDetails
description: 订单明细
type:
schema: orderDetails
... ...
version: v1
kind: Attribute
metadata:
name: userName
description: 共创人员姓名
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: creditAccount
description: 本月账期结算统计
type:
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: dividendsEstimate
description: 本月分红预算统计
type:
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: orderAmount
description: 本月订单金额统计
type:
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: contractSum
description: 共创合约总数统计
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: cooperationUserCount
description: 共创用户数统计
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: projectSum
description: 共创项目总数统计
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: projectOverview
description: 项目概览
type:
schema: projectOverview
... ...
version: v1
kind: Attribute
metadata:
name: organization
name: org
description: 用户所属组织机构
type:
schema: organization
schema: org
... ...
version: v1
kind: Attribute
metadata:
name: organizations
name: orgs
description: 关联的组织机构
type:
array: organization
array: org
... ...
... ... @@ -16,10 +16,10 @@ metadata:
required: true
- ref: cooperationMode
required: true
- ref: organization
description: 数据关联组织机构
- ref: org
description: 数据所属组织机构
required: true
- ref: companyId
- ref: company
required: true
- ref: updatedAt
required: true
... ...
... ... @@ -24,10 +24,10 @@ metadata:
required: true
- ref: cooperationProjectNumber
required: true
- ref: organization
description: 数据关联组织机构
- ref: org
description: 数据所属组织机构
required: true
- ref: companyId
- ref: company
required: true
- ref: createdAt
required: true
... ...
... ... @@ -25,10 +25,10 @@ metadata:
- ref: status
description: 合约状态,1启用,2禁用
required: true
- ref: organization
description: 数据关联组织机构
- ref: org
description: 数据所属组织机构
required: true
- ref: companyId
- ref: company
required: true
- ref: operator
required: true
... ...
... ... @@ -14,7 +14,7 @@ metadata:
required: true
- ref: undertakers
required: true
- ref: companyId
- ref: company
required: true
- ref: operator
required: true
... ...
version: v1
kind: Schema
metadata:
name: cooperationGoodsStatistics
description: 共创产品统计
attributes:
- ref: goodAmount
required: true
- ref: goodName
required: true
- ref: goodRatio
required: true
- ref: rank
required: true
... ...
... ... @@ -15,10 +15,10 @@ metadata:
- ref: status
description: 共创模式状态,1启用,2禁用
required: true
- ref: organization
description: 数据关联组织机构
- ref: org
description: 数据所属组织机构
required: true
- ref: companyId
- ref: company
required: true
- ref: remarks
required: true
... ...
version: v1
kind: Schema
metadata:
name: cooperationModeStatistics
description: 共创模式统计
attributes:
- ref: cooperationPeople
required: true
- ref: dividendsEstimate
required: true
- ref: orderAmount
required: true
... ...
version: v1
kind: Schema
metadata:
name: cooperationPersonStatistics
description: 共创人员信息统计
attributes:
- ref: cooperationTime
required: true
- ref: cooperationTypes
required: true
- ref: dividendsDetails
required: true
- ref: orderDetails
required: true
- ref: userName
required: true
... ...
... ... @@ -21,10 +21,10 @@ metadata:
required: true
- ref: cooperationProjectUndertakerType
required: true
- ref: organization
description: 数据关联组织机构
- ref: org
description: 数据所属组织机构
required: true
- ref: companyId
- ref: company
required: true
- ref: operator
required: true
... ...
... ... @@ -29,10 +29,10 @@ metadata:
- ref: paymentDocumentAttachment
description: 支付凭证附件
required: true
- ref: organization
description: 数据关联组织机构
- ref: org
description: 数据所属组织机构
required: true
- ref: companyId
- ref: company
required: true
- ref: operator
required: true
... ...
version: v1
kind: Schema
metadata:
name: currentMonthDividendsStatistics
description: 本月分红统计
attributes:
- ref: creditAccount
required: true
- ref: dividendsEstimate
required: true
- ref: orderAmount
required: true
... ...
version: v1
kind: Schema
metadata:
name: dividendsDetails
description: 分红明细
attributes:
- ref: dividendsExpense
required: true
- ref: dividendsExpenseByTypes
required: true
... ...
... ... @@ -25,10 +25,10 @@ metadata:
required: true
- ref: dividendsUser
required: true
- ref: organization
description: 数据关联组织机构
- ref: org
description: 数据所属组织机构
required: true
- ref: companyId
- ref: company
required: true
- ref: operator
required: true
... ...
version: v1
kind: Schema
metadata:
name: dividendsExpenseByType
description: 具体分红类型支出
attributes:
- ref: dividendsExpenseByType
required: true
- ref: dividendsTypeName
required: true
... ...
... ... @@ -21,10 +21,10 @@ metadata:
required: true
- ref: dividendsIncentivesStageStart
required: true
- ref: organization
description: 数据关联组织机构
- ref: org
description: 数据所属组织机构
required: true
- ref: companyId
- ref: company
required: true
- ref: updatedAt
required: true
... ...
... ... @@ -25,10 +25,10 @@ metadata:
- ref: customerName
description: 客户姓名
required: true
- ref: organization
description: 数据关联组织机构
- ref: org
description: 数据所属组织机构
required: true
- ref: companyId
- ref: company
required: true
- ref: createdAt
required: true
... ...
... ... @@ -32,10 +32,10 @@ metadata:
required: true
- ref: dividendTime
required: true
- ref: organization
description: 数据关联组织机构
- ref: org
description: 数据所属组织机构
required: true
- ref: companyId
- ref: company
required: true
- ref: createdAt
required: true
... ...
... ... @@ -23,10 +23,10 @@ metadata:
required: true
- ref: salesmanPercentage
required: true
- ref: organization
description: 数据关联组织机构
- ref: org
description: 数据所属组织机构
required: true
- ref: companyId
- ref: company
required: true
- ref: updatedAt
required: true
... ...
version: v1
kind: Schema
metadata:
name: orderAmountByType
description: 具体成交类型的订单明细
attributes:
- ref: orderAmount
required: true
- ref: orderTypeName
required: true
... ...
version: v1
kind: Schema
metadata:
name: orderDetails
description: 订单明细
attributes:
- ref: orderAmount
required: true
- ref: orderAmountByTypes
required: true
... ...
... ... @@ -2,7 +2,7 @@ version: v1
kind: Schema
metadata:
name: orderGoods
description: 订单产品对象
description: 订单产品对象DTO
attributes:
- ref: orderGoodAmount
required: true
... ... @@ -21,9 +21,4 @@ metadata:
- ref: orderGoodExpense
description: 订单产品费用
required: true
- ref: createdAt
required: true
- ref: deletedAt
required: true
- ref: updatedAt
required: true
... ...
version: v1
kind: Schema
metadata:
name: organization
name: org
description: 组织机构值对象
attributes:
- ref: organizationId
- ref: orgId
required: true
- ref: companyId
- ref: orgName
required: true
- ref: company
required: true
... ...
version: v1
kind: Schema
metadata:
name: projectOverviewStatistics
description: 项目概览统计
attributes:
- ref: contractSum
required: true
- ref: projectSum
required: true
- ref: cooperationUserCount
required: true
... ...
... ... @@ -10,10 +10,10 @@ metadata:
required: true
- ref: role
required: true
- ref: organizations
- ref: orgs
description: 用户关联的组织机构
required: true
- ref: organization
- ref: org
description: 用户所属的组织机构
required: true
- ref: department
... ...
... ... @@ -8,10 +8,10 @@ metadata:
required: true
- ref: userBaseId
required: true
- ref: organization
- ref: org
description: 用户所属的组织机构
required: true
- ref: organizations
- ref: orgs
description: 用户关联的组织机构
required: true
- ref: department
... ...
... ... @@ -10,10 +10,10 @@ metadata:
required: true
- ref: role
required: true
- ref: organizations
- ref: orgs
description: 用户关联的组织机构
required: true
- ref: organization
- ref: org
description: 用户所属的组织机构
required: true
- ref: department
... ...
... ... @@ -8,10 +8,10 @@ metadata:
required: true
- ref: userBaseId
required: true
- ref: organization
- ref: org
description: 用户所属组织机构
required: true
- ref: organizations
- ref: orgs
description: 用户关联的组织机构
required: true
- ref: department
... ...
... ... @@ -8,10 +8,10 @@ metadata:
required: true
- ref: userBaseId
required: true
- ref: organization
- ref: org
description: 用户所属组织机构
required: true
- ref: organizations
- ref: orgs
description: 用户关联的组织机构
required: true
- ref: department
... ...
... ... @@ -13,4 +13,5 @@ metadata:
- ref: userPhone
required: true
- ref: userAccount
description: 用户账号,区别于手机号,冗余字段
required: true
... ...
... ... @@ -15,6 +15,10 @@ metadata:
description: 承接人uid
type:
primitive: string
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: contractUndertakerFeedback
type:
... ...
... ... @@ -8,9 +8,13 @@ metadata:
- ref: feedbackId
required: true
- name: underTakerUid
description: Attribute描述
description: 承接人uid
type:
primitive: string
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: contractUndertakerFeedback
type:
... ...
... ... @@ -6,13 +6,18 @@ metadata:
description: 返回共创合约反馈服务列表
payload:
- ref: offset
required: true
required: false
- ref: limit
required: true
required: false
- name: underTakerUid
description: Attribute描述
description: 承接人uid
type:
primitive: string
required: true
- ref: companyId
required: true
- ref: userId
required: true
result:
- ref: count
required: true
... ...
... ... @@ -8,9 +8,13 @@ metadata:
- ref: feedbackId
required: true
- name: underTakerUid
description: Attribute描述
description: 承接人uid
type:
primitive: string
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: contractUndertakerFeedback
type:
... ...
... ... @@ -15,6 +15,10 @@ metadata:
description: 承接人姓名
type:
primitive: string
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: contractUndertakerFeedbacks
type:
... ...
... ... @@ -15,6 +15,10 @@ metadata:
description: 承接人用户uid
type:
primitive: string
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: contractUndertakerFeedback
type:
... ...
... ... @@ -9,6 +9,10 @@ metadata:
required: true
- ref: cooperationApplicationVerifyDescription
required: true
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: cooperationApplication
type:
... ...
... ... @@ -17,6 +17,10 @@ metadata:
required: true
- ref: cooperationApplyTime
required: true
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: cooperationApplication
type:
... ...
... ... @@ -17,6 +17,10 @@ metadata:
- ref: cooperationProjectNumber
description: 关联的共创项目编号
required: true
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: cooperationApplication
type:
... ...
... ... @@ -7,6 +7,10 @@ metadata:
payload:
- ref: cooperationApplicationId
required: true
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: cooperationApplication
type:
... ...
... ... @@ -9,6 +9,10 @@ metadata:
required: true
- ref: limit
required: true
- ref: companyId
required: true
- ref: userId
required: true
result:
- ref: count
required: true
... ...
... ... @@ -9,6 +9,10 @@ metadata:
required: true
- ref: cooperationApplicationVerifyDescription
required: true
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: cooperationApplication
type:
... ...
... ... @@ -7,6 +7,10 @@ metadata:
payload:
- ref: cooperationApplicationId
required: true
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: cooperationApplication
type:
... ...
... ... @@ -11,10 +11,17 @@ metadata:
description: 申请人姓名
type:
primitive: string
- ref: cooperationApplicationStatus
description: 共创申请审核状态,1待审核,2已同意,3已拒绝
required: false
- ref: pageSize
required: false
- ref: pageNumber
required: false
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: cooperationApplications
type:
... ...
... ... @@ -17,6 +17,10 @@ metadata:
- ref: cooperationProjectNumber
description: 关联的共创项目编号
required: true
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: cooperationApplication
type:
... ...
... ... @@ -40,6 +40,10 @@ metadata:
description: 相关人列表
type:
array: relevant
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: cooperationContract
type:
... ...
... ... @@ -11,6 +11,10 @@ metadata:
description: 发起人uid
type:
primitive: string
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: cooperationContract
type:
... ...
... ... @@ -9,6 +9,10 @@ metadata:
required: true
- ref: limit
required: true
- ref: companyId
required: true
- ref: userId
required: true
result:
- ref: count
required: true
... ...
... ... @@ -7,6 +7,10 @@ metadata:
payload:
- ref: cooperationContractId
required: true
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: cooperationContract
type:
... ...
... ... @@ -15,6 +15,10 @@ metadata:
description: 发起人姓名
type:
primitive: string
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: cooperationContracts
type:
... ...
... ... @@ -12,6 +12,10 @@ metadata:
type:
primitive: string
required: false
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: cooperationContractByUndertaker
description: 根据承接人返回的共创项目合约
... ...
... ... @@ -23,6 +23,10 @@ metadata:
description: 共创合约发起人uid
type:
primitive: string
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: cooperationContract
type:
... ...
... ... @@ -15,6 +15,10 @@ metadata:
required: true
- ref: cooperationContractNumber
required: true
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: cooperationContractChangeLog
type:
... ...
... ... @@ -7,6 +7,10 @@ metadata:
payload:
- ref: cooperationContractChangeLogId
required: true
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: cooperationContractChangeLog
type:
... ...
... ... @@ -9,6 +9,10 @@ metadata:
required: true
- ref: limit
required: true
- ref: companyId
required: true
- ref: userId
required: true
result:
- ref: count
required: true
... ...
... ... @@ -7,6 +7,10 @@ metadata:
payload:
- ref: cooperationContractChangeLogId
required: true
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: cooperationContractChangeLog
type:
... ...
... ... @@ -13,6 +13,10 @@ metadata:
required: false
- ref: pageNumber
required: false
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: cooperationContractChangeLogs
type:
... ...
... ... @@ -15,6 +15,10 @@ metadata:
required: true
- ref: cooperationContractNumber
required: true
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: cooperationContractChangeLog
type:
... ...
version: v1
kind: Method
metadata:
name: searchCooperationGoodsStatistics
type: query
description: 返回共创产品统计数据
payload:
- name: rankingType
description: 排行榜类型,1月榜,2年榜 3总榜,默认展示年榜
type:
primitive: int32
required: false
- ref: companyId
required: true
- ref: userId
required: true
- ref: pageSize
required: false
- ref: pageNumber
required: false
result:
- name: cooperationGoodsStatistics
type:
schema: cooperationGoodsStatistics
required: true
... ...
version: v1
kind: Service
metadata:
name: cooperationGoodsStatistics
description: 共创产品数据统计
... ...
... ... @@ -11,6 +11,10 @@ metadata:
required: true
- ref: remarks
required: true
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: cooperationMode
type:
... ...
... ... @@ -7,6 +7,10 @@ metadata:
payload:
- ref: cooperationModeId
required: true
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: cooperationMode
type:
... ...
... ... @@ -9,6 +9,10 @@ metadata:
required: true
- ref: limit
required: true
- ref: companyId
required: true
- ref: userId
required: true
result:
- ref: count
required: true
... ...
... ... @@ -7,6 +7,10 @@ metadata:
payload:
- ref: cooperationModeId
required: true
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: cooperationMode
type:
... ...
... ... @@ -15,6 +15,10 @@ metadata:
description: 组织机构名称
type:
primitive: string
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: cooperationModes
type:
... ...
... ... @@ -11,6 +11,10 @@ metadata:
required: true
- ref: remarks
required: true
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: cooperationMode
type:
... ...
version: v1
kind: Method
metadata:
name: searchCooperationModeStatistics
type: query
description: 返回共创模式数据统计
payload:
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: cooperationModeStatistics
type:
schema: cooperationModeStatistics
required: true
... ...
version: v1
kind: Service
metadata:
name: cooperationModeStatistics
description: 共创模式统计服务
... ...
version: v1
kind: Method
metadata:
name: searchCooperationPersonStatistics
type: query
description: 返回共创人员信息统计
payload:
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: cooperationPersonStatistics
type:
schema: cooperationPersonStatistics
required: true
... ...
version: v1
kind: Service
metadata:
name: cooperationPersonStatistics
description: 共创人员信息统计
... ...
... ... @@ -22,6 +22,10 @@ metadata:
required: true
- ref: cooperationProjectDescription
required: false
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: cooperationProject
type:
... ...
... ... @@ -7,6 +7,10 @@ metadata:
payload:
- ref: cooperationProjectId
required: true
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: cooperationProject
type:
... ...
... ... @@ -9,6 +9,10 @@ metadata:
required: true
- ref: limit
required: true
- ref: companyId
required: true
- ref: userId
required: true
result:
- ref: count
required: true
... ...
... ... @@ -15,6 +15,10 @@ metadata:
required: true
- ref: cooperationProjectDescription
required: true
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: cooperationProject
type:
... ...
... ... @@ -7,6 +7,10 @@ metadata:
payload:
- ref: cooperationProjectId
required: true
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: cooperationProject
type:
... ...
... ... @@ -6,12 +6,19 @@ metadata:
description: 查询共创项目
payload:
- ref: pageNumber
required: true
required: false
- ref: pageSize
required: true
required: false
- ref: cooperationProjectName
required: true
required: false
- ref: departmentName
required: false
- ref: status
description: 共创项目状态,根据共创项目状态筛选项目数据
required: false
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: cooperationProjects
... ...
... ... @@ -22,6 +22,10 @@ metadata:
required: true
- ref: cooperationProjectDescription
required: false
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: cooperationProject
type:
... ...
... ... @@ -4,6 +4,11 @@ metadata:
name: createCreditAccount
type: command
description: 创建账期结算单服务
payload:
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: creditAccount
type:
... ...
... ... @@ -7,6 +7,10 @@ metadata:
payload:
- ref: creditAccountId
required: true
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: creditAccount
type:
... ...
... ... @@ -9,6 +9,10 @@ metadata:
required: true
- ref: limit
required: true
- ref: companyId
required: true
- ref: userId
required: true
result:
- ref: count
required: true
... ...
... ... @@ -9,6 +9,10 @@ metadata:
required: true
- ref: remarks
required: true
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: creditAccount
type:
... ...
... ... @@ -7,6 +7,10 @@ metadata:
payload:
- ref: creditAccountId
required: true
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: creditAccount
type:
... ...
... ... @@ -11,6 +11,10 @@ metadata:
description: 参与人姓名
type:
primitive: string
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: creditAccounts
type:
... ...
... ... @@ -7,6 +7,10 @@ metadata:
payload:
- ref: creditAccountId
required: true
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: creditAccount
type:
... ...
version: v1
kind: Method
metadata:
name: searchCurrentMonthDividendsStatistics
type: query
description: 返回共创企业本月分红统计
payload:
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: currentMonthDividendsStatistics
type:
schema: currentMonthDividendsStatistics
required: true
... ...
version: v1
kind: Service
metadata:
name: currentMonthDividendsStatistics
description: 共创企业本月分红统计
... ...
... ... @@ -4,6 +4,11 @@ metadata:
name: cancelDividendsEstimate
type: command
description: 取消分红预算
payload:
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: dividendsEstimate
type:
... ...
... ... @@ -4,6 +4,11 @@ metadata:
name: createDividendsEstimate
type: command
description: 创建分红预算服务
payload:
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: dividendsEstimate
type:
... ...
... ... @@ -11,6 +11,10 @@ metadata:
- ref: cooperationContractNumber
description: 合约编号
required: true
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: dividendsEstimate
type:
... ...
... ... @@ -16,6 +16,10 @@ metadata:
type:
primitive: string
required: true
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: dividendsEstimate
type:
... ...
... ... @@ -7,6 +7,10 @@ metadata:
payload:
- ref: dividendsEstimateId
required: true
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: dividendsEstimate
type:
... ...
... ... @@ -9,6 +9,10 @@ metadata:
required: true
- ref: limit
required: true
- ref: companyId
required: true
- ref: userId
required: true
result:
- ref: count
required: true
... ...
... ... @@ -9,6 +9,10 @@ metadata:
required: true
- ref: limit
required: true
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: dividendsIncentives
type:
... ...
... ... @@ -9,6 +9,10 @@ metadata:
required: true
- ref: limit
required: true
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: moneyIncentives
type:
... ...
... ... @@ -7,6 +7,10 @@ metadata:
payload:
- ref: dividendsEstimateId
required: true
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: dividendsEstimate
type:
... ...
... ... @@ -9,6 +9,10 @@ metadata:
required: true
- ref: dividendsType
required: true
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: dividendsEstimate
type:
... ...
... ... @@ -11,6 +11,10 @@ metadata:
- ref: orderOrReturnedOrderNum
description: 分红订单号/退货单号
required: false
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: dividendsIncentives
type:
... ...
... ... @@ -11,6 +11,10 @@ metadata:
- ref: departmentName
description: 发起部门名称
required: false
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: moneyIncentives
type:
... ...
... ... @@ -7,6 +7,10 @@ metadata:
payload:
- ref: dividendsEstimateId
required: true
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: dividendsEstimate
type:
... ...
... ... @@ -19,6 +19,10 @@ metadata:
required: true
- ref: salesmanPercentage
required: true
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: dividendsIncentivesRule
type:
... ...
... ... @@ -7,6 +7,10 @@ metadata:
payload:
- ref: dividendsIncentivesRuleId
required: true
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: dividendsIncentivesRule
type:
... ...
... ... @@ -9,6 +9,10 @@ metadata:
required: true
- ref: limit
required: true
- ref: companyId
required: true
- ref: userId
required: true
result:
- ref: count
required: true
... ...
... ... @@ -7,6 +7,10 @@ metadata:
payload:
- ref: dividendsIncentivesRuleId
required: true
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: dividendsIncentivesRule
type:
... ...
... ... @@ -19,6 +19,10 @@ metadata:
required: true
- ref: salesmanPercentage
required: true
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: dividendsIncentivesRule
type:
... ...
... ... @@ -29,6 +29,10 @@ metadata:
description: 订单产品列表
type:
array: orderGoods
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: dividendsOrder
type:
... ...
... ... @@ -7,6 +7,10 @@ metadata:
payload:
- ref: dividendsOrderId
required: true
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: dividendsOrder
type:
... ...
... ... @@ -9,6 +9,10 @@ metadata:
required: true
- ref: limit
required: true
- ref: companyId
required: true
- ref: userId
required: true
result:
- ref: count
required: true
... ...
... ... @@ -7,6 +7,10 @@ metadata:
payload:
- ref: dividendsOrderId
required: true
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: dividendsOrder
type:
... ...
... ... @@ -13,6 +13,10 @@ metadata:
required: false
- ref: pageNumber
required: false
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: dividendsOrders
type:
... ...
... ... @@ -25,6 +25,10 @@ metadata:
description: 操作人uid
type:
primitive: string
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: dividendsOrder
type:
... ...
... ... @@ -23,6 +23,10 @@ metadata:
description: 订单产品列表
type:
array: orderGoods
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: dividendsReturnedOrder
type:
... ...
... ... @@ -7,6 +7,10 @@ metadata:
payload:
- ref: dividendsReturnedOrderId
required: true
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: dividendsReturnedOrders
type:
... ...
... ... @@ -13,6 +13,10 @@ metadata:
description: 参数列表
type:
primitive: string
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: dividendsReturnedOrder
type:
... ...
... ... @@ -9,6 +9,10 @@ metadata:
required: true
- ref: limit
required: true
- ref: companyId
required: true
- ref: userId
required: true
result:
- ref: count
required: true
... ...
... ... @@ -4,6 +4,11 @@ metadata:
name: removeDividendsReturnedOrder
type: command
description: 移除分红退货单服务
payload:
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: dividendsReturnedOrder
type:
... ...
... ... @@ -15,6 +15,10 @@ metadata:
required: false
- ref: pageNumber
required: false
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: dividendsReturnedOrders
type:
... ...
... ... @@ -23,6 +23,10 @@ metadata:
description: 订单产品列表
type:
array: orderGoods
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: dividendsReturnedOrder
type:
... ...
... ... @@ -15,6 +15,10 @@ metadata:
required: true
- ref: cooperationContractNumber
required: true
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: moneyIncentivesRule
type:
... ...
... ... @@ -7,6 +7,10 @@ metadata:
payload:
- ref: moneyIncentivesRuleId
required: true
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: moneyIncentivesRule
type:
... ...
... ... @@ -9,6 +9,10 @@ metadata:
required: true
- ref: limit
required: true
- ref: companyId
required: true
- ref: userId
required: true
result:
- ref: count
required: true
... ...
... ... @@ -7,6 +7,10 @@ metadata:
payload:
- ref: moneyIncentivesRuleId
required: true
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: moneyIncentivesRule
type:
... ...
... ... @@ -15,6 +15,10 @@ metadata:
required: true
- ref: cooperationContractNumber
required: true
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: moneyIncentivesRule
type:
... ...
version: v1
kind: Method
metadata:
name: searchProjectOverviewStatistics
type: query
description: 返回共创项目概览统计
payload:
- ref: companyId
required: true
- ref: userId
required: true
result:
- name: projectOverviewStatistics
type:
schema: projectOverviewStatistics
required: true
... ...
version: v1
kind: Service
metadata:
name: projectOverviewStatistics
description: 共创项目概览统计
... ...
... ... @@ -22,6 +22,6 @@ metadata:
- method: destoryAccount
route:
post: /destory-account
- method: usersInfo
- method: userInfo
route:
post: /usersInfo
post: /userInfo
... ...
... ... @@ -21,7 +21,7 @@ metadata:
post: /search
- method: getRoleRelatedUsers
route:
get: /{roleId}/related-users
get: /{roleId}/related-user
params:
- name: roleId
- name: orgId
... ...
version: v1
kind: HttpApi
metadata:
service: users
path: /users
service: user
path: /user
endpoints:
- method: updateFavoriteMenus
route:
put: /{usersId}/favorite-menus
put: /{userId}/favorite-menus
- method: getFavoriteMenus
route:
get: /{usersId}/favorite-menus
get: /{userId}/favorite-menus
- method: deleteFavoriteMenus
route:
delete: /{usersId}/favorite-menus/{code}
delete: /{userId}/favorite-menus/{code}
... ...
version: v1
kind: HttpApi
metadata:
service: users
path: /users
service: user
path: /user
endpoints:
- method: createUsers
route:
post: /
- method: updateUsers
route:
put: /{usersId}
put: /{userId}
- method: getUsers
route:
get: /{usersId}
get: /{userId}
- method: removeUsers
route:
delete: /{usersId}
delete: /{userId}
- method: listUsers
route:
post: /search
- method: getUsersAccessMenus
route:
get: /{usersId}/access-menus
get: /{userId}/access-menus
params:
- name: menuCategory
- method: getUsersProfile
route:
get: /{usersId}/profile
get: /{userId}/profile
- method: batchAdd
route:
post: /batch-add
... ... @@ -38,4 +38,4 @@ metadata:
post: /batch-reset-password
- method: updateUsersBase
route:
put: /{usersId}/base-info
put: /{userId}/base-info
... ...
version: v1
kind: HttpApi
metadata:
service: usersBase
path: /users-base
service: userBase
path: /user-base
endpoints:
- method: createUsersBase
route:
post: /
- method: updateUsersBase
route:
put: /{usersBaseId}
put: /{userBaseId}
- method: getUsersBase
route:
get: /{usersBaseId}
get: /{userBaseId}
- method: removeUsersBase
route:
delete: /{usersBaseId}
delete: /{userBaseId}
- method: listUsersBase
route:
post: /search
... ...
... ... @@ -2,6 +2,6 @@ version: v1
kind: Attribute
metadata:
name: accessCode
description: 权限编码 users:edit
description: 权限编码 user:edit
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: account
description: 账号
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: usersBaseId
name: userBaseId
description: 用户基础数据id
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: usersCode
name: userCode
description: 用户编号 企业内标识
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: usersCompanyId
name: userCompanyId
description: 用户公司编号
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: usersId
name: userId
description: 用户Id 用户唯一标识
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: usersName
name: userName
description: 用户姓名
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: usersOrg
name: userOrg
description: 用户关联的组织
type:
array: int64
... ...
version: v1
kind: Attribute
metadata:
name: usersRole
name: userRole
description: 用户关联的角色
type:
array: int64
... ...
version: v1
kind: Attribute
metadata:
name: usersType
name: userType
description: 用户类型 1:企业内部用户(内部添加) 2:共创用户 1024:企业注册用户(注册添加)
type:
primitive: int
... ...
swagger: "2.0"
info:
title: ""
description: 天联企业管理系统
contact:
name: ""
email: ""
home: ""
version: 0.0.1
paths: {}
definitions:
AuthCompanySignUpRequestBody:
title: AuthCompanySignUpRequestBody
type: object
properties:
companyName:
type: string
description: 企业名称
required:
- companyName
contacts:
type: string
description: 联系人
required:
- contacts
industryCategory:
type: string
description: 所属行业
required:
- industryCategory
password:
type: string
description: 密码
required:
- password
phone:
type: string
description: 手机号码
required:
- phone
scale:
type: string
description: 规模
required:
- scale
AuthCompanySignUpResponseBody:
title: 'Mediatype identifier: AuthCompanySignUpResponseBody'
type: object
properties:
code:
type: integer
required:
- code
msg:
type: string
required:
- msg
AuthDestoryAccountRequestBody:
title: AuthDestoryAccountRequestBody
type: object
properties:
usersId:
type: integer
description: 用户编号
required:
- usersId
AuthDestoryAccountResponseBody:
title: 'Mediatype identifier: AuthDestoryAccountResponseBody'
type: object
properties:
code:
type: integer
required:
- code
msg:
type: string
required:
- msg
AuthPhoneAuthCheckRequestBody:
title: AuthPhoneAuthCheckRequestBody
type: object
properties:
password:
type: string
description: 密码
required:
- password
phone:
type: string
description: 手机号码
required:
- phone
AuthPhoneAuthCheckResponseBody:
title: 'Mediatype identifier: AuthPhoneAuthCheckResponseBody'
type: object
properties:
code:
type: integer
required:
- code
msg:
type: string
required:
- msg
AuthPhoneAuthResetPasswordRequestBody:
title: AuthPhoneAuthResetPasswordRequestBody
type: object
properties:
password:
type: string
description: 密码
required:
- password
phone:
type: string
description: 手机号码
required:
- phone
AuthPhoneAuthResetPasswordResponseBody:
title: 'Mediatype identifier: AuthPhoneAuthResetPasswordResponseBody'
type: object
properties:
msg:
type: string
description: 消息
MenuCreateMenuRequestBody:
title: MenuCreateMenuRequestBody
type: object
properties:
accessCode:
type: string
description: 权限编码 users:edit
required:
- accessCode
code:
type: string
description: 菜单编码 SYSTEM_USER_EDIT / 100101 (字符编码)
required:
- code
enableStatus:
type: integer
description: 启用状态(启用:1 禁用:0)
required:
- enableStatus
icon:
type: string
description: 菜单图标
isPublish:
type: integer
description: 菜单是否公开状态,[0:隐藏],[1:显示],默认显示
required:
- isPublish
menuName:
type: string
description: 菜单名称
required:
- menuName
menuType:
type: string
description: 菜单类型 (目录catalog、菜单menu、按钮button)
required:
- menuType
parentId:
type: integer
description: 父级id
format: int64
remark:
type: string
description: 菜单说明
sort:
type: integer
description: 排序
required:
- sort
MenuCreateMenuResponseBody:
title: 'Mediatype identifier: MenuCreateMenuResponseBody'
type: object
properties:
menu:
$ref: '#/definitions/menuResponseBody'
MenuGetMenuResponseBody:
title: 'Mediatype identifier: MenuGetMenuResponseBody'
type: object
properties:
menu:
$ref: '#/definitions/menuResponseBody'
MenuListMenuResponseBody:
title: 'Mediatype identifier: MenuListMenuResponseBody'
type: object
properties:
count:
type: integer
description: 匹配数目
required:
- count
menus:
type: array
items:
$ref: '#/definitions/menuResponseBody'
required:
- menus
MenuRemoveMenuResponseBody:
title: 'Mediatype identifier: MenuRemoveMenuResponseBody'
type: object
properties:
menu:
$ref: '#/definitions/menuResponseBody'
MenuUpdateMenuRequestBody:
title: MenuUpdateMenuRequestBody
type: object
properties:
accessCode:
type: string
description: 权限编码 users:edit
code:
type: string
description: 菜单编码 SYSTEM_USER_EDIT / 100101 (字符编码)
required:
- code
enableStatus:
type: integer
description: 启用状态(启用:1 禁用:0)
required:
- enableStatus
icon:
type: string
description: 菜单图标
isPublish:
type: integer
description: 菜单是否公开状态,[0:隐藏],[1:显示],默认显示
format: int64
menuName:
type: string
description: 菜单名称
required:
- menuName
menuType:
type: string
description: 菜单类型 (目录catalog、菜单menu、按钮button)
required:
- menuType
remark:
type: string
description: 菜单说明
sort:
type: integer
description: 排序
required:
- sort
MenuUpdateMenuResponseBody:
title: 'Mediatype identifier: MenuUpdateMenuResponseBody'
type: object
properties:
menu:
$ref: '#/definitions/menuResponseBody'
OrgCreateOrgRequestBody:
title: OrgCreateOrgRequestBody
type: object
properties:
companyId:
type: integer
description: 企业id
required:
- companyId
isOrg:
type: string
required:
- isOrg
orgCode:
type: string
description: 组织编码
required:
- orgCode
orgName:
type: string
description: 组织名称
required:
- orgName
parentId:
type: integer
description: 父级ID
required:
- parentId
OrgCreateOrgResponseBody:
title: 'Mediatype identifier: OrgCreateOrgResponseBody'
type: object
properties:
org:
$ref: '#/definitions/orgResponseBody'
OrgGetOrgResponseBody:
title: 'Mediatype identifier: OrgGetOrgResponseBody'
type: object
properties:
org:
$ref: '#/definitions/orgResponseBody'
OrgGetOrgSubDepartmentResponseBody:
title: 'Mediatype identifier: OrgGetOrgSubDepartmentResponseBody'
type: object
properties:
org:
type: array
items:
$ref: '#/definitions/orgResponseBody'
required:
- org
OrgListOrgResponseBody:
title: 'Mediatype identifier: OrgListOrgResponseBody'
type: object
properties:
count:
type: integer
description: 匹配数目
required:
- count
orgs:
type: array
items:
$ref: '#/definitions/orgResponseBody'
required:
- orgs
OrgRemoveOrgResponseBody:
title: 'Mediatype identifier: OrgRemoveOrgResponseBody'
type: object
properties:
org:
$ref: '#/definitions/orgResponseBody'
OrgUpdateOrgRequestBody:
title: OrgUpdateOrgRequestBody
type: object
properties:
isOrg:
type: string
required:
- isOrg
orgCode:
type: string
description: 组织编码
required:
- orgCode
orgName:
type: string
description: 组织名称
required:
- orgName
parentId:
type: integer
description: 父级ID
required:
- parentId
OrgUpdateOrgResponseBody:
title: 'Mediatype identifier: OrgUpdateOrgResponseBody'
type: object
properties:
org:
$ref: '#/definitions/orgResponseBody'
RoleAssginRoleToUsersRequestBody:
title: RoleAssginRoleToUsersRequestBody
type: object
properties:
roleId:
type: integer
description: 角色ID
required:
- roleId
usersIds:
type: array
items:
type: integer
format: int64
description: 用户列表
RoleAssginRoleToUsersResponseBody:
title: 'Mediatype identifier: RoleAssginRoleToUsersResponseBody'
type: object
properties:
code:
type: integer
required:
- code
msg:
type: string
required:
- msg
RoleCreateRoleRequestBody:
title: RoleCreateRoleRequestBody
type: object
properties:
desc:
type: integer
description: 描述
format: int64
roleName:
type: string
description: 角色名称
required:
- roleName
RoleCreateRoleResponseBody:
title: 'Mediatype identifier: RoleCreateRoleResponseBody'
type: object
properties:
role:
$ref: '#/definitions/roleResponseBody'
RoleGetRoleAccessMenusResponseBody:
title: 'Mediatype identifier: RoleGetRoleAccessMenusResponseBody'
type: object
properties:
accessMenus:
type: array
items:
type: integer
format: int64
required:
- accessMenus
RoleGetRoleRelatedUsersResponseBody:
title: 'Mediatype identifier: RoleGetRoleRelatedUsersResponseBody'
type: object
properties:
role:
$ref: '#/definitions/roleResponseBody'
RoleGetRoleResponseBody:
title: 'Mediatype identifier: RoleGetRoleResponseBody'
type: object
properties:
role:
$ref: '#/definitions/roleResponseBody'
RoleListRoleResponseBody:
title: 'Mediatype identifier: RoleListRoleResponseBody'
type: object
properties:
count:
type: integer
description: 匹配数目
required:
- count
roles:
type: array
items:
$ref: '#/definitions/roleResponseBody'
required:
- roles
RoleRemoveRoleResponseBody:
title: 'Mediatype identifier: RoleRemoveRoleResponseBody'
type: object
properties:
role:
$ref: '#/definitions/roleResponseBody'
RoleUnAssginRoleToUsersRequestBody:
title: RoleUnAssginRoleToUsersRequestBody
type: object
properties:
roleId:
type: integer
description: 角色ID
required:
- roleId
usersIds:
type: array
items:
type: integer
format: int64
description: 用户列表
RoleUnAssginRoleToUsersResponseBody:
title: 'Mediatype identifier: RoleUnAssginRoleToUsersResponseBody'
type: object
properties:
code:
type: integer
required:
- code
msg:
type: string
required:
- msg
RoleUpdateRoleAccessMenusRequestBody:
title: RoleUpdateRoleAccessMenusRequestBody
type: object
properties:
accessMenus:
type: array
items:
type: integer
format: int64
description: 菜单编号列表
RoleUpdateRoleAccessMenusResponseBody:
title: 'Mediatype identifier: RoleUpdateRoleAccessMenusResponseBody'
type: object
properties:
role:
$ref: '#/definitions/roleResponseBody'
RoleUpdateRoleRequestBody:
title: RoleUpdateRoleRequestBody
type: object
properties:
desc:
type: integer
description: 描述
format: int64
roleName:
type: string
description: 角色名称
required:
- roleName
RoleUpdateRoleResponseBody:
title: 'Mediatype identifier: RoleUpdateRoleResponseBody'
type: object
properties:
role:
$ref: '#/definitions/roleResponseBody'
UsersBatchAddRequestBody:
title: UsersBatchAddRequestBody
type: object
properties:
users:
type: array
items:
$ref: '#/definitions/usersRequestBody'
description: 用户列表
usersType:
type: integer
description: 用户类型 1:企业内部用户(内部添加) 2:共创用户 1024:企业注册用户(注册添加)
required:
- usersType
UsersBatchAddResponseBody:
title: 'Mediatype identifier: UsersBatchAddResponseBody'
type: object
properties:
code:
type: integer
required:
- code
msg:
type: string
required:
- msg
UsersBatchEnableRequestBody:
title: UsersBatchEnableRequestBody
type: object
properties:
enableStatus:
type: integer
description: 启用状态(启用:1 禁用:2 注销:3)
required:
- enableStatus
usersIds:
type: array
items:
type: integer
format: int64
required:
- usersIds
UsersBatchEnableResponseBody:
title: 'Mediatype identifier: UsersBatchEnableResponseBody'
type: object
properties:
code:
type: integer
required:
- code
msg:
type: string
required:
- msg
UsersBatchResetPasswordRequestBody:
title: UsersBatchResetPasswordRequestBody
type: object
properties:
password:
type: string
description: 密码
required:
- password
usersIds:
type: array
items:
type: integer
format: int64
required:
- usersIds
UsersBatchResetPasswordResponseBody:
title: 'Mediatype identifier: UsersBatchResetPasswordResponseBody'
type: object
properties:
code:
type: integer
required:
- code
msg:
type: string
required:
- msg
UsersCreateUsersRequestBody:
title: UsersCreateUsersRequestBody
type: object
properties:
companyId:
type: integer
description: 企业id
required:
- companyId
cooperationInfo:
$ref: '#/definitions/cooperationInfoRequestBody'
departmentId:
type: integer
description: 所属部门
format: int64
enableStatus:
type: integer
description: 启用状态(启用:1 禁用:2)
format: int64
organizationId:
type: integer
description: 组织机构
format: int64
usersCode:
type: string
description: 用户编号
required:
- usersCode
usersOrg:
type: array
items:
$ref: '#/definitions/orgRequestBody'
description: 用户关联的组织
usersRole:
type: array
items:
$ref: '#/definitions/roleRequestBody'
description: 用户关联的角色
usersType:
type: integer
description: 用户类型 1:企业内部用户(内部添加) 2:共创用户 1024:企业注册用户(注册添加)
required:
- usersType
UsersCreateUsersResponseBody:
title: 'Mediatype identifier: UsersCreateUsersResponseBody'
type: object
properties:
users:
$ref: '#/definitions/usersResponseBody'
UsersFavoriteMenusDeleteFavoriteMenusResponseBody:
title: 'Mediatype identifier: UsersFavoriteMenusDeleteFavoriteMenusResponseBody'
type: object
properties:
code:
type: integer
required:
- code
msg:
type: string
required:
- msg
UsersFavoriteMenusGetFavoriteMenusResponseBody:
title: 'Mediatype identifier: UsersFavoriteMenusGetFavoriteMenusResponseBody'
type: object
properties:
users:
$ref: '#/definitions/usersResponseBody'
UsersFavoriteMenusUpdateFavoriteMenusRequestBody:
title: UsersFavoriteMenusUpdateFavoriteMenusRequestBody
type: object
properties:
favoriteMenus:
type: array
items:
type: string
description: 菜单编码列表
UsersFavoriteMenusUpdateFavoriteMenusResponseBody:
title: 'Mediatype identifier: UsersFavoriteMenusUpdateFavoriteMenusResponseBody'
type: object
properties:
code:
type: integer
required:
- code
msg:
type: string
required:
- msg
UsersGetUsersAccessMenusResponseBody:
title: 'Mediatype identifier: UsersGetUsersAccessMenusResponseBody'
type: object
properties:
menus:
type: array
items:
$ref: '#/definitions/menuResponseBody'
required:
- menus
UsersGetUsersBaseInfoResponseBody:
title: 'Mediatype identifier: UsersGetUsersBaseInfoResponseBody'
type: object
properties:
users:
$ref: '#/definitions/usersResponseBody'
UsersGetUsersResponseBody:
title: 'Mediatype identifier: UsersGetUsersResponseBody'
type: object
properties:
users:
$ref: '#/definitions/usersResponseBody'
UsersListUsersResponseBody:
title: 'Mediatype identifier: UsersListUsersResponseBody'
type: object
properties:
count:
type: integer
description: 匹配数目
required:
- count
users:
type: array
items:
$ref: '#/definitions/usersResponseBody'
required:
- users
UsersRemoveUsersResponseBody:
title: 'Mediatype identifier: UsersRemoveUsersResponseBody'
type: object
properties:
users:
$ref: '#/definitions/usersResponseBody'
UsersUpdateUsersPhoneAuthRequestBody:
title: UsersUpdateUsersPhoneAuthRequestBody
type: object
properties:
password:
type: string
description: 密码
phone:
type: string
description: 手机号码
UsersUpdateUsersPhoneAuthResponseBody:
title: 'Mediatype identifier: UsersUpdateUsersPhoneAuthResponseBody'
type: object
properties:
code:
type: integer
required:
- code
msg:
type: string
required:
- msg
UsersUpdateUsersRequestBody:
title: UsersUpdateUsersRequestBody
type: object
properties:
cooperationInfo:
$ref: '#/definitions/cooperationInfoRequestBody'
departmentId:
type: integer
description: 所属部门
format: int64
enableStatus:
type: integer
description: 启用状态(启用:1 禁用:2)
format: int64
organizationId:
type: integer
description: 组织机构
format: int64
usersCode:
type: string
description: 用户编号
required:
- usersCode
usersOrg:
type: array
items:
$ref: '#/definitions/orgRequestBody'
description: 用户关联的组织
usersRole:
type: array
items:
$ref: '#/definitions/roleRequestBody'
description: 用户关联的角色
UsersUpdateUsersResponseBody:
title: 'Mediatype identifier: UsersUpdateUsersResponseBody'
type: object
properties:
users:
$ref: '#/definitions/usersResponseBody'
cooperationInfoRequestBody:
title: cooperationInfoRequestBody
type: object
properties:
cooperationCompany:
type: string
description: 共创公司
cooperationDeadline:
type: string
description: 共创到期时间 (yyyy-MM-dd)
format: datetime
description: 共创信息
cooperationInfoResponseBody:
title: cooperationInfoResponseBody
type: object
properties:
cooperationCompany:
type: string
description: 共创公司
cooperationDeadline:
type: string
description: 共创到期时间 (yyyy-MM-dd)
format: datetime
description: 共创信息
extRequestBody:
title: extRequestBody
type: object
properties:
depName:
type: string
description: 部门名称
required:
- depName
orgName:
type: string
description: 组织名称
required:
- orgName
parentDepName:
type: string
description: 父级部门名称
required:
- parentDepName
phone:
type: string
description: 手机号码
required:
- phone
usersName:
type: string
description: 用户姓名
required:
- usersName
description: 冗余附加数据
extResponseBody:
title: extResponseBody
type: object
properties:
depName:
type: string
description: 部门名称
required:
- depName
orgName:
type: string
description: 组织名称
required:
- orgName
parentDepName:
type: string
description: 父级部门名称
required:
- parentDepName
phone:
type: string
description: 手机号码
required:
- phone
usersName:
type: string
description: 用户姓名
required:
- usersName
description: 冗余附加数据
menuResponseBody:
title: menuResponseBody
type: object
properties:
accessCode:
type: string
description: 权限编码 users:edit
required:
- accessCode
category:
type: string
description: 菜单类别 (web:1、app:2)
code:
type: string
description: 菜单编码 SYSTEM_USER_EDIT
required:
- code
enableStatus:
type: integer
description: 启用状态(启用:1 禁用:0)
required:
- enableStatus
icon:
type: string
description: 菜单图标
required:
- icon
isPublish:
type: integer
description: 菜单是否公开状态(上架、下架),[0:隐藏],[1:显示],默认显示
required:
- isPublish
menuId:
type: integer
description: 菜单编号
required:
- menuId
menuName:
type: string
description: 菜单名称
required:
- menuName
menuType:
type: string
description: 菜单类型 (目录catalog、菜单menu、按钮button)
required:
- menuType
parentId:
type: integer
description: 父级ID
required:
- parentId
parentPath:
type: string
description: 父级节点路径("0,11,12,")
remark:
type: string
description: 备注
required:
- remark
sort:
type: integer
description: 排序
required:
- sort
description: 系统菜单
orgRequestBody:
title: orgRequestBody
type: object
properties:
companyId:
type: integer
description: 企业id
required:
- companyId
createdAt:
type: string
description: 创建时间
required:
- createdAt
deletedAt:
type: string
description: 删除时间
required:
- deletedAt
ext:
$ref: '#/definitions/extRequestBody'
isOrg:
type: string
required:
- isOrg
orgCode:
type: string
description: 组织编码
required:
- orgCode
orgId:
type: integer
description: 组织ID
required:
- orgId
orgName:
type: string
description: 组织名称
required:
- orgName
parentId:
type: integer
description: 父级ID
required:
- parentId
parentPath:
type: string
description: 父级节点路径("0,11,12,")
updatedAt:
type: string
description: 更新时间
required:
- updatedAt
description: 组织 organization
orgResponseBody:
title: orgResponseBody
type: object
properties:
companyId:
type: integer
description: 企业id
required:
- companyId
createdAt:
type: string
description: 创建时间
required:
- createdAt
deletedAt:
type: string
description: 删除时间
required:
- deletedAt
ext:
$ref: '#/definitions/extResponseBody'
isOrg:
type: string
required:
- isOrg
orgCode:
type: string
description: 组织编码
required:
- orgCode
orgId:
type: integer
description: 组织ID
required:
- orgId
orgName:
type: string
description: 组织名称
required:
- orgName
parentId:
type: integer
description: 父级ID
required:
- parentId
parentPath:
type: string
description: 父级节点路径("0,11,12,")
updatedAt:
type: string
description: 更新时间
required:
- updatedAt
description: 组织 organization
roleRequestBody:
title: roleRequestBody
type: object
properties:
accessMenus:
type: array
items:
type: integer
format: int64
description: 有权限的菜单
required:
- accessMenus
companyId:
type: integer
description: 企业id
required:
- companyId
createdAt:
type: string
description: 创建时间
required:
- createdAt
desc:
type: integer
description: 描述
required:
- desc
ext:
$ref: '#/definitions/extRequestBody'
orgId:
type: integer
description: 组织ID
required:
- orgId
roleId:
type: integer
description: 角色ID
required:
- roleId
roleName:
type: string
description: 角色名称
required:
- roleName
updatedAt:
type: string
description: 更新时间
required:
- updatedAt
description: 角色 (base)
roleResponseBody:
title: roleResponseBody
type: object
properties:
accessMenus:
type: array
items:
type: integer
format: int64
description: 有权限的菜单
required:
- accessMenus
companyId:
type: integer
description: 企业id
required:
- companyId
createdAt:
type: string
description: 创建时间
required:
- createdAt
desc:
type: integer
description: 描述
required:
- desc
ext:
$ref: '#/definitions/extResponseBody'
orgId:
type: integer
description: 组织ID
required:
- orgId
roleId:
type: integer
description: 角色ID
required:
- roleId
roleName:
type: string
description: 角色名称
required:
- roleName
updatedAt:
type: string
description: 更新时间
required:
- updatedAt
description: 角色 (base)
usersRequestBody:
title: usersRequestBody
type: object
properties:
companyId:
type: integer
description: 企业id
required:
- companyId
cooperationInfo:
$ref: '#/definitions/cooperationInfoRequestBody'
createdAt:
type: string
description: 创建时间
required:
- createdAt
departmentId:
type: integer
description: 所属部门
format: int64
enableStatus:
type: integer
description: 启用状态(启用:1 禁用:2)
format: int64
ext:
$ref: '#/definitions/extRequestBody'
favoriteMenus:
type: array
items:
type: string
description: 收藏的菜单(工作台)(菜单编码列表)
organizationId:
type: integer
description: 组织机构
format: int64
updatedAt:
type: string
description: 更新时间
required:
- updatedAt
usersBaseId:
type: integer
description: 用户基础数据id
required:
- usersBaseId
usersCode:
type: string
description: 用户编号
required:
- usersCode
usersId:
type: integer
description: 用户编号
required:
- usersId
usersOrg:
type: array
items:
$ref: '#/definitions/orgRequestBody'
description: 用户关联的组织
usersRole:
type: array
items:
$ref: '#/definitions/roleRequestBody'
description: 用户关联的角色
usersType:
type: integer
description: 用户类型 1:企业内部用户(内部添加) 2:共创用户 1024:企业注册用户(注册添加)
required:
- usersType
description: 用户
usersResponseBody:
title: usersResponseBody
type: object
properties:
companyId:
type: integer
description: 企业id
required:
- companyId
cooperationInfo:
$ref: '#/definitions/cooperationInfoResponseBody'
createdAt:
type: string
description: 创建时间
required:
- createdAt
departmentId:
type: integer
description: 所属部门
format: int64
enableStatus:
type: integer
description: 启用状态(启用:1 禁用:2)
format: int64
ext:
$ref: '#/definitions/extResponseBody'
favoriteMenus:
type: array
items:
type: string
description: 收藏的菜单(工作台)(菜单编码列表)
organizationId:
type: integer
description: 组织机构
format: int64
updatedAt:
type: string
description: 更新时间
required:
- updatedAt
usersBaseId:
type: integer
description: 用户基础数据id
required:
- usersBaseId
usersCode:
type: string
description: 用户编号
required:
- usersCode
usersId:
type: integer
description: 用户编号
required:
- usersId
usersOrg:
type: array
items:
$ref: '#/definitions/orgResponseBody'
description: 用户关联的组织
usersRole:
type: array
items:
$ref: '#/definitions/roleResponseBody'
description: 用户关联的角色
usersType:
type: integer
description: 用户类型 1:企业内部用户(内部添加) 2:共创用户 1024:企业注册用户(注册添加)
required:
- usersType
description: 用户
... ... @@ -16,7 +16,7 @@ metadata:
description: 配置的用户显示的字段,例 `["c1","c2"]``
type:
array: string
- name: usersId
- name: userId
description: 归属的用户id
type:
primitive: int64
... ...
... ... @@ -4,7 +4,7 @@ metadata:
name: ext
description: 冗余附加数据
attributes:
- ref: usersName
- ref: userName
required: true
- ref: orgName
required: true
... ...
version: v1
kind: Schema
metadata:
name: users
name: user
description: 用户
attributes:
- ref: usersId
- ref: userId
required: true
- ref: companyId
required: true
- ref: usersBaseId
- ref: userBaseId
required: true
- ref: usersType
- ref: userType
required: true
- ref: usersCode
- ref: userCode
required: true
- name: organizationId
description: 组织机构
... ... @@ -22,15 +22,15 @@ metadata:
description: 所属部门
type:
primitive: int64
- name: usersInfo
description: 用户信息 (冗余,数据存在usersBase里面)
- name: userInfo
description: 用户信息 (冗余,数据存在userBase里面)
type:
schema: usersInfo
- name: usersOrg
schema: userInfo
- name: userOrg
description: 用户关联的组织
type:
array: org
- name: usersRole
- name: userRole
description: 用户关联的角色
type:
array: role
... ...
version: v1
kind: Schema
metadata:
name: usersBase
name: userBase
description: 用户基础
attributes:
- ref: usersBaseId
- ref: userBaseId
required: true
- name: usersInfo
- name: userInfo
description: 用户信息
type:
schema: usersInfo
- ref: phone
schema: userInfo
- ref: account
required: true
- ref: password
required: true
... ...
version: v1
kind: Schema
metadata:
name: usersInfo
name: userInfo
description: 用户信息 (base)
attributes:
- ref: usersName
- ref: userName
required: true
- ref: phone
required: true
... ...
version: v1
kind: Schema
metadata:
name: usersProfile
name: userProfile
description: 用户概要数据
attributes:
- ref: usersId
- ref: userId
required: true
- ref: usersBaseId
- ref: userBaseId
required: true
- ref: usersName
- ref: userName
required: true
- ref: usersCode
- ref: userCode
required: true
- ref: avatar
required: true
... ...
... ... @@ -5,7 +5,7 @@ metadata:
type: command
description: 注销账号 (添加用户时重新激活)
payload:
- ref: usersId
- ref: userId
required: true
result:
- name: code
... ...
... ... @@ -5,7 +5,7 @@ metadata:
type: command
description: 修改密码
payload:
- ref: usersId
- ref: userId
required: true
- name: oldPassword
description: 旧密码
... ...
... ... @@ -5,7 +5,7 @@ metadata:
type: command
description: 重置手机号
payload:
- ref: usersId
- ref: userId
required: true
- name: oldPhone
type:
... ...
version: v1
kind: Method
metadata:
name: usersInfo
name: userInfo
type: query
description: 用户信息 (暂时没有使用)
result:
- ref: usersId
- ref: userId
required: true
- ref: usersName
- ref: userName
required: true
- ref: avatar
required: true
... ... @@ -22,7 +22,7 @@ metadata:
type:
schema: org
required: true
- name: usersOrgs
- name: userOrgs
description: 用户关联的组织
type:
array: org
... ...
... ... @@ -20,7 +20,7 @@ metadata:
primitive: string
required: true
- name: accessCode
description: 权限编码 users:edit
description: 权限编码 user:edit
type:
primitive: string
required: true
... ...
... ... @@ -18,7 +18,7 @@ metadata:
primitive: string
required: true
- name: accessCode
description: 权限编码 users:edit
description: 权限编码 user:edit
type:
primitive: string
- name: menuType
... ...
... ... @@ -7,7 +7,7 @@ metadata:
payload:
- ref: roleId
required: true
- name: usersIds
- name: userIds
description: 用户列表
type:
array: int64
... ...
... ... @@ -7,7 +7,7 @@ metadata:
payload:
- ref: roleId
required: true
- name: usersIds
- name: userIds
description: 用户列表
type:
array: int64
... ...
... ... @@ -5,12 +5,12 @@ metadata:
type: command
description: 批量添加
payload:
- ref: usersType
- ref: userType
required: true
- name: users
- name: user
description: 用户列表
type:
array: users
array: user
- ref: password
required: true
result:
... ...
... ... @@ -5,7 +5,7 @@ metadata:
type: command
description: 批量修改启用状态
payload:
- name: usersIds
- name: userIds
type:
array: int64
required: true
... ...
... ... @@ -5,7 +5,7 @@ metadata:
type: command
description: 批量重置密码
payload:
- name: usersIds
- name: userIds
type:
array: int64
required: true
... ...
... ... @@ -7,9 +7,9 @@ metadata:
payload:
- ref: companyId
required: true
- ref: usersType
- ref: userType
required: true
- ref: usersCode
- ref: userCode
required: true
- name: organizationId
description: 组织机构
... ... @@ -19,11 +19,11 @@ metadata:
description: 所属部门
type:
primitive: int64
- name: usersOrg
- name: userOrg
description: 用户关联的组织
type:
array: org
- name: usersRole
- name: userRole
description: 用户关联的角色
type:
array: role
... ... @@ -37,12 +37,16 @@ metadata:
primitive: int
- ref: password
required: true
- name: usersInfo
description: 用户信息
type:
array: usersInfo
- ref: userName
required: true
- ref: phone
required: true
- ref: avatar
required: true
- ref: email
required: true
result:
- name: users
- name: user
type:
schema: users
schema: user
required: true
... ...
... ... @@ -7,7 +7,7 @@ metadata:
payload:
- ref: code
required: true
- ref: usersId
- ref: userId
required: true
result:
- name: code
... ...
... ... @@ -5,7 +5,7 @@ metadata:
type: query
description: 获取我收藏的菜单
payload:
- ref: usersId
- ref: userId
required: true
result:
- name: favoriteMenus
... ...
... ... @@ -5,10 +5,10 @@ metadata:
type: query
description: 返回
payload:
- ref: usersId
- ref: userId
required: true
result:
- name: users
- name: user
type:
schema: users
schema: user
required: true
... ...
... ... @@ -5,7 +5,7 @@ metadata:
type: query
description: 返回用户有权限的菜单
payload:
- ref: usersId
- ref: userId
required: true
- name: menuCategory
description: 菜单类别 web app
... ...
... ... @@ -5,16 +5,16 @@ metadata:
type: query
description: 获取用户概要数据
payload:
- ref: usersId
- ref: userId
required: false
- ref: phone
required: false
- ref: companyId
required: false
- ref: usersCode
- ref: userCode
required: false
result:
- name: usersProfile
- name: userProfile
type:
schema: usersProfile
schema: userProfile
required: true
... ...
... ... @@ -15,7 +15,7 @@ metadata:
required: false
- ref: departmentId
required: false
- ref: usersName
- ref: userName
required: false
- ref: depName
required: false
... ... @@ -24,7 +24,7 @@ metadata:
result:
- ref: count
required: true
- name: users
- name: user
type:
array: users
array: user
required: true
... ...
... ... @@ -5,10 +5,10 @@ metadata:
type: command
description: 移除
payload:
- ref: usersId
- ref: userId
required: true
result:
- name: users
- name: user
type:
schema: users
schema: user
required: true
... ...
... ... @@ -9,7 +9,7 @@ metadata:
description: 菜单编码列表
type:
array: string
- ref: usersId
- ref: userId
required: true
result:
- name: code
... ...
... ... @@ -5,7 +5,7 @@ metadata:
type: command
description: 更新
payload:
- ref: usersId
- ref: userId
required: true
- name: organizationId
description: 组织机构
... ... @@ -15,11 +15,11 @@ metadata:
description: 所属部门
type:
primitive: int64
- name: usersOrg
- name: userOrg
description: 用户关联的组织
type:
array: org
- name: usersRole
- name: userRole
description: 用户关联的角色
type:
array: role
... ... @@ -31,8 +31,16 @@ metadata:
description: 启用状态(启用:1 禁用:2)
type:
primitive: int
- ref: userName
required: true
- ref: phone
required: true
- ref: avatar
required: true
- ref: email
required: true
result:
- name: users
- name: user
type:
schema: users
schema: user
required: true
... ...
... ... @@ -5,9 +5,9 @@ metadata:
type: command
description: 更新用户基础信息数据
payload:
- ref: usersId
- ref: userId
required: true
- ref: usersName
- ref: userName
required: true
- ref: avatar
required: true
... ... @@ -20,7 +20,7 @@ metadata:
required: true
- ref: msg
required: true
- name: usersProfile
- name: userProfile
type:
schema: usersProfile
schema: userProfile
required: true
... ...
version: v1
kind: Service
metadata:
name: users
name: user
description: 用户
... ...
... ... @@ -5,10 +5,10 @@ metadata:
type: command
description: 创建用户基础数据
payload:
- ref: usersBaseId
- ref: userBaseId
required: true
result:
- name: usersBase
- name: userBase
type:
schema: usersBase
schema: userBase
required: true
... ...
... ... @@ -5,10 +5,10 @@ metadata:
type: query
description: 返回用户基础数据
payload:
- ref: usersBaseId
- ref: userBaseId
required: true
result:
- name: usersBase
- name: userBase
type:
schema: usersBase
schema: userBase
required: true
... ...
... ... @@ -17,7 +17,7 @@ metadata:
result:
- ref: count
required: true
- name: usersBases
- name: userBases
type:
array: usersBase
array: userBase
required: true
... ...
... ... @@ -5,10 +5,10 @@ metadata:
type: command
description: 移除用户基础数据
payload:
- ref: usersBaseId
- ref: userBaseId
required: true
result:
- name: usersBase
- name: userBase
type:
schema: usersBase
schema: userBase
required: true
... ...
... ... @@ -5,10 +5,10 @@ metadata:
type: command
description: 更新用户基础数据
payload:
- ref: usersBaseId
- ref: userBaseId
required: true
result:
- name: usersBase
- name: userBase
type:
schema: usersBase
schema: userBase
required: true
... ...
version: v1
kind: Service
metadata:
name: usersBase
name: userBase
description:
... ...