>[info] 登錄成功后會返回 `登錄標識` 后續訪問需要登錄的接口,都需要在請求頭 `header` 里攜帶該 `登錄標識`
~~~[api]
post:/agent/login/index
*string:phone#手機號
*string:password#密碼
<<<
success
{
"code": 0,
"msg": "登錄成功",
"data": {
"id": 1,
"name": "張三",
"phone": "13800138000",
"area": "廣東省深圳市寶安區",
"address": "寶安國際機場",
"wechat": "weixin",
"qq": "qiuqiu",
"status": 1,
"update_time": "2021-01-29 16:07:03",
"create_time": "2021-01-25 13:41:55",
"login_token": "1@7de42ccfd50d9492a7dc5cff2839dfe4"
}
}
<<<
error
{
"code": 1,
"msg": "帳戶異常,請聯系管理員檢查帳戶狀態"
}
~~~
### 字段名
| 場景名 | 備注 |
| --- | --- |
| id | 用戶ID |
| name | 姓名 |
| phone | 手機號 |
| area | 所在區域 |
| address | 所在地址 |
| wechat | 微信號 |
| qq | QQ號 |
| login_token | 登錄標識 |