作者 yangfu
正在显示 100 个修改的文件 包含 939 行增加34 行删除

要显示太多修改。

为保证性能只显示 100 of 100+ 个文件。

... ... @@ -4,4 +4,4 @@ metadata:
name: operator
description: 操作人
type:
schema: any
schema: user
... ...
... ... @@ -4,4 +4,4 @@ metadata:
name: userInfo
description: 冗余字段,jsonb格式,不限制存放内容
type:
primitive: any
schema: userInfo
... ...
version: v1
kind: Attribute
metadata:
name: cooperationContractIncentivesRules
name: cooperationContractDividendsIncentivesRules
description: 共创合约激励规则列表
type:
array: any
array: string
... ...
version: v1
kind: Attribute
metadata:
name: cooperationContractMoneyIncentivesRules
description: 共创合约金额激励规则列表
type:
array: string
... ...
version: v1
kind: Attribute
metadata:
name: department
description: 部门
type:
schema: department
... ...
version: v1
kind: Attribute
metadata:
name: organizations
description: 关联的组织机构
type:
array: organization
... ...
version: v1
kind: Attribute
metadata:
name: userAccount
description: 用户账号
type:
primitive: string
... ...
... ... @@ -19,6 +19,8 @@ metadata:
- ref: organization
description: 数据关联组织机构
required: true
- ref: companyId
required: true
- ref: updatedAt
required: true
- ref: deletedAt
... ...
... ... @@ -27,6 +27,8 @@ metadata:
- ref: organization
description: 数据关联组织机构
required: true
- ref: companyId
required: true
- ref: createdAt
required: true
- ref: deletedAt
... ...
... ... @@ -28,6 +28,8 @@ metadata:
- ref: organization
description: 数据关联组织机构
required: true
- ref: companyId
required: true
- ref: operator
required: true
- ref: operateTime
... ...
... ... @@ -14,6 +14,8 @@ metadata:
required: true
- ref: undertakers
required: true
- ref: companyId
required: true
- ref: operator
required: true
- ref: updatedAt
... ...
... ... @@ -18,6 +18,8 @@ metadata:
- ref: organization
description: 数据关联组织机构
required: true
- ref: companyId
required: true
- ref: remarks
required: true
- ref: operator
... ...
... ... @@ -24,6 +24,8 @@ metadata:
- ref: organization
description: 数据关联组织机构
required: true
- ref: companyId
required: true
- ref: operator
required: true
- ref: operateTime
... ...
... ... @@ -32,6 +32,8 @@ metadata:
- ref: organization
description: 数据关联组织机构
required: true
- ref: companyId
required: true
- ref: operator
required: true
- ref: operateTime
... ...
version: v1
kind: Schema
metadata:
name: department
description: 部门值对象
attributes:
- ref: departmentId
required: true
- ref: departmentName
required: true
- ref: departmentNumber
required: true
- ref: IsOrganization
required: true
... ...
... ... @@ -28,6 +28,8 @@ metadata:
- ref: organization
description: 数据关联组织机构
required: true
- ref: companyId
required: true
- ref: operator
required: true
- ref: operateTime
... ...
... ... @@ -24,6 +24,8 @@ metadata:
- ref: organization
description: 数据关联组织机构
required: true
- ref: companyId
required: true
- ref: updatedAt
required: true
- ref: deletedAt
... ...
... ... @@ -28,6 +28,8 @@ metadata:
- ref: organization
description: 数据关联组织机构
required: true
- ref: companyId
required: true
- ref: createdAt
required: true
- ref: deletedAt
... ...
... ... @@ -35,6 +35,8 @@ metadata:
- ref: organization
description: 数据关联组织机构
required: true
- ref: companyId
required: true
- ref: createdAt
required: true
- ref: deletedAt
... ...
... ... @@ -11,7 +11,7 @@ metadata:
- ref: cooperationMode
required: true
- ref: cooperationContractSponsor
requried: true
required: true
- ref: createdAt
description: 共创合约建立时间
required: true
... ...
... ... @@ -26,6 +26,8 @@ metadata:
- ref: organization
description: 数据关联组织机构
required: true
- ref: companyId
required: true
- ref: updatedAt
required: true
- ref: deletedAt
... ...
... ... @@ -7,4 +7,4 @@ metadata:
- ref: organizationId
required: true
- ref: companyId
requried: true
required: true
... ...
version: v1
kind: Schema
metadata:
name: referrer
description: 推荐人值对象
attributes:
- ref: userId
required: true
- ref: userBaseId
required: true
- ref: role
required: true
- ref: organizations
description: 用户关联的组织机构
required: true
- ref: organization
description: 用户所属的组织机构
required: true
- ref: department
description: 用户所属的部门
required: true
- ref: company
required: true
- ref: userInfo
required: true
- ref: userType
required: true
... ...
... ... @@ -2,11 +2,20 @@ version: v1
kind: Schema
metadata:
name: relevant
description: 共创合约相关人
description: 共创合约相关人值对象
attributes:
- ref: userId
required: true
- ref: orgnization
- ref: userBaseId
required: true
- ref: organization
description: 用户所属的组织机构
required: true
- ref: organizations
description: 用户关联的组织机构
required: true
- ref: department
description: 用户所属的部门
required: true
- ref: role
required: true
... ...
... ... @@ -2,7 +2,7 @@ version: v1
kind: Schema
metadata:
name: role
description: 用户角色
description: 用户角色值对象
attributes:
- ref: roleId
required: true
... ...
version: v1
kind: Schema
metadata:
name: salesman
description: 业务员值对象
attributes:
- ref: userId
required: true
- ref: userBaseId
required: true
- ref: role
required: true
- ref: organizations
description: 用户关联的组织机构
required: true
- ref: organization
description: 用户所属的组织机构
required: true
- ref: department
description: 用户所属的部门
required: true
- ref: company
required: true
- ref: userInfo
required: true
- ref: userType
required: true
... ...
... ... @@ -2,14 +2,20 @@ version: v1
kind: Schema
metadata:
name: undertaker
description: 共创合约承接方
description: 共创合约承接方值对象
attributes:
- ref: userId
required: true
- ref: usersBaseId
- ref: userBaseId
required: true
- ref: organization
description: 用户关联组织机构
description: 用户所属组织机构
required: true
- ref: organizations
description: 用户关联的组织机构
required: true
- ref: department
description: 用户所属的部门
required: true
- ref: role
required: true
... ...
... ... @@ -6,16 +6,23 @@ metadata:
attributes:
- ref: userId
required: true
- ref: usersBaseId
- ref: userBaseId
required: true
- ref: organization
description: 用户关联组织机构
description: 用户所属组织机构
required: true
- ref: organizations
description: 用户关联的组织机构
required: true
- ref: department
description: 用户所属的部门
required:
- ref: role
required: true
- ref: userInfo
required: true
- ref: userType
description: 用户类型
required: true
- ref: status
required: true
... ...
... ... @@ -12,5 +12,5 @@ metadata:
required: true
- ref: userPhone
required: true
- ref: userAcount
- ref: userAccount
required: true
... ...
... ... @@ -27,11 +27,11 @@ metadata:
- name: dividendsIncentivesRules
description: 业绩分红激励规则列表
type:
array: dividendsIncentivesRules
array: dividendsIncentivesRule
- name: moneyIncentivesRules
description: 金额激励规则列表
type:
array: moneyIncentivesRules
array: moneyIncentivesRule
- name: undertakers
description: 承接方列表
type:
... ...
... ... @@ -7,7 +7,7 @@ metadata:
payload:
- ref: cooperationProjectName
required: true
- ref: coopeartionProjectUndertakerType
- ref: cooperationProjectUndertakerType
description: 承接对象,1员工,2共创用户,3公开,可以多选
required: true
- name: sponsorUid
... ...
... ... @@ -7,7 +7,7 @@ metadata:
payload:
- ref: cooperationProjectName
required: true
- ref: coopeartionProjectUndertakerType
- ref: cooperationProjectUndertakerType
description: 承接对象,1员工,2共创用户,3公开,可以多选
required: true
- name: sponsorUid
... ...
... ... @@ -14,7 +14,7 @@ metadata:
- ref: dividendsIncentivesStageStart
required: true
- ref: dividendsIncentivesStageEnd
requried: true
required: true
- ref: referrerPercentage
required: true
- ref: salesmanPercentage
... ...
... ... @@ -14,7 +14,7 @@ metadata:
- ref: dividendsIncentivesStageStart
required: true
- ref: dividendsIncentivesStageEnd
requried: true
required: true
- ref: referrerPercentage
required: true
- ref: salesmanPercentage
... ...
version: v1
kind: HttpApi
metadata:
service: appLoginAccess
path: /app/auth
endpoints:
- method: loginByAccount
route:
post: /by-account
- method: loginBySmsCode
route:
post: /by-smscode
- method: switchOrg
route:
post: /switch-org
- method: refreshToken
route:
post: /refresh-token
- method: authCodeToAccessToken
route:
post: /access-token
- method: loginScanQrcode
route:
post: /by-qrcode
... ...
version: v1
kind: HttpApi
metadata:
service: appUsers
path: /app/users
endpoints:
- method: registCommonUser
route:
post: /regist/common
- method: registCompanyUser
route:
post: /regist/company
- method: checkPhone
route:
post: /check-phone
- method: setNewPassword
route:
post: /set-password
... ...
... ... @@ -2,7 +2,7 @@ version: v1
kind: HttpApi
metadata:
service: contractChangeLog
path: /contract-change-logs
path: /web/contract-change-logs
endpoints:
- method: listContractChangeLog
route:
... ...
... ... @@ -2,7 +2,7 @@ version: v1
kind: HttpApi
metadata:
service: cooperationApplication
path: /cooperation-applications
path: /web/cooperation-applications
endpoints:
- method: createCooperationApplication
route:
... ...
... ... @@ -2,7 +2,7 @@ version: v1
kind: HttpApi
metadata:
service: cooperationContract
path: /cooperation-contracts
path: /web/cooperation-contracts
endpoints:
- method: createCooperationContract
route:
... ...
... ... @@ -2,7 +2,7 @@ version: v1
kind: HttpApi
metadata:
service: cooperationMode
path: /cooperation-modes
path: /web/cooperation-modes
endpoints:
- method: createCooperationMode
route:
... ...
... ... @@ -2,7 +2,7 @@ version: v1
kind: HttpApi
metadata:
service: cooperationProject
path: /cooperation-projects
path: /web/cooperation-projects
endpoints:
- method: createCooperationProject
route:
... ... @@ -16,3 +16,6 @@ metadata:
- method: listCooperationProject
route:
post: /search
- method: endCooperationProject
route:
put: /end
... ...
... ... @@ -2,7 +2,7 @@ version: v1
kind: HttpApi
metadata:
service: loginAccess
path: /auth
path: /web/auth
endpoints:
- method: loginByAccount
route:
... ... @@ -16,6 +16,6 @@ metadata:
- method: getQrcodeForLogin
route:
get: /get-qrcode
- method: AuthCodeToAccessToken
- method: authCodeToAccessToken
route:
get: /access-token
... ...
... ... @@ -2,7 +2,7 @@ version: v1
kind: HttpApi
metadata:
service: menu
path: /menus
path: /web/menus
endpoints:
- method: menuList
route:
... ...
... ... @@ -2,7 +2,7 @@ version: v1
kind: HttpApi
metadata:
service: noticeSetting
path: /notice-setting
path: /web/notice-setting
endpoints:
- method: noticeSettingList
route:
... ...
... ... @@ -2,7 +2,7 @@ version: v1
kind: HttpApi
metadata:
service: orgs
path: /orgs
path: /web/orgs
endpoints:
- method: orgAdd
route:
... ...
... ... @@ -2,7 +2,7 @@ version: v1
kind: HttpApi
metadata:
service: roles
path: /roles
path: /web/roles
endpoints:
- method: roleAdd
route:
... ...
... ... @@ -2,7 +2,7 @@ version: v1
kind: HttpApi
metadata:
service: contractUndertakerFeedback
path: /contract-undertaker-feedbacks
path: /web/contract-undertaker-feedbacks
endpoints:
- method: createContractUndertakerFeedback
route:
... ...
... ... @@ -2,7 +2,7 @@ version: v1
kind: HttpApi
metadata:
service: users
path: /users
path: /web/users
endpoints:
- method: companyUserAdd
route:
... ...
version: v1
kind: Attribute
metadata:
name: customerName
description: 客户名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: dividendStatus
description: 分红订单分红状态,1待分红,2已分红,3部分分红
type:
primitive: int32
... ...
version: v1
kind: Attribute
metadata:
name: dividendTime
description: 分红订单分红时间
type:
primitive: datetime
... ...
version: v1
kind: Attribute
metadata:
name: dividendsOrderAmount
description: 分红订单金额
type:
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: dividendsOrderId
description: 分红订单ID
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: dividendsOrderNumber
description: 分红订单号
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: dividendsOriginalOrderNum
description: 分红订单原单号
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: orderSalesman
description: 订单业务员
type:
schema: usersBase
... ...
version: v1
kind: Attribute
metadata:
name: orderTime
description: 订单产生时间
type:
primitive: datetime
... ...
version: v1
kind: Attribute
metadata:
name: region
description: 区域
type:
schema: regionInfo
... ...
version: v1
kind: Attribute
metadata:
name: dividendsReturnedCustomerName
description: 退货客户名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: dividendsReturnedDate
description: 退货日期
type:
primitive: datetime
... ...
version: v1
kind: Attribute
metadata:
name: dividendsReturnedOrderId
description: 分红退货单记录ID
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: dividendsReturnedOrderNumber
description: 分红退货单号
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: dividendsReturnedOrderRefund
description: 退货金额
type:
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: originalOrderNum
description: 来源单号,源单号,订单号
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: orderGoodAmount
description: 订单产品金额
type:
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: orderGoodExpense
description: 订单产品费用
type:
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: orderGoodId
description: 订单产品
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: orderGoodName
description: 订单产品名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: orderGoodPrice
description: 订单产品单价
type:
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: orderGoodQuantity
description: 订单产品数量
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: regionName
description: 区域名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: regionNumber
description: 区域编号
type:
primitive: string
... ...
... ... @@ -26,6 +26,8 @@ metadata:
required: true
- ref: orgId
required: true
- ref: status
required: true
- ref: cooperationModeName
- ref: cooperationModeNumber
description: 模式编码,唯一确定
... ...
version: v1
kind: Schema
metadata:
name: dividendsOrder
description: 分红订单实体
attributes:
- ref: dividendsOrderId
required: true
- ref: dividendsOrderNumber
required: true
- ref: dividendsOriginalOrderNum
required: true
- ref: dividendsOrderAmount
required: true
- ref: orderSalesman
required: true
- ref: orderTime
required: true
- ref: dividendTime
required: true
- ref: dividendStatus
required: true
- ref: region
required: true
- ref: customerName
description: 客户姓名
required: true
- ref: createdAt
required: true
- ref: deletedAt
required: true
- ref: updatedAt
required: true
- ref: operateTime
required: true
- ref: operator
required: true
... ...
version: v1
kind: Schema
metadata:
name: dividendsReturnedOrder
description: 分红退货单实体
attributes:
- ref: dividendsReturnedOrderId
required: true
- ref: dividendsReturnedOrderNumber
description: 分红退货单号
required: true
- ref: dividendsReturnedOrderRefund
required: true
- ref: originalOrderNum
description: 源单号(原始订单号)
required: true
- ref: dividendsOrderNumber
description: 关联分红订单号
required: true
- ref: dividendsReturnedCustomerName
description: 退货客户姓名
required: true
- ref: dividendsReturnedDate
required: true
- ref: region
description: 退货区域
required: true
- ref: remarks
description: 备注
required: true
- ref: dividendStatus
required: true
- ref: dividendTime
required: true
- ref: createdAt
required: true
- ref: deletedAt
required: true
- ref: updatedAt
required: true
- ref: operator
required: true
- ref: operateTime
required: true
... ...
... ... @@ -16,3 +16,11 @@ metadata:
description: 组织id
type:
primitive: int64
- name: isLogin
description: 是否已经进入系统
type:
primitive: boolean
- name: userType
description: 用户类型
type:
primitive: int
... ...
version: v1
kind: Schema
metadata:
name: orderGood
description: 分红单中的产品
attributes:
- ref: orderGoodAmount
required: true
- ref: orderGoodExpense
required: true
- ref: orderGoodId
required: true
- ref: orderGoodName
required: true
- ref: orderGoodPrice
required: true
- ref: orderGoodQuantity
required: true
- ref: cooperationContractNumber
description: 关联的共创合约编号
required: true
- ref: dividendsOrderNumber
description: 关联分红订单号
required: true
- ref: createdAt
required: true
- ref: deletedAt
required: true
- ref: updatedAt
required: true
... ...
version: v1
kind: Schema
metadata:
name: regionInfo
description: 区域信息值对象
attributes:
- ref: regionNumber
required: true
- ref: regionName
required: true
... ...
... ... @@ -11,6 +11,7 @@ metadata:
- ref: orgId
required: true
- ref: orgName
required: true
- ref: roleName
required: true
- ref: accessMenus
... ...
... ... @@ -20,3 +20,10 @@ metadata:
required: true
- ref: email
required: true
- ref: companyId
required: true
- ref: companyName
required: true
- ref: orgId
required: true
- ref: orgName
... ...
version: v1
kind: Method
metadata:
name: createContractUndertakerFeedback
type: command
description: 创建承接信息反馈
payload:
- ref: feedbackAttachment
required: true
- ref: feedbackContent
required: true
result:
- name: contractUndertakerFeedback
type:
schema: contractUndertakerFeedback
required: true
... ...
version: v1
kind: Service
metadata:
name: appContractUndertakerFeedback
description: 承接信息反馈
... ...
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
- name: status
description: 共创申请状态
type:
primitive: int
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: appCooperationApplication
description: 共创申请管理
... ...
version: v1
kind: Method
metadata:
name: createCooperationProject
type: command
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
... ...
version: v1
kind: Method
metadata:
name: endCooperationProject
type: command
description: 结束共创项目管理
payload:
- name: cooperationProjectId
description: 共创项目id
type:
array: int64
result:
- name: cooperationProject
type:
schema: cooperationProject
required: true
... ...
version: v1
kind: Method
metadata:
name: getCooperationProject
type: query
description: 返回共创项目管理
payload:
- ref: cooperationProjectId
required: true
result:
- name: cooperationProject
type:
schema: cooperationProject
required: true
- name: application
type:
array: cooperationApplication
... ...
version: v1
kind: Method
metadata:
name: listCooperationProject
type: query
description: 返回共创项目管理列表
payload:
- ref: offset
required: true
- ref: limit
required: true
- ref: status
description: 项目状态 全部、招标中、已结束
required: true
result:
- ref: count
required: true
- name: cooperationProjects
type:
array: cooperationProject
required: true
... ...
version: v1
kind: Method
metadata:
name: updateCooperationProject
type: command
description: 更新共创项目管理
payload:
- 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
... ...
version: v1
kind: Service
metadata:
name: appCooperationProject
description: 共创项目管理
... ...
version: v1
kind: Method
metadata:
name: authCodeToAccessToken
type: query
description: app获取具体的进入系统的凭证
payload:
- name: authCode
description: 登录认证的凭证
type:
primitive: string
result:
- name: accessToken
description: 登录系统的凭证
type:
primitive: string
- name: refreshToken
description: 刷新凭证用的token
type:
primitive: int64
- name: expiresIn
description: 过期时间,单位秒
type:
primitive: int64
- name: menu
description: 菜单权限信息
type:
array: menu
- name: user
description: 用户信息
type:
schema: users
- name: orgs
description: 可选组织列表
type:
array: orgs
... ...
version: v1
kind: Method
metadata:
name: loginByAccount
type: query
description: app 端使用手机号和密码登录系统
payload:
- name: account
description: 账号
type:
primitive: string
- name: passwd
description: 密码
type:
primitive: string
result:
- name: authcode
description: 登录认证的凭证
type:
primitive: string
... ...
version: v1
kind: Method
metadata:
name: loginBySmsCode
type: query
description: app使用手机号和短信验证码登录系统
payload:
- name: phone
description: 手机号
type:
primitive: string
- name: smsCode
description: 短信验证码
type:
primitive: string
result:
- name: authcode
description: 登录认证的凭证
type:
primitive: string
... ...
version: v1
kind: Method
metadata:
name: loginScanQrcode
type: query
description: app扫描网页上的二维码确定登录
payload:
- name: authCode
description: 扫描到二维码信息,一个字符串
type:
primitive: string
- name: accessToken
description: app端登录凭证
type:
primitive: string
result:
- name: authcode
description: 扫描到二维码信息,一个字符串
type:
primitive: string
... ...
version: v1
kind: Method
metadata:
name: refreshToken
type: query
description: app刷新进入系统的凭证
payload:
- name: refreshToken
description: 刷新登录认证的凭证
type:
primitive: string
result:
- name: accessToken
description: 登录系统的凭证
type:
primitive: string
- name: refreshToken
description: 刷新凭证用的token
type:
primitive: int64
- name: expiresIn
description: 过期时间,单位秒
type:
primitive: int64
- name: menu
description: 菜单权限信息
type:
array: menu
- name: user
description: 用户信息
type:
schema: users
- name: orgs
description: 可选组织列表
type:
array: orgs
... ...
version: v1
kind: Method
metadata:
name: switchOrg
type: query
description: app切换公司组织
payload:
- name: accessToken
description: 登录凭证
type:
primitive: string
- name: orgId
description: 公司id
type:
primitive: int64
result:
- name: accessToken
description: 登录系统的凭证
type:
primitive: string
- name: refreshToken
description: 刷新凭证用的token
type:
primitive: int64
- name: expiresIn
description: 过期时间,单位秒
type:
primitive: int64
- name: menu
description: 菜单权限信息
type:
array: menu
- name: user
description: 用户信息
type:
schema: users
- name: orgs
description: 可选组织列表
type:
array: orgs
... ...