go-layout
https://github.com/wannanbigpig/gin-layout
  1. 菜单管理
  • 接口说明
  • 无需授权接口
    • Demo 示例
      GET
    • 验证码
      GET
    • 登录
      POST
    • ping
      GET
    • readiness
      GET
    • 获取文件
      GET
  • 需要授权接口
    • Common
      • 退出登录
      • 获取当前用户信息
      • 获取用户权限信息
      • 上传文件
      • 检查 Token
    • 管理员用户管理
      • 管理员列表
      • 新增管理员
      • 更新管理员
      • 删除管理员
      • 绑定角色
      • 获取完整手机号
      • 获取完整邮箱
      • 管理员详情
      • 更新个人资料
    • 权限相关
      • 菜单管理
        • 菜单列表
          GET
        • 更新菜单
          POST
        • 菜单详情
          GET
        • 删除菜单
          POST
        • 刷新菜单权限缓存
          POST
        • 新增菜单
          POST
      • 角色管理
        • 角色列表
        • 更新角色
        • 角色详情
        • 删除角色
        • 新增角色
      • 部门管理
        • 部门列表
        • 部门详情
        • 新增部门
        • 更新部门
        • 部门绑定角色
        • 删除部门
      • 接口管理
        • 接口列表
        • 更新接口
    • 日志管理
      • 请求日志列表
      • 登录日志列表
      • 请求日志详情
      • 登录日志详情
      • 导出请求日志
      • 获取请求日志脱敏配置
      • 更新请求日志脱敏配置
    • system
      • 系统配置管理
        • 系统参数列表
        • 新增系统参数
        • 删除系统参数
        • 系统参数详情
        • 刷新系统参数缓存
        • 更新系统参数
        • 获取系统参数值
      • 字典管理
        • 新增字典项
        • 删除字典项
        • 字典项列表
        • 字典选项
        • 更新字典项
        • 新增字典类型
        • 删除字典类型
        • 字典类型详情
        • 字典类型列表
        • 更新字典类型
    • 任务中心
      • 定时任务最近状态
      • 任务定义列表
      • 取消任务
      • 任务执行记录详情
      • 任务执行记录列表
      • 重试失败任务
      • 手动触发任务
  1. 菜单管理

菜单列表

演示环境
https://admin-api.wannanbigpig.com/admin/v1
演示环境
https://admin-api.wannanbigpig.com/admin/v1
GET
https://admin-api.wannanbigpig.com/admin/v1
/menu/list
menu
最后修改时间:2026-04-23 09:37:08
菜单列表

请求参数

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

Header 参数

返回响应

🟢200成功
application/json
OK
Body

