获取Token
GET
/api/userLogin暂无描述
请求参数
Query Params
username
string
required
用户名
Example:
admin
password
string
required
用户密码(用户密码与用户密钥 随便传入一个即可,不得同时传入)
Example:
123456
key
string
required
用户密钥(Secret Key) 非MD5后的Secret Key(用户密钥与用户密码 随便传入一个即可,不得同时传入)
Example:
gKl8etJJQ8OK0hEQ
示例代码
Responses
成功(200)
错误(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
Data Schema
code
integer
required
状态码 1为成功,0为失败
msg
string
提示信息
示例:登录成功
token
string
Token值
示例:eyJ0eXAiOiJKd3QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6MSwidXNlcm5hbWUiOiJhZG1pbiIsInBhc3N3b3JkIjoiJDJ5JDEwJElHSUZ4Slp0QzBpdW8zRmlMZ3VYbU91MWxjcFN0UkpUdUtyQmlcL1kyXC93RWl0Z25wNHkySjYiLCJrZXkiOiJnS2w4ZXRKSlE4T0swaEVRIiwibW9uZXkiOiIwLjMxIn0.IEf3hNTL1fyVeepzypVireGT4XYX7kVhA3oJO3qk2jY
Example
{
"code": 1,
"msg": "登录成功",
"token": "eyJ0eXAiOiJKd3QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6MSwidXNlcm5hbWUiOiJhZG1pbiIsInBhc3N3b3JkIjoiJDJ5JDEwJElHSUZ4Slp0QzBpdW8zRmlMZ3VYbU91MWxjcFN0UkpUdUtyQmlcL1kyXC93RWl0Z25wNHkySjYiLCJrZXkiOiJnS2w4ZXRKSlE4T0swaEVRIiwibW9uZXkiOiIwLjMxIn0.i2O6GsvgEEZBSYBcqFClR3ozXFJvsEwPBYxlfPcHZDA"
}
Last modified: 9 个月前