~~~[api]
get:/index/User/account
<<<
success
{
"code": 0,
"msg": "获取成功",
"data": {
"id": 2,
"username": "jwj",
"name": "蒋先生",
"phone": "15988888888",
"email": "123456@qq.com",
"avatar": "\/xintuo\/images\/avatar.png",
"status": 1,
"create_time": "2020-04-29 15:31:07",
"update_time": "2020-04-29 15:31:07",
"login_time": "2020-08-27 16:24:18"
}
}
<<<
error
{
"code": 1,
"msg": "请先登录"
}
~~~
| 字段 | 说明 |
| --- | --- |
| username | 用户名 |
| name | 姓名 |
| phone | 手机号 |
| email | 邮箱 |
| avatar | 头像 |
| status | 状态 |
| create_time | 注册时间 |
| login_time | 登录时间 |