请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://admin-api.wannanbigpig.com/admin/v1/menu/list?page&per_page&keyword&is_auth&status' \
--header 'Accept-Language;' \
--header 'Accept-Language: zh-CN' \
--header 'Authorization: Bearer <token>'
响应示例响应示例
{
    "code": 0,
    "cost": "3.2ms",
    "data": {
        "result": [
            {
                "children_num": 0,
                "code": "",
                "component": "home/index.vue",
                "created_at": "2024-09-27 13:36:50",
                "description": "",
                "full_path": "/",
                "icon": "ep:menu",
                "id": 1,
                "is_auth": 0,
                "is_external_links": 0,
                "is_new_window": 0,
                "is_show": 1,
                "name": "Home",
                "path": "",
                "pid": 0,
                "redirect": "",
                "sort": 100,
                "status": 1,
                "status_name": "是",
                "title": "首页",
                "type": 2,
                "type_name": "菜单",
                "updated_at": "2025-11-15 14:36:40"
            },
            {
                "children": [
                    {
                        "children": [
                            {
                                "children_num": 0,
                                "code": "adminUser:list",
                                "component": "",
                                "created_at": "2025-11-25 17:20:23",
                                "description": "",
                                "full_path": "",
                                "icon": "ant-design:search-outlined",
                                "id": 34,
                                "is_auth": 1,
                                "is_external_links": 0,
                                "is_new_window": 0,
                                "is_show": 1,
                                "name": "",
                                "path": "",
                                "pid": 7,
                                "redirect": "",
                                "sort": 100,
                                "status": 1,
                                "status_name": "是",
                                "title": "列表",
                                "type": 3,
                                "type_name": "按钮",
                                "updated_at": "2025-11-25 17:20:23"
                            },
                            {
                                "children_num": 0,
                                "code": "adminUser:delete",
                                "component": "",
                                "created_at": "2025-11-15 10:06:52",
                                "description": "",
                                "full_path": "",
                                "icon": "ant-design:delete-outlined",
                                "id": 13,
                                "is_auth": 1,
                                "is_external_links": 0,
                                "is_new_window": 0,
                                "is_show": 1,
                                "name": "",
                                "path": "",
                                "pid": 7,
                                "redirect": "",
                                "sort": 100,
                                "status": 1,
                                "status_name": "是",
                                "title": "删除",
                                "type": 3,
                                "type_name": "按钮",
                                "updated_at": "2025-11-18 17:24:34"
                            },
                            {
                                "children_num": 0,
                                "code": "adminUser:bindRole",
                                "component": "",
                                "created_at": "2025-11-15 10:06:52",
                                "description": "",
                                "full_path": "",
                                "icon": "ant-design:user-switch-outlined",
                                "id": 12,
                                "is_auth": 1,
                                "is_external_links": 0,
                                "is_new_window": 0,
                                "is_show": 1,
                                "name": "",
                                "path": "",
                                "pid": 7,
                                "redirect": "",
                                "sort": 100,
                                "status": 1,
                                "status_name": "是",
                                "title": "绑定角色",
                                "type": 3,
                                "type_name": "按钮",
                                "updated_at": "2025-11-18 17:20:53"
                            }
                        ],
                        "children_num": 5,
                        "code": "",
                        "component": "permission/adminUser.vue",
                        "created_at": "2025-04-19 11:19:36",
                        "description": "",
                        "full_path": "/permission/admin-user-list",
                        "icon": "ep:user",
                        "id": 7,
                        "is_auth": 1,
                        "is_external_links": 0,
                        "is_new_window": 0,
                        "is_show": 1,
                        "name": "AdminUserList",
                        "path": "admin-user-list",
                        "pid": 2,
                        "redirect": "",
                        "sort": 120,
                        "status": 1,
                        "status_name": "是",
                        "title": "管理员",
                        "type": 2,
                        "type_name": "菜单",
                        "updated_at": "2025-11-25 17:20:23"
                    },
                    {
                        "children": [
                            {
                                "children_num": 0,
                                "code": "department:list",
                                "component": "",
                                "created_at": "2025-11-25 17:21:22",
                                "description": "",
                                "full_path": "",
                                "icon": "ant-design:search-outlined",
                                "id": 35,
                                "is_auth": 1,
                                "is_external_links": 0,
                                "is_new_window": 0,
                                "is_show": 1,
                                "name": "",
                                "path": "",
                                "pid": 9,
                                "redirect": "",
                                "sort": 100,
                                "status": 1,
                                "status_name": "是",
                                "title": "列表",
                                "type": 3,
                                "type_name": "按钮",
                                "updated_at": "2025-11-25 17:21:22"
                            },
                            {
                                "children_num": 0,
                                "code": "department:delete",
                                "component": "",
                                "created_at": "2025-11-15 10:06:52",
                                "description": "",
                                "full_path": "",
                                "icon": "ant-design:delete-outlined",
                                "id": 25,
                                "is_auth": 1,
                                "is_external_links": 0,
                                "is_new_window": 0,
                                "is_show": 1,
                                "name": "",
                                "path": "",
                                "pid": 9,
                                "redirect": "",
                                "sort": 100,
                                "status": 1,
                                "status_name": "是",
                                "title": "删除",
                                "type": 3,
                                "type_name": "按钮",
                                "updated_at": "2025-11-18 17:26:52"
                            },
                            {
                                "children_num": 0,
                                "code": "department:bindRole",
                                "component": "",
                                "created_at": "2025-11-15 10:06:52",
                                "description": "",
                                "full_path": "",
                                "icon": "ant-design:user-switch-outlined",
                                "id": 24,
                                "is_auth": 1,
                                "is_external_links": 0,
                                "is_new_window": 0,
                                "is_show": 1,
                                "name": "",
                                "path": "",
                                "pid": 9,
                                "redirect": "",
                                "sort": 100,
                                "status": 1,
                                "status_name": "是",
                                "title": "绑定角色",
                                "type": 3,
                                "type_name": "按钮",
                                "updated_at": "2025-11-18 17:27:57"
                            }
                        ],
                        "children_num": 6,
                        "code": "",
                        "component": "permission/department.vue",
                        "created_at": "2025-04-21 16:51:22",
                        "description": "",
                        "full_path": "/permission/department-list",
                        "icon": "tdesign:tree-square-dot",
                        "id": 9,
                        "is_auth": 1,
                        "is_external_links": 0,
                        "is_new_window": 0,
                        "is_show": 1,
                        "name": "DepartmentList",
                        "path": "department-list",
                        "pid": 2,
                        "redirect": "",
                        "sort": 115,
                        "status": 1,
                        "status_name": "是",
                        "title": "部门",
                        "type": 2,
                        "type_name": "菜单",
                        "updated_at": "2025-11-25 17:21:30"
                    },
                    {
                        "children": [
                            {
                                "children_num": 0,
                                "code": "role:list",
                                "component": "",
                                "created_at": "2025-11-25 17:22:13",
                                "description": "",
                                "full_path": "",
                                "icon": "ant-design:search-outlined",
                                "id": 36,
                                "is_auth": 1,
                                "is_external_links": 0,
                                "is_new_window": 0,
                                "is_show": 1,
                                "name": "",
                                "path": "",
                                "pid": 8,
                                "redirect": "",
                                "sort": 100,
                                "status": 1,
                                "status_name": "是",
                                "title": "列表",
                                "type": 3,
                                "type_name": "按钮",
                                "updated_at": "2025-11-25 17:22:13"
                            },
                            {
                                "children_num": 0,
                                "code": "role:addChild",
                                "component": "",
                                "created_at": "2025-11-17 17:46:21",
                                "description": "",
                                "full_path": "",
                                "icon": "ant-design:plus-circle-outlined",
                                "id": 28,
                                "is_auth": 1,
                                "is_external_links": 0,
                                "is_new_window": 0,
                                "is_show": 1,
                                "name": "",
                                "path": "",
                                "pid": 8,
                                "redirect": "",
                                "sort": 100,
                                "status": 1,
                                "status_name": "是",
                                "title": "新增",
                                "type": 3,
                                "type_name": "按钮",
                                "updated_at": "2025-11-18 17:41:45"
                            },
                            {
                                "children_num": 0,
                                "code": "role:delete",
                                "component": "",
                                "created_at": "2025-11-15 10:06:52",
                                "description": "",
                                "full_path": "",
                                "icon": "ant-design:delete-outlined",
                                "id": 20,
                                "is_auth": 1,
                                "is_external_links": 0,
                                "is_new_window": 0,
                                "is_show": 1,
                                "name": "",
                                "path": "",
                                "pid": 8,
                                "redirect": "",
                                "sort": 100,
                                "status": 1,
                                "status_name": "是",
                                "title": "删除",
                                "type": 3,
                                "type_name": "按钮",
                                "updated_at": "2025-11-18 17:32:12"
                            }
                        ],
                        "children_num": 5,
                        "code": "",
                        "component": "permission/role.vue",
                        "created_at": "2025-04-21 16:51:22",
                        "description": "",
                        "full_path": "/permission/role-list",
                        "icon": "ant-design:usergroup-add-outlined",
                        "id": 8,
                        "is_auth": 1,
                        "is_external_links": 0,
                        "is_new_window": 0,
                        "is_show": 1,
                        "name": "RoleList",
                        "path": "role-list",
                        "pid": 2,
                        "redirect": "",
                        "sort": 115,
                        "status": 1,
                        "status_name": "是",
                        "title": "角色",
                        "type": 2,
                        "type_name": "菜单",
                        "updated_at": "2025-11-25 17:22:21"
                    }
                ],
                "children_num": 0,
                "code": "",
                "component": "",
                "created_at": "2025-04-16 15:36:33",
                "description": "",
                "full_path": "/permission",
                "icon": "ant-design:lock-outlined",
                "id": 2,
                "is_auth": 1,
                "is_external_links": 0,
                "is_new_window": 0,
                "is_show": 1,
                "name": "Permission",
                "path": "permission",
                "pid": 0,
                "redirect": "AdminUserList",
                "sort": 99,
                "status": 1,
                "status_name": "是",
                "title": "权限管理",
                "type": 1,
                "type_name": "目录",
                "updated_at": "2025-04-22 18:16:25"
            },
            {
                "children": [
                    {
                        "children": [
                            {
                                "children_num": 0,
                                "code": "adminLoginLog:list",
                                "component": "",
                                "created_at": "2025-11-25 17:24:20",
                                "description": "",
                                "full_path": "",
                                "icon": "ant-design:search-outlined",
                                "id": 39,
                                "is_auth": 1,
                                "is_external_links": 0,
                                "is_new_window": 0,
                                "is_show": 1,
                                "name": "",
                                "path": "",
                                "pid": 31,
                                "redirect": "",
                                "sort": 100,
                                "status": 1,
                                "status_name": "是",
                                "title": "列表",
                                "type": 3,
                                "type_name": "按钮",
                                "updated_at": "2025-11-25 17:24:20"
                            },
                            {
                                "children_num": 0,
                                "code": "adminLoginLog:detail",
                                "component": "",
                                "created_at": "2025-11-22 11:48:10",
                                "description": "",
                                "full_path": "",
                                "icon": "ep:document",
                                "id": 32,
                                "is_auth": 1,
                                "is_external_links": 0,
                                "is_new_window": 0,
                                "is_show": 1,
                                "name": "",
                                "path": "",
                                "pid": 31,
                                "redirect": "",
                                "sort": 100,
                                "status": 1,
                                "status_name": "是",
                                "title": "详情",
                                "type": 3,
                                "type_name": "按钮",
                                "updated_at": "2025-11-22 11:48:10"
                            }
                        ],
                        "children_num": 2,
                        "code": "",
                        "component": "log/adminLogin.vue",
                        "created_at": "2025-11-20 16:16:47",
                        "description": "",
                        "full_path": "/log/admin-login-log",
                        "icon": "ep:document",
                        "id": 31,
                        "is_auth": 1,
                        "is_external_links": 0,
                        "is_new_window": 0,
                        "is_show": 1,
                        "name": "AdminLoginLog",
                        "path": "admin-login-log",
                        "pid": 29,
                        "redirect": "",
                        "sort": 100,
                        "status": 1,
                        "status_name": "是",
                        "title": "管理员登录日志",
                        "type": 2,
                        "type_name": "菜单",
                        "updated_at": "2025-11-25 17:24:30"
                    },
                    {
                        "children": [
                            {
                                "children_num": 0,
                                "code": "requestLog:list",
                                "component": "",
                                "created_at": "2025-11-25 17:25:04",
                                "description": "",
                                "full_path": "",
                                "icon": "ant-design:search-outlined",
                                "id": 40,
                                "is_auth": 1,
                                "is_external_links": 0,
                                "is_new_window": 0,
                                "is_show": 1,
                                "name": "",
                                "path": "",
                                "pid": 30,
                                "redirect": "",
                                "sort": 100,
                                "status": 1,
                                "status_name": "是",
                                "title": "列表",
                                "type": 3,
                                "type_name": "按钮",
                                "updated_at": "2025-11-25 17:25:04"
                            },
                            {
                                "children_num": 0,
                                "code": "requestLog:detail",
                                "component": "",
                                "created_at": "2025-11-22 11:48:44",
                                "description": "",
                                "full_path": "",
                                "icon": "ep:document",
                                "id": 33,
                                "is_auth": 1,
                                "is_external_links": 0,
                                "is_new_window": 0,
                                "is_show": 1,
                                "name": "",
                                "path": "",
                                "pid": 30,
                                "redirect": "",
                                "sort": 100,
                                "status": 1,
                                "status_name": "是",
                                "title": "详情",
                                "type": 3,
                                "type_name": "按钮",
                                "updated_at": "2025-11-22 11:48:44"
                            }
                        ],
                        "children_num": 2,
                        "code": "",
                        "component": "log/request.vue",
                        "created_at": "2025-11-20 16:14:39",
                        "description": "",
                        "full_path": "/log/request-log",
                        "icon": "ep:document",
                        "id": 30,
                        "is_auth": 1,
                        "is_external_links": 0,
                        "is_new_window": 0,
                        "is_show": 1,
                        "name": "RequestLog",
                        "path": "request-log",
                        "pid": 29,
                        "redirect": "",
                        "sort": 100,
                        "status": 1,
                        "status_name": "是",
                        "title": "请求日志",
                        "type": 2,
                        "type_name": "菜单",
                        "updated_at": "2025-11-25 17:25:13"
                    }
                ],
                "children_num": 2,
                "code": "",
                "component": "",
                "created_at": "2025-11-20 16:16:47",
                "description": "",
                "full_path": "/log",
                "icon": "ep:tickets",
                "id": 29,
                "is_auth": 1,
                "is_external_links": 0,
                "is_new_window": 0,
                "is_show": 1,
                "name": "Log",
                "path": "log",
                "pid": 0,
                "redirect": "RequestLog",
                "sort": 90,
                "status": 1,
                "status_name": "是",
                "title": "日志管理",
                "type": 1,
                "type_name": "目录",
                "updated_at": "2025-11-20 16:17:04"
            }
        ]
    },
    "msg": "OK",
    "request_id": "req_20260423_0001"
}
修改于 2026-04-23 09:37:08
上一页
更新个人资料
下一页
更新菜单
Built with