xinadmin
首页XinAdmin
首页XinAdmin
  1. 系统用户
  • 后台接口
    • 系统用户接口
      • 系统用户
        • 后台登录
          POST
        • 退出登录
          POST
        • 获取用户信息
          GET
        • 更新用户信息
          PUT
        • 修改密码
          PUT
        • 上传头像
          POST
        • 登录日志
          GET
      • 用户列表
        • 获取系统用户列表
        • 新增系统用户
        • 修改系统用户信息
        • 删除系统用户
        • 重置用户密码
        • 修改用户状态
      • 用户权限
        • 获取权限列表
        • 新增权限
        • 编辑权限
        • 删除权限
        • 获取父级权限
        • 设置显示状态
        • 设置启用状态
      • 用户部门
        • 获取部门列表
        • 新增部门
        • 编辑部门信息
        • 删除部门
      • 用户角色
        • 获取权限列表
        • 新建角色
        • 编辑角色信息
        • 删除角色
        • 设置角色权限
    • 系统设置接口
      • 查询系统设置列表
      • 新增系统设置
      • 修改系统设置
      • 删除系统设置
      • 保存设置
      • 刷新设置缓存
      • 查询设置分组列表
      • 新增设置分组
      • 修改设置分组信息
      • 删除设置分组
    • 系统监控接口
      • 请求监控列表
      • 授权监控列表
      • SQL监控列表
      • 缓存监控列表
      • Redis监控列表
    • 文件管理接口
    • 系统字典接口
      • 获取字典列表
      • 新增字典
      • 更新字典
      • 删除字典
      • 获取字典
      • 获取字典项
      • 新增字典项
      • 修改字典项
      • 删除字典项
  • APP接口
    • APP基础接口
      • 获取首页信息
      • APP用户登录
      • APP用户注册
    • APP用户接口
      • 获取用户信息
  1. 系统用户

获取用户信息

GET
/admin/info

请求参数

Header 参数

返回响应

🟢200成功
application/json
Body

