作者 yangfu

add api auth

  1 +version: v1
  2 +kind: HttpApi
  3 +metadata:
  4 + service: auth
  5 + path: /auths
  6 + endpoints:
  7 + - method: login
  8 + route:
  9 + post: /login
  10 + - method: loginByCompany
  11 + route:
  12 + post: /loginByCompany
  13 + - method: accessToken
  14 + route:
  15 + post: /accessToken
  16 + - method: refreshToken
  17 + route:
  18 + post: /refreshToken
  19 + - method: sendSmsCode
  20 + route:
  21 + post: /sendSmsCode
  22 + - method: rovoke
  23 + route:
  24 + post: /rovoke
  25 + - method: changePassword
  26 + route:
  27 + post: /changePhonePassword
@@ -22,3 +22,9 @@ metadata: @@ -22,3 +22,9 @@ metadata:
22 params: 22 params:
23 - name: offset 23 - name: offset
24 - name: limit 24 - name: limit
  25 + - method: convertCompanyStatus
  26 + route:
  27 + post: /convertCompanyStatus
  28 + - method: setCompanyAdmin
  29 + route:
  30 + post: /setCompanyAdmin
@@ -22,3 +22,6 @@ metadata: @@ -22,3 +22,6 @@ metadata:
22 params: 22 params:
23 - name: offset 23 - name: offset
24 - name: limit 24 - name: limit
  25 + - method: delivery
  26 + route:
  27 + get: /delivery
  1 +version: v1
  2 +kind: HttpApi
  3 +metadata:
  4 + service: statistics
  5 + path: /statisticss
  6 + endpoints:
  7 + - method: companyProfile
  8 + route:
  9 + post: /companyProfile
  10 + - method: orderProfile
  11 + route:
  12 + post: /orderProfile
  13 + - method: orderDividend
  14 + route:
  15 + post: /orderDividend
  16 + - method: partnersProfile
  17 + route:
  18 + post: /partnersProfile
@@ -22,3 +22,9 @@ metadata: @@ -22,3 +22,9 @@ metadata:
22 params: 22 params:
23 - name: offset 23 - name: offset
24 - name: limit 24 - name: limit
  25 + - method: convertUserStatus
  26 + route:
  27 + post: /convertUserStatus
  28 + - method: setPermisson
  29 + route:
  30 + post: /setPermisson
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: changePassword
  5 + type: command
  6 + description: 修改手机号密码
  7 + payload:
  8 + - name: oldPwd
  9 + description: 旧密码
  10 + type:
  11 + primitive: string
  12 + - name: newPwd
  13 + description: 新密码
  14 + type:
  15 + primitive: string
  16 + - name: confirmPwd
  17 + description: 确认密码
  18 + type:
  19 + primitive: string
  20 + - name: phone
  21 + description: 手机号
  22 + type:
  23 + primitive: string
  24 + result:
  25 + - name: code
  26 + type:
  27 + primitive: int
  28 + - name: msg
  29 + type:
  30 + primitive: string
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: revoke
  5 + type: command
  6 + description: 注销登录
  7 + result:
  8 + - name: code
  9 + type:
  10 + primitive: int
  11 + - name: msg
  12 + type:
  13 + primitive: int
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: sendSmsCode
  5 + type: command
  6 + description: 发送验证码
  7 + payload:
  8 + - name: phone
  9 + description: Attribute描述
  10 + type:
  11 + primitive: string
  12 + result:
  13 + - name: code
  14 + type:
  15 + primitive: int
  16 + - name: msg
  17 + type:
  18 + primitive: string
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: convertCompanyStatus
  5 + type: command
  6 + description: 公司状态转换 禁用、启用
  7 + payload:
  8 + - ref: companyId
  9 + required: true
  10 + - ref: status
  11 + required: true
  12 + result:
  13 + - name: company
  14 + type:
  15 + schema: company
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: setCompanyAdmin
  5 + type: command
  6 + description: 设置公司管理员
  7 + payload:
  8 + - ref: companyId
  9 + required: true
  10 + - ref: userId
  11 + required: true
  12 + result:
  13 + - name: company
  14 + type:
  15 + schema: company
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: partnersProfile
  5 + type: query
  6 + description: 合伙人统计信息
  7 + payload:
  8 + - ref: userId
  9 + required: true
  10 + result:
  11 + - name: partnersProfile
  12 + type:
  13 + primitive: any
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: convertUserStatus
  5 + type: command
  6 + description: 用户状态转换(禁用、启用)
  7 + payload:
  8 + - name: userId
  9 + description: 用户id
  10 + type:
  11 + primitive: int64
  12 + - ref: status
  13 + required: true
  14 + result:
  15 + - name: code
  16 + type:
  17 + primitive: int
  18 + - name: msg
  19 + type:
  20 + primitive: string
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: setPermisson
  5 + type: command
  6 + description: 设置权限
  7 + payload:
  8 + - ref: userId
  9 + required: true
  10 + - name: permissons
  11 + description: 权限编码列表
  12 + type:
  13 + array: int
  14 + result:
  15 + - name: code
  16 + type:
  17 + primitive: int
  18 + - name: msg
  19 + type:
  20 + primitive: string