go-layout
https://github.com/wannanbigpig/gin-layout
  1. 日志管理
  • 接口说明
  • 无需授权接口
    • demo
      GET
    • 获取登录验证码
      GET
    • 管理员登录
      POST
    • ping
      GET
  • 需要授权接口
    • Common
      • 退出登录
      • 获取当前登录用户基本信息
      • 获取当前登录用户菜单
      • 上传文件
    • 管理员用户管理
      • 获取用户列表
      • 新增管理员
      • 更新管理员信息
      • 删除用户
      • 绑定角色
      • 获取管理员的完整手机号
      • 获取管理员的完整邮箱
      • 获取用户详情
    • 权限相关
      • 菜单管理
        • 菜单列表
        • 更新菜单
        • 菜单详情
        • 删除菜单
        • 更新全部菜单权限关系缓存
        • 创建菜单
      • 角色管理
        • 角色列表
        • 更新角色
        • 角色详情
        • 删除角色
        • 创建角色
      • 部门管理
        • 部门列表
        • 部门详情
        • 更新部门
        • 绑定角色
        • 删除部门
        • 创建部门
      • 接口管理
        • 编辑权限
        • 权限列表
    • 日志管理
      • 请求日志列表
        GET
      • 管理员登录日志列表
        GET
      • 请求日志详情
        GET
      • 登录日志详情
        GET
  1. 日志管理

请求日志列表

测试环境
http://127.0.0.1/admin/v1
测试环境
http://127.0.0.1/admin/v1
GET
http://127.0.0.1/admin/v1
/log/request/list
demo
最后修改时间:2025-11-27 07:43:07
获取当前登录管理员的用户信息

请求参数

Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************
Query 参数

返回响应

🟢200成功
application/json
Body

🟢200公共响应
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://127.0.0.1/admin/v1/log/request/list?page=1&per_page=4&operator_id=1' \
--header 'Authorization: Bearer <token>'
响应示例响应示例
200 - 成功示例
{
    "code": 0,
    "msg": "OK",
    "data": {
        "total": 143,
        "per_page": 4,
        "current_page": 1,
        "last_page": 36,
        "data": [
            {
                "id": 177,
                "request_id": "75616f8c-e78b-4973-9f36-6c1b8b9f5f26",
                "operator_id": 1,
                "ip": "127.0.0.1",
                "method": "GET",
                "base_url": "/admin/v1/permission/list",
                "operation_name": "接口列表",
                "operation_status": 0,
                "operation_status_name": "成功",
                "operator_account": "super_admin",
                "operator_name": "超级管理员",
                "response_status": 200,
                "execution_time": 8,
                "created_at": "2025-11-27 15:40:48"
            },
            {
                "id": 176,
                "request_id": "43a063f0-b2c7-4d97-94c2-cf969cb40e0d",
                "operator_id": 1,
                "ip": "127.0.0.1",
                "method": "POST",
                "base_url": "/admin/v1/permission/update",
                "operation_name": "更新接口",
                "operation_status": 0,
                "operation_status_name": "成功",
                "operator_account": "super_admin",
                "operator_name": "超级管理员",
                "response_status": 200,
                "execution_time": 17,
                "created_at": "2025-11-27 15:39:48"
            },
            {
                "id": 175,
                "request_id": "a7b7cc49-aa4e-4519-ac90-29dc64984c67",
                "operator_id": 1,
                "ip": "127.0.0.1",
                "method": "POST",
                "base_url": "/admin/v1/permission/edit",
                "operation_name": "/admin/v1/permission/edit",
                "operation_status": 404,
                "operation_status_name": "失败",
                "operator_account": "super_admin",
                "operator_name": "超级管理员",
                "response_status": 404,
                "execution_time": 39,
                "created_at": "2025-11-27 15:39:41"
            },
            {
                "id": 174,
                "request_id": "ae57b5fa-939b-429a-804a-9af5f8949c49",
                "operator_id": 1,
                "ip": "127.0.0.1",
                "method": "POST",
                "base_url": "/admin/v1/department/create",
                "operation_name": "新增部门",
                "operation_status": 0,
                "operation_status_name": "成功",
                "operator_account": "super_admin",
                "operator_name": "超级管理员",
                "response_status": 200,
                "execution_time": 11,
                "created_at": "2025-11-27 15:38:07"
            }
        ]
    },
    "cost": "13.941708ms",
    "request_id": "5d5bce5c-cdc3-4448-888c-e9f72b244e34"
}
修改于 2025-11-27 07:43:07
上一页
权限列表
下一页
管理员登录日志列表
Built with