请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://127.0.0.1:8000/admin/info' \
--header 'Authorization: Bearer '
响应示例响应示例
{
    "data": {
        "access": [
            "dashboard",
            "dashboard.analysis",
            "dashboard.monitor",
            "dashboard.workplace",
            "result",
            "result.success",
            "result.fail",
            "result.warning",
            "result.info",
            "exception",
            "exception.403",
            "exception.404",
            "exception.500",
            "auth",
            "auth.page",
            "auth.button",
            "auth.button.create",
            "auth.button.update",
            "auth.button.delete",
            "auth.button.query",
            "multi-menu",
            "multi-menu.first",
            "multi-menu.two",
            "multi-menu.two.second",
            "multi-menu.two.three",
            "multi-menu.two.three.third",
            "page-layout",
            "page-layout.base-layout",
            "page-layout.fix-header",
            "page-layout.descriptions",
            "user",
            "user.info",
            "user.setting",
            "user.setting.info",
            "user.setting.security",
            "user.setting.verification",
            "system",
            "system.info",
            "system.monitor",
            "system.rule",
            "system.rule.query",
            "system.rule.create",
            "system.rule.update",
            "system.rule.delete",
            "xin-admin"
        ],
        "menus": [
            {
                "id": 1,
                "pid": 0,
                "type": "menu",
                "key": "dashboard",
                "name": "仪表盘",
                "path": "",
                "icon": "PieChartOutlined",
                "elementPath": "",
                "order": 0,
                "local": "menu.dashboard",
                "hidden": 1,
                "link": 0,
                "children": [
                    {
                        "id": 2,
                        "pid": 1,
                        "type": "route",
                        "key": "dashboard.analysis",
                        "name": "分析页",
                        "path": "/dashboard/analysis",
                        "icon": "PieChartOutlined",
                        "elementPath": "/dashboard/analysis",
                        "order": 0,
                        "local": "menu.analysis",
                        "hidden": 1,
                        "link": 0
                    },
                    {
                        "id": 3,
                        "pid": 1,
                        "type": "route",
                        "key": "dashboard.monitor",
                        "name": "监控页",
                        "path": "/dashboard/monitor",
                        "icon": "BarChartOutlined",
                        "elementPath": "/dashboard/monitor",
                        "order": 1,
                        "local": "menu.monitor",
                        "hidden": 1,
                        "link": 0
                    },
                    {
                        "id": 4,
                        "pid": 1,
                        "type": "route",
                        "key": "dashboard.workplace",
                        "name": "工作台",
                        "path": "/dashboard/workplace",
                        "icon": "LineChartOutlined",
                        "elementPath": "/dashboard/workplace",
                        "order": 1,
                        "local": "menu.workplace",
                        "hidden": 1,
                        "link": 0
                    }
                ]
            },
            {
                "id": 5,
                "pid": 0,
                "type": "menu",
                "key": "result",
                "name": "结果页面",
                "path": "",
                "icon": "CheckCircleOutlined",
                "elementPath": "",
                "order": 1,
                "local": "menu.result",
                "hidden": 1,
                "link": 0,
                "children": [
                    {
                        "id": 6,
                        "pid": 5,
                        "type": "route",
                        "key": "result.success",
                        "name": "成功页",
                        "path": "/result/success",
                        "icon": "CheckCircleOutlined",
                        "elementPath": "/result/success",
                        "order": 0,
                        "local": "menu.result.success",
                        "hidden": 1,
                        "link": 0
                    },
                    {
                        "id": 7,
                        "pid": 5,
                        "type": "route",
                        "key": "result.fail",
                        "name": "失败页",
                        "path": "/result/fail",
                        "icon": "CloseCircleOutlined",
                        "elementPath": "/result/fail",
                        "order": 1,
                        "local": "menu.result.fail",
                        "hidden": 1,
                        "link": 0
                    },
                    {
                        "id": 8,
                        "pid": 5,
                        "type": "route",
                        "key": "result.warning",
                        "name": "警告页",
                        "path": "/result/warning",
                        "icon": "WarningOutlined",
                        "elementPath": "/result/warning",
                        "order": 2,
                        "local": "menu.result.warning",
                        "hidden": 1,
                        "link": 0
                    },
                    {
                        "id": 9,
                        "pid": 5,
                        "type": "route",
                        "key": "result.info",
                        "name": "信息页",
                        "path": "/result/info",
                        "icon": "ExclamationCircleOutlined",
                        "elementPath": "/result/info",
                        "order": 3,
                        "local": "menu.result.info",
                        "hidden": 1,
                        "link": 0
                    }
                ]
            },
            {
                "id": 10,
                "pid": 0,
                "type": "menu",
                "key": "exception",
                "name": "异常页面",
                "path": "",
                "icon": "AlertOutlined",
                "elementPath": "",
                "order": 2,
                "local": "menu.exception",
                "hidden": 1,
                "link": 0,
                "children": [
                    {
                        "id": 11,
                        "pid": 10,
                        "type": "route",
                        "key": "exception.403",
                        "name": "403",
                        "path": "/exception/403",
                        "icon": "AppstoreOutlined",
                        "elementPath": "/exception/403",
                        "order": 0,
                        "local": "menu.exception.403",
                        "hidden": 1,
                        "link": 0
                    },
                    {
                        "id": 12,
                        "pid": 10,
                        "type": "route",
                        "key": "exception.404",
                        "name": "404",
                        "path": "/exception/404",
                        "icon": "AppstoreOutlined",
                        "elementPath": "/exception/404",
                        "order": 1,
                        "local": "menu.exception.404",
                        "hidden": 1,
                        "link": 0
                    },
                    {
                        "id": 13,
                        "pid": 10,
                        "type": "route",
                        "key": "exception.500",
                        "name": "500",
                        "path": "/exception/500",
                        "icon": "AppstoreOutlined",
                        "elementPath": "/exception/500",
                        "order": 2,
                        "local": "menu.exception.500",
                        "hidden": 1,
                        "link": 0
                    }
                ]
            },
            {
                "id": 14,
                "pid": 0,
                "type": "menu",
                "key": "auth",
                "name": "权限管理",
                "path": "",
                "icon": "SafetyCertificateOutlined",
                "elementPath": "",
                "order": 3,
                "local": "menu.auth",
                "hidden": 1,
                "link": 0,
                "children": [
                    {
                        "id": 15,
                        "pid": 14,
                        "type": "route",
                        "key": "auth.page",
                        "name": "页面权限",
                        "path": "/auth/page",
                        "icon": "AppstoreOutlined",
                        "elementPath": "/auth/page",
                        "order": 0,
                        "local": "menu.auth.page",
                        "hidden": 1,
                        "link": 0
                    },
                    {
                        "id": 16,
                        "pid": 14,
                        "type": "route",
                        "key": "auth.button",
                        "name": "按钮权限",
                        "path": "/auth/button",
                        "icon": "AppstoreOutlined",
                        "elementPath": "/auth/button",
                        "order": 1,
                        "local": "menu.auth.button",
                        "hidden": 1,
                        "link": 0
                    }
                ]
            },
            {
                "id": 21,
                "pid": 0,
                "type": "menu",
                "key": "multi-menu",
                "name": "多级菜单",
                "path": "",
                "icon": "MenuOutlined",
                "elementPath": "",
                "order": 4,
                "local": "menu.multi-menu",
                "hidden": 1,
                "link": 0,
                "children": [
                    {
                        "id": 22,
                        "pid": 21,
                        "type": "route",
                        "key": "multi-menu.first",
                        "name": "二级页面",
                        "path": "/multi-menu/first",
                        "icon": "MenuOutlined",
                        "elementPath": "/multi-menu/first",
                        "order": 0,
                        "local": "menu.multi-menu.first",
                        "hidden": 1,
                        "link": 0
                    },
                    {
                        "id": 23,
                        "pid": 21,
                        "type": "menu",
                        "key": "multi-menu.two",
                        "name": "二级菜单",
                        "path": "",
                        "icon": "MenuOutlined",
                        "elementPath": "",
                        "order": 1,
                        "local": "menu.multi-menu.two",
                        "hidden": 1,
                        "link": 0,
                        "children": [
                            {
                                "id": 24,
                                "pid": 23,
                                "type": "route",
                                "key": "multi-menu.two.second",
                                "name": "三级页面",
                                "path": "/multi-menu/two/second",
                                "icon": "MenuOutlined",
                                "elementPath": "/multi-menu/second",
                                "order": 0,
                                "local": "menu.multi-menu.two.second",
                                "hidden": 1,
                                "link": 0
                            },
                            {
                                "id": 25,
                                "pid": 23,
                                "type": "menu",
                                "key": "multi-menu.two.three",
                                "name": "三级菜单",
                                "path": "",
                                "icon": "MenuOutlined",
                                "elementPath": "",
                                "order": 1,
                                "local": "menu.multi-menu.two.three",
                                "hidden": 1,
                                "link": 0,
                                "children": [
                                    {
                                        "id": 26,
                                        "pid": 25,
                                        "type": "route",
                                        "key": "multi-menu.two.three.third",
                                        "name": "四级页面",
                                        "path": "/multi-menu/two/three/third",
                                        "icon": "MenuOutlined",
                                        "elementPath": "/multi-menu/third",
                                        "order": 0,
                                        "local": "menu.multi-menu.two.three.third",
                                        "hidden": 1,
                                        "link": 0
                                    }
                                ]
                            }
                        ]
                    }
                ]
            },
            {
                "id": 27,
                "pid": 0,
                "type": "menu",
                "key": "page-layout",
                "name": "页面布局",
                "path": "",
                "icon": "LayoutOutlined",
                "elementPath": "",
                "order": 5,
                "local": "menu.page-layout",
                "hidden": 1,
                "link": 0,
                "children": [
                    {
                        "id": 28,
                        "pid": 27,
                        "type": "route",
                        "key": "page-layout.base-layout",
                        "name": "基础布局",
                        "path": "/page-layout/base-layout",
                        "icon": "AppstoreOutlined",
                        "elementPath": "/page-layout/base-layout",
                        "order": 0,
                        "local": "menu.page-layout.base-layout",
                        "hidden": 1,
                        "link": 0
                    },
                    {
                        "id": 29,
                        "pid": 27,
                        "type": "route",
                        "key": "page-layout.fix-header",
                        "name": "固定头部",
                        "path": "/page-layout/fix-header",
                        "icon": "AppstoreOutlined",
                        "elementPath": "/page-layout/fix-header",
                        "order": 1,
                        "local": "menu.page-layout.fix-header",
                        "hidden": 1,
                        "link": 0
                    },
                    {
                        "id": 30,
                        "pid": 27,
                        "type": "route",
                        "key": "page-layout.descriptions",
                        "name": "页面描述",
                        "path": "/page-layout/descriptions",
                        "icon": "AppstoreOutlined",
                        "elementPath": "/page-layout/descriptions",
                        "order": 2,
                        "local": "menu.page-layout.descriptions",
                        "hidden": 1,
                        "link": 0
                    }
                ]
            },
            {
                "id": 31,
                "pid": 0,
                "type": "menu",
                "key": "user",
                "name": "个人中心",
                "path": "",
                "icon": "UserOutlined",
                "elementPath": "",
                "order": 6,
                "local": "menu.user",
                "hidden": 1,
                "link": 0,
                "children": [
                    {
                        "id": 32,
                        "pid": 31,
                        "type": "route",
                        "key": "user.info",
                        "name": "个人中心",
                        "path": "/user/index",
                        "icon": "UserOutlined",
                        "elementPath": "/user/index",
                        "order": 0,
                        "local": "menu.user.index",
                        "hidden": 1,
                        "link": 0
                    },
                    {
                        "id": 33,
                        "pid": 31,
                        "type": "route",
                        "key": "user.setting",
                        "name": "用户设置",
                        "path": "/user/setting",
                        "icon": "UserSwitchOutlined",
                        "elementPath": "/user/setting/index",
                        "order": 1,
                        "local": "menu.user.setting",
                        "hidden": 1,
                        "link": 0,
                        "children": [
                            {
                                "id": 34,
                                "pid": 33,
                                "type": "nested-route",
                                "key": "user.setting.info",
                                "name": "基本信息",
                                "path": "/user/setting",
                                "icon": "",
                                "elementPath": "/user/setting/info",
                                "order": 0,
                                "local": "",
                                "hidden": 1,
                                "link": 0
                            },
                            {
                                "id": 35,
                                "pid": 33,
                                "type": "nested-route",
                                "key": "user.setting.security",
                                "name": "安全设置",
                                "path": "/user/setting/security",
                                "icon": "",
                                "elementPath": "/user/setting/security",
                                "order": 1,
                                "local": "",
                                "hidden": 1,
                                "link": 0
                            },
                            {
                                "id": 36,
                                "pid": 33,
                                "type": "nested-route",
                                "key": "user.setting.verification",
                                "name": "实名认证",
                                "path": "/user/setting/verification",
                                "icon": "",
                                "elementPath": "/user/setting/verification",
                                "order": 2,
                                "local": "",
                                "hidden": 1,
                                "link": 0
                            }
                        ]
                    }
                ]
            },
            {
                "id": 37,
                "pid": 0,
                "type": "menu",
                "key": "system",
                "name": "系统设置",
                "path": "",
                "icon": "SettingOutlined",
                "elementPath": "",
                "order": 7,
                "local": "menu.system",
                "hidden": 1,
                "link": 0,
                "children": [
                    {
                        "id": 38,
                        "pid": 37,
                        "type": "route",
                        "key": "system.info",
                        "name": "系统信息",
                        "path": "/system/info",
                        "icon": "",
                        "elementPath": "/system/info",
                        "order": 0,
                        "local": "menu.system.info",
                        "hidden": 1,
                        "link": 0
                    },
                    {
                        "id": 39,
                        "pid": 37,
                        "type": "route",
                        "key": "system.monitor",
                        "name": "系统监控",
                        "path": "/system/monitor",
                        "icon": "",
                        "elementPath": "/system/monitor",
                        "order": 1,
                        "local": "menu.system.monitor",
                        "hidden": 1,
                        "link": 0
                    },
                    {
                        "id": 40,
                        "pid": 37,
                        "type": "route",
                        "key": "system.rule",
                        "name": "菜单权限",
                        "path": "/system/rule",
                        "icon": "",
                        "elementPath": "/system/rule",
                        "order": 2,
                        "local": "menu.system.rule",
                        "hidden": 1,
                        "link": 0
                    }
                ]
            },
            {
                "id": 45,
                "pid": 0,
                "type": "menu",
                "key": "xin-admin",
                "name": "XinAdmin",
                "path": "https://xinadmin.cn",
                "icon": "LinkOutlined",
                "elementPath": "",
                "order": 8,
                "local": "menu.xin-admin",
                "hidden": 1,
                "link": 1
            }
        ],
        "info": {
            "id": 1,
            "username": "admin",
            "nickname": "admin",
            "avatar_id": 1,
            "sex": 0,
            "mobile": "",
            "email": "2wsliwBmPG@example.com",
            "email_verified_at": "2025-09-25T07:09:25.000000Z",
            "dept_id": 1,
            "login_ip": "127.0.0.1",
            "login_time": "2025-09-25T07:10:13.000000Z",
            "status": 1,
            "created_at": "2025-09-25T07:09:24.000000Z",
            "updated_at": "2025-09-25T07:10:13.000000Z"
        }
    },
    "success": true,
    "msg": "ok",
    "showType": 0
}
修改于 2025-09-10 06:35:55
上一页
退出登录
下一页
更新用户信息
Built with