|
|
version: v1
|
|
|
kind: Method
|
|
|
metadata:
|
|
|
name: login
|
|
|
type: query
|
|
|
description: 用户登录 返回有权限的公司列表
|
|
|
payload:
|
|
|
- name: phone
|
|
|
description: 手机号
|
|
|
type:
|
|
|
primitive: string
|
|
|
- name: grantType
|
|
|
description: signInPassword(密码登录) 或 signInCaptcha(验证码登录)或signInCredentials(凭证登录)
|
|
|
type:
|
|
|
primitive: string
|
|
|
- name: password
|
|
|
description: 密码(grantType = signInPassword)
|
|
|
type:
|
|
|
primitive: string
|
|
|
- name: captcha
|
|
|
description: 验证码(grantType = signInCaptcha)
|
|
|
type:
|
|
|
primitive: string
|
|
|
- name: credentials
|
|
|
description: 凭证(grantType = signInCredentials)
|
|
|
type:
|
|
|
primitive: string
|
|
|
result:
|
|
|
- name: users
|
|
|
description: Attribute描述
|
|
|
type:
|
|
|
array: user
|
|
|
- name: credentials
|
|
|
description: 凭证
|
|
|
type:
|
|
|
primitive: string |
...
|
...
|
|