登录
POST
/api/v1/auth/login请求参数
Body 参数application/json
No schema defined
示例
{
"userName": "Soybean",
"password": "123456"
}
示例代码
返回响应
成功(200)
Validation Error(422)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
string
必需
msg
string
必需
data
object
必需
token
string
必需
refreshToken
string
必需
示例
{
"code": "0000",
"msg": "OK",
"data": {
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjp7InVzZXJJZCI6MSwidXNlck5hbWUiOiJTb3liZWFuIiwidG9rZW5UeXBlIjoicmVmcmVzaFRva2VuIn0sImlhdCI6MTcxNTkyNTUzMywiZXhwIjoxNzE1OTY4NzMzfQ.fTPV9QKUuJ48T652SKqoNY4MAFrvIg5Prbo-YZ0LEHQ",
"refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjp7InVzZXJJZCI6MSwidXNlck5hbWUiOiJTb3liZWFuIiwidG9rZW5UeXBlIjoicmVmcmVzaFRva2VuIn0sImlhdCI6MTcxNTkyNTUzMywiZXhwIjoxNzE2NTMwMzMzfQ.PwHg3toAhav449ZWOcGRZxtLJR_ZssIRgEKSwCxkBs8"
}
}
最后修改时间: 5 个月前