作者 tangxuhui

新增 分红订单,手机端部分接口

正在显示 95 个修改的文件 包含 1315 行增加26 行删除
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
... ...
version: v1
kind: Service
metadata:
name: appLoginAccess
description: app端登录访问
... ...
version: v1
kind: Method
metadata:
name: checkPhone
type: command
description: 短信验证手机号
payload:
- ref: phone
required: true
- name: smsCode
description: 验证码
type:
primitive: string
result:
- name: smsCodeIdentity
description: 验证码凭证
type:
primitive: string
... ...
version: v1
kind: Method
metadata:
name: editPersonalData
type: command
description: 编辑个人资料
payload:
- name: avator
description: 头像地址
type:
primitive: string
- name: nickName
description: 用户名字
type:
primitive: string
result:
- name: avator
description: 头像地址
type:
primitive: string
- name: nickName
description: 用户名字
type:
primitive: string
... ...
version: v1
kind: Method
metadata:
name: editPersonalData
type: query
description: 获取个人资料
payload:
- name: userId
description: 用户id
type:
primitive: int64
result:
- name: avator
description: 头像地址
type:
primitive: string
- name: nickName
description: 用户名字
type:
primitive: string
- name: phone
description: 手机号
type:
primitive: string
- name: userCode
description: 用户编号
type:
primitive: string
... ...
version: v1
kind: Method
metadata:
name: registCommonUser
type: command
description: 注册普通用户
payload:
- ref: phone
required: true
- name: nickeName
description: 用户姓名
type:
primitive: string
- name: smsCode
description: 手机验证码
type:
primitive: string
- name: password
description: 设置账号密码
type:
primitive: string
result:
- ref: phone
required: true
- name: nickeName
description: 用户姓名
type:
primitive: string
... ...
version: v1
kind: Method
metadata:
name: registCompanyUser
type: command
description: 注册企业用户
payload:
- ref: companyName
required: true
- ref: scale
required: true
- ref: industryCategory
required: true
- ref: phone
required: true
- name: nickeName
description: 用户姓名
type:
primitive: string
- name: smsCode
description: 手机验证码
type:
primitive: string
- name: password
description: 设置账号密码
type:
primitive: string
result:
- ref: phone
required: true
- name: nickeName
description: 用户姓名
type:
primitive: string
... ...
version: v1
kind: Method
metadata:
name: setNewPassword
type: command
description: 设置新的密码
payload:
- name: smsCodeIdentity
description: 验证码凭证
type:
primitive: string
- name: newPassword
description: 新的密码
result:
- name: success
description: 成功
type:
primitive: string
... ...
version: v1
kind: Service
metadata:
name: appUsers
description: 用户信息
... ...
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
... ...
... ... @@ -5,14 +5,17 @@ metadata:
type: query
description: 返回共创项目管理列表
payload:
- ref: offset
required: true
- ref: limit
required: true
- 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
- ref: count
required: true
- name: cooperationProjects
type:
array: cooperationProject
required: true
... ...
version: v1
kind: Method
metadata:
name: createDividendsOrder
type: command
description: 创建分红订单实体对象
payload:
- ref: customerName
required: true
- ref: dividendsOrderAmount
required: true
- ref: dividendsOrderNumber
required: true
- ref: dividendsOriginalOrderNum
required: true
- ref: orderTime
required: true
- ref: remarks
required: true
- name: salesmanUid
description: 订单业务员uid
type:
primitive: string
- name: operatorUid
description: 订单操作人uid
type:
primitive: string
- name: orderGoods
description: 订单产品列表
type:
array: orderGood
result:
- name: dividendsOrder
type:
schema: dividendsOrder
required: true
... ...
version: v1
kind: Method
metadata:
name: getDividendsOrder
type: query
description: 返回分红订单实体对象
payload:
- ref: dividendsOrderId
required: true
result:
- name: dividendsOrder
type:
schema: dividendsOrder
required: true
... ...
version: v1
kind: Method
metadata:
name: listDividendsOrders
type: query
description: 返回分红订单实体对象列表
payload:
- ref: offset
required: true
- ref: limit
required: true
result:
- ref: count
required: true
- name: dividendsOrders
type:
array: dividendsOrder
required: true
... ...
version: v1
kind: Method
metadata:
name: removeDividendsOrder
type: command
description: 移除分红订单实体对象
payload:
- ref: dividendsOrderId
required: true
result:
- name: dividendsOrder
type:
schema: dividendsOrder
required: true
... ...
version: v1
kind: Method
metadata:
name: searchDividendsOrder
type: query
description: 查询分红订单方法
payload:
- ref: dividendsOrderNumber
required: false
- ref: customerName
required: false
- ref: offset
required: false
- ref: limit
required: false
result:
- name: dividendsOrders
type:
array: dividendsOrder
required: true
... ...
version: v1
kind: Method
metadata:
name: updateDividendsOrder
type: command
description: 更新分红订单实体对象
payload:
- ref: customerName
required: true
- ref: dividendsOrderAmount
required: true
- ref: dividendsOrderNumber
required: true
- ref: dividendsOriginalOrderNum
required: true
- ref: orderTime
required: true
- ref: remarks
required: true
- name: salesmanUid
description: Attribute描述
type:
primitive: string
- name: operatorUid
description: Attribute描述
type:
primitive: string
result:
- name: dividendsOrder
type:
schema: dividendsOrder
required: true
... ...
version: v1
kind: Service
metadata:
name: dividendsOrder
description: 分红订单实体对象
... ...
version: v1
kind: Method
metadata:
name: createDividendsReturnedOrder
type: command
description: 创建分红退货单服务
payload:
- ref: dividendsReturnedOrderRefund
required: true
- ref: dividendsReturnedCustomerName
required: true
- ref: originalOrderNum
required: true
- ref: remarks
required: true
- ref: dividendsReturnedDate
required: true
- name: regionName
description: 退货区域名称
type:
primitive: string
- name: orderGoods
description: 订单产品列表
type:
array: orderGood
result:
- name: dividendsReturnedOrder
type:
schema: dividendsReturnedOrder
required: true
... ...
version: v1
kind: Method
metadata:
name: getDividendsReturnedOrder
type: query
description: 返回分红退货单服务
playload:
- ref: dividendsReturnedOrderId
required: true
result:
- name: dividendsReturnedOrders
type:
schema: dividendsReturnedOrder
required: true
... ...
version: v1
kind: Method
metadata:
name: listDividendsReturnedOrder
type: query
description: 返回分红退货单服务列表
payload:
- ref: offset
required: true
- ref: limit
required: true
result:
- ref: count
required: true
- name: dividendsReturnedOrders
type:
array: dividendsReturnedOrder
required: true
... ...
version: v1
kind: Method
metadata:
name: removeDividendsReturnedOrder
type: command
description: 移除分红退货单服务
playload:
- ref: dividendsReturnedOrderId
required: true
result:
- name: dividendsReturnedOrder
type:
schema: dividendsReturnedOrder
required: true
... ...
version: v1
kind: Method
metadata:
name: searchDividendsReturnedOrder
type: query
description: 查找分红退货单
payload:
- ref: dividendsReturnedCustomerName
description: 退货客户姓名
required: false
- ref: dividendsReturnedOrderNumber
description: 分红退货单号
required: false
- ref: offset
required: false
- ref: limit
required: false
result:
- name: dividendsReturnedOrders
type:
array: dividendsReturnedOrder
required: true
... ...
version: v1
kind: Method
metadata:
name: updateDividendsReturnedOrder
type: command
description: 更新分红退货单服务
payload:
- ref: dividendsReturnedOrderRefund
required: true
- ref: dividendsReturnedCustomerName
required: true
- ref: originalOrderNum
required: true
- ref: remarks
required: true
- ref: dividendsReturnedDate
required: true
- name: regionName
description: 退货区域
type:
primitive: string
- name: orderGoods
description: 订单产品列表
type:
array: orderGood
result:
- name: dividendsReturnedOrder
type:
schema: dividendsReturnedOrder
required: true
... ...
version: v1
kind: Service
metadata:
name: dividendsReturnedOrder
description: 分红退货单服务
... ...
version: v1
kind: Method
metadata:
name: AuthCodeToAccessToken
name: authCodeToAccessToken
type: query
description: 获取具体的进入系统的凭证
payload:
... ... @@ -22,3 +22,15 @@ metadata:
description: 登录系统的凭证
type:
primitive: string
- name: expiredAt
description: 到期时间
type:
primitive: int64
- name: menu
description: 菜单权限信息
type:
array: menu
- name: user
description: 用户信息
type:
schema: users
... ...
version: v1
kind: Method
metadata:
name: getUserProfile
type: query
description: Web获取具体的进入系统的用户配置
payload:
- name: accessToken
description: 登录认证的凭证
type:
primitive: string
result:
- name: menu
description: 菜单权限信息
type:
array: menu
- name: user
description: 用户信息
type:
schema: usersBase
- name: orgs
description: 可选组织列表
type:
array: orgs
... ...
version: v1
kind: Method
metadata:
name: switchOrg
type: query
description: 切换公司组织
payload:
- name: accessToken
description: 登录凭证
type:
primitive: string
- name: orgId
description: 公司id
type:
primitive: int64
result:
- name: accessToken
description: 登录系统的凭证
type:
primitive: string
... ...
version: v1
kind: Method
metadata:
name: orgEnable
type: command
description: 禁用、启用组织管理
payload:
- name: orgId
type:
array: int64
- name: status
type:
primitive: int
result:
- name: org
type:
schema: orgs
required: true
... ...
... ... @@ -5,8 +5,9 @@ metadata:
type: command
description: 移除组织管理
payload:
- ref: orgId
required: true
- name: orgId
type:
array: int64
result:
- name: org
type:
... ...