文档
测试

用户登录

POST
/login

接口描述

用户登录

请求参数

multipart/form-data
参数名
类型
描述
必填
type
int
1 为手机验证码登录,2 为账户名密码登录,必填
必填
phone
string
手机号,type 为 1 时必填
必填
code
string
验证码,type 为 1 时必填
必填
username
string
用户名,type 为 2 时必填
必填
password
string
密码,type 为 2 时必填
必填

响应参数

参数名
类型
描述
必填
code
int
0 为登录成功,1 为登录失败
必填
data
dict
数据
必填
token
string
若登录成功,返回 token 信息
必填
uuid
string
用户数据库唯一标识
必填
msg
string
描述信息
必填