作者 yangfu

add services auth statistics

  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: accessToken
  5 + type: command
  6 + description: 用户按公司登录
  7 + payload:
  8 + - name: authCode
  9 + description: Attribute描述
  10 + type:
  11 + primitive: string
  12 + result:
  13 + - name: refreshToken
  14 + description: Attribute描述
  15 + type:
  16 + primitive: string
  17 + - name: accessToken
  18 + description: Attribute描述
  19 + type:
  20 + primitive: string
  21 + - name: expiresIn
  22 + description: Attribute描述
  23 + type:
  24 + primitive: string
  25 + - name: auth
  26 + type:
  27 + schema: auth
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: login
  5 + type: query
  6 + description: 用户登录 返回有权限的公司列表
  7 + payload:
  8 + - name: phone
  9 + description: 手机号
  10 + type:
  11 + primitive: string
  12 + - name: grantType
  13 + description: signInPassword(密码登录) 或 signInCaptcha(验证码登录)或signInCredentials(凭证登录)
  14 + type:
  15 + primitive: string
  16 + - name: password
  17 + description: 密码(grantType = signInPassword)
  18 + type:
  19 + primitive: string
  20 + - name: captcha
  21 + description: 验证码(grantType = signInCaptcha)
  22 + type:
  23 + primitive: string
  24 + - name: credentials
  25 + description: 凭证(grantType = signInCredentials)
  26 + type:
  27 + primitive: string
  28 + result:
  29 + - name: users
  30 + description: Attribute描述
  31 + type:
  32 + array: user
  33 + - name: credentials
  34 + description: 凭证
  35 + type:
  36 + primitive: string
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: loginByCompany
  5 + type: command
  6 + description: 用户按公司登录
  7 + payload:
  8 + - ref: userType
  9 + required: true
  10 + - name: credentials
  11 + description: 凭证
  12 + type:
  13 + primitive: string
  14 + required: true
  15 + - name: userId
  16 + description: 用户id
  17 + type:
  18 + primitive: int64
  19 + required: true
  20 + result:
  21 + - name: authCode
  22 + description: 授权码 auth2登录使用
  23 + type:
  24 + primitive: string
  25 + - name: token
  26 + description: token
  27 + type:
  28 + primitive: string
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: refreshToken
  5 + type: command
  6 + description: 更新授权令牌accessToken
  7 + payload:
  8 + - name: refreshToken
  9 + description: Attribute描述
  10 + type:
  11 + primitive: string
  12 + result:
  13 + - name: refreshToken
  14 + description: Attribute描述
  15 + type:
  16 + primitive: string
  17 + - name: accessToken
  18 + description: Attribute描述
  19 + type:
  20 + primitive: string
  21 + - name: expiresIn
  22 + description: Attribute描述
  23 + type:
  24 + primitive: string
  25 + - name: auth
  26 + type:
  27 + schema: auth
  1 +version: v1
  2 +kind: Service
  3 +metadata:
  4 + name: auth
  5 + description: 认证服务
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: company
  5 + type: query
  6 + description: 查询公司基础统计数据
  7 + payload:
  8 + - ref: companyId
  9 + required: true
  10 + result:
  11 + - name: statistics
  12 + type:
  13 + schema: any
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: order
  5 + type: query
  6 + description: 订单统计
  7 + payload:
  8 + result:
  9 + - name: statistics
  10 + description: 统计数据
  11 + type:
  12 + primitive: any
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: orderDividend
  5 + type: query
  6 + description: 订单分红统计
  7 + payload:
  8 + - name: startTime
  9 + description: 开始时间
  10 + type:
  11 + primitive: int
  12 + - name: endTime
  13 + description: 结束时间
  14 + type:
  15 + primitive: int
  16 + result:
  17 + - name: statistics
  18 + description: 统计数据
  19 + type:
  20 + primitive: any
  1 +version: v1
  2 +kind: Service
  3 +metadata:
  4 + name: statistics
  5 + description: 统计服务