~~~[api]
get:/index/user/myLog
string:ip=127.0.0.1#要搜索的IP地址
string:info=登录#要搜索的日志描述关键字
string:time=2020-08-01~2020-08-30#搜索日志产生时间
int:limit=15#每页显示数量
int:page=1#页码
<<<
success
{
"code": 0,
"msg": "获取成功",
"count": 36,
"data": [{
"id": 13,
"user_id": 2,
"type": "Login.login.success",
"info": "登录后台成功",
"ip": "14.144.15.33",
"agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/81.0.4044.138 Safari\/537.36 Edg\/81.0.416.72",
"status": 1,
"time": "2020-05-08 09:40:17",
"status_text": "成功"
}, {
"id": 22,
"user_id": 2,
"type": "Login.login.success",
"info": "登录后台成功",
"ip": "14.144.14.82",
"agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/81.0.4044.138 Safari\/537.36 Edg\/81.0.416.72",
"status": 1,
"time": "2020-05-13 10:19:02",
"status_text": "成功"
}, {
"id": 23,
"user_id": 2,
"type": "Login.login.success",
"info": "登录后台成功",
"ip": "14.144.14.82",
"agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/81.0.4044.138 Safari\/537.36 Edg\/81.0.416.72",
"status": 1,
"time": "2020-05-14 11:47:24",
"status_text": "成功"
}, {
"id": 113,
"user_id": 2,
"type": "Login.login.success",
"info": "登录后台成功",
"ip": "14.144.13.91",
"agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/81.0.4044.138 Safari\/537.36 Edg\/81.0.416.72",
"status": 1,
"time": "2020-05-16 09:43:04",
"status_text": "成功"
}, {
"id": 148,
"user_id": 2,
"type": "login.login.success",
"info": "登录后台成功",
"ip": "14.144.12.173",
"agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/81.0.4044.138 Safari\/537.36 Edg\/81.0.416.77",
"status": 1,
"time": "2020-05-20 09:47:18",
"status_text": "成功"
}],
"page": {
"current": 1,
"total": 8
}
}
<<<
error
{
"code": 1,
"msg": "请先登录"
}
~~~
| 字段 | 说明 |
| --- | --- |
| id | 日志ID |
| type | 日志类型 |
| info | 日志详情 |
| ip | 操作IP |
| agent | 浏览器UA |
| status_text | 状态文本 |
| time | 日志时间 |