用户登录
POST
/api/user-service/v1/login请求参数
Body 参数application/json
usernameOrMailOrPhone
string
用户名/邮箱/手机号码
password
string
密码
示例
{
"usernameOrMailOrPhone": "machen",
"password": "doloreexcupidatat"
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
string
必需
message
null
必需
data
object
必需
username
string
必需
realName
string
必需
accessToken
string
必需
requestId
null
必需
success
boolean
必需
示例
{
"code": "0",
"message": null,
"data": {
"username": "machen",
"realName": "马称",
"accessToken": "eyJhbGciOiJIUzUxMiJ9.eyJpYXQiOjE2ODU1MzEzNzYsImlzcyI6ImNvbmdvLW1hbGwiLCJzdWIiOiJ7XCJwYXNzd29yZFwiOlwiMTIzNDU2XCIsXCJ1c2VybmFtZVwiOlwibWFjaGVuXCJ9IiwiZXhwIjoxNjg1NjE3Nzc2fQ.c1lzQt5phI0EHGhZaEfITV4eogs-l-KXhRUfvZonAK6xH1EGw7uoeFVDiK5eC4O_oA864GNPb5MqsRObhNTpkg"
},
"requestId": null,
"success": true
}
最后修改时间: 1 年前