X-Token: ********************
{
"username": "账号",
"password": "密码"
}
curl --location --request POST 'http://api.xxx.com/auth/login' \
--header 'Accept: application/json' \
--header 'X-Form-Client;' \
--header 'Content-Type: application/json' \
--header 'X-Token;' \
--data-raw '{
"username": "账号",
"password": "密码"
}'
{
"msg": "string",
"data": {
"token": "string",
"exp": "string",
"expire": 0,
"user": {
"id": 0,
"username": "string",
"nickname": "string",
"email": "string",
"mobile": "string",
"password": "string",
"salt": "string",
"money": "string",
"score": 0,
"level": 0,
"exp": 0,
"avatar": "string",
"gender": 0,
"birthday": "string",
"introduction": "string",
"remark": "string",
"latest_time": null,
"login_time": "string",
"login_ip": "string",
"login_failed": 0,
"status": "string",
"create_time": null,
"update_time": 0,
"group": [
{
"user_id": 0,
"group_id": 0,
"parent_id": 0,
"name": "string",
"rules": "string"
}
],
"rule": [
{
"title": "string",
"id": 0,
"name": "string",
"parent_id": 0,
"route": "string",
"icon": "string",
"app": "string",
"type": 0,
"weigh": 0
}
],
"gender_text": "string"
}
},
"code": 0
}