登录路由信息
GET
/getRouters请求参数
无
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
msg
string
必需
data
array [object {6}]
路由数组
name
string
路由名称
path
string
路由地址
component
string
组件
- BasicLayout-基础布局组件标识 菜单类型-菜单D
- BlankLayout-空白布局组件标识 菜单类型-菜单M
- LinkLayout-内链接布局组件标识 菜单类型-菜单M
- 按钮菜单类型-菜单B 不会读取到路由中
meta
object
元数据
redirect
string
目录重定向
children
array [object {4}]
子菜单
示例
{
"code": 200,
"msg": "success",
"data": [
{
"name": "System_1",
"path": "/system",
"meta": {
"title": "系统管理",
"icon": "",
"cache": true,
"target": "",
"hideChildInMenu": false,
"hideInMenu": false
},
"component": "BasicLayout",
"redirect": "/system/user",
"children": [
{
"name": "User_100",
"path": "user",
"meta": {
"title": "用户管理",
"icon": "",
"cache": true,
"target": "",
"hideChildInMenu": false,
"hideInMenu": false
},
"component": "system/user/index"
},
{
"name": "Role_101",
"path": "role",
"meta": {
"title": "角色管理",
"icon": "",
"cache": true,
"target": "",
"hideChildInMenu": false,
"hideInMenu": false
},
"component": "system/role/index"
},
{
"name": "RoleInlineAuthUserRoleId_102",
"path": "role/inline/auth-user/:roleId",
"meta": {
"title": "分配角色",
"icon": "",
"cache": true,
"target": "",
"hideChildInMenu": false,
"hideInMenu": true
},
"component": "system/role/auth-user"
},
{
"name": "Menu_103",
"path": "menu",
"meta": {
"title": "菜单管理",
"icon": "",
"cache": true,
"target": "",
"hideChildInMenu": false,
"hideInMenu": false
},
"component": "system/menu/index"
},
{
"name": "Dept_104",
"path": "dept",
"meta": {
"title": "部门管理",
"icon": "",
"cache": true,
"target": "",
"hideChildInMenu": false,
"hideInMenu": false
},
"component": "system/dept/index"
},
{
"name": "Post_105",
"path": "post",
"meta": {
"title": "岗位管理",
"icon": "",
"cache": true,
"target": "",
"hideChildInMenu": false,
"hideInMenu": false
},
"component": "system/post/index"
},
{
"name": "Dict_106",
"path": "dict",
"meta": {
"title": "字典管理",
"icon": "",
"cache": true,
"target": "",
"hideChildInMenu": false,
"hideInMenu": false
},
"component": "system/dict/index"
},
{
"name": "DictInlineDataDictId_107",
"path": "dict/inline/data/:dictId",
"meta": {
"title": "字典数据",
"icon": "",
"cache": true,
"target": "",
"hideChildInMenu": false,
"hideInMenu": true
},
"component": "system/dict/data"
},
{
"name": "Config_108",
"path": "config",
"meta": {
"title": "参数设置",
"icon": "",
"cache": true,
"target": "",
"hideChildInMenu": false,
"hideInMenu": false
},
"component": "system/config/index"
},
{
"name": "Notice_109",
"path": "notice",
"meta": {
"title": "通知公告",
"icon": "",
"cache": true,
"target": "",
"hideChildInMenu": false,
"hideInMenu": false
},
"component": "system/notice/index"
},
{
"name": "Log_111",
"path": "log",
"meta": {
"title": "系统日志",
"icon": "",
"cache": true,
"target": "",
"hideChildInMenu": false,
"hideInMenu": false
},
"component": "BlankLayout",
"redirect": "/system/log/operate",
"children": [
{
"name": "Operate_500",
"path": "operate",
"meta": {
"title": "操作日志",
"icon": "",
"cache": true,
"target": "",
"hideChildInMenu": false,
"hideInMenu": false
},
"component": "system/log/operate/index"
},
{
"name": "Login_501",
"path": "login",
"meta": {
"title": "登录日志",
"icon": "",
"cache": true,
"target": "",
"hideChildInMenu": false,
"hideInMenu": false
},
"component": "system/log/login/index"
}
]
}
]
},
{
"name": "Monitor_2",
"path": "/monitor",
"meta": {
"title": "系统监控",
"icon": "",
"cache": true,
"target": "",
"hideChildInMenu": false,
"hideInMenu": false
},
"component": "BasicLayout",
"redirect": "/monitor/system-info",
"children": [
{
"name": "SystemInfo_112",
"path": "system-info",
"meta": {
"title": "系统信息",
"icon": "",
"cache": true,
"target": "",
"hideChildInMenu": false,
"hideInMenu": false
},
"component": "monitor/system/info"
},
{
"name": "CacheInfo_113",
"path": "cache-info",
"meta": {
"title": "缓存信息",
"icon": "",
"cache": true,
"target": "",
"hideChildInMenu": false,
"hideInMenu": false
},
"component": "monitor/cache/info"
},
{
"name": "Cache_114",
"path": "cache",
"meta": {
"title": "缓存管理",
"icon": "",
"cache": true,
"target": "",
"hideChildInMenu": false,
"hideInMenu": false
},
"component": "monitor/cache/index"
},
{
"name": "Online_115",
"path": "online",
"meta": {
"title": "在线用户",
"icon": "",
"cache": true,
"target": "",
"hideChildInMenu": false,
"hideInMenu": false
},
"component": "monitor/online/index"
},
{
"name": "Job_116",
"path": "job",
"meta": {
"title": "调度任务",
"icon": "",
"cache": true,
"target": "",
"hideChildInMenu": false,
"hideInMenu": false
},
"component": "monitor/job/index"
},
{
"name": "JobInlineLogJobId_117",
"path": "job/inline/log/:jobId",
"meta": {
"title": "调度日志",
"icon": "",
"cache": true,
"target": "",
"hideChildInMenu": false,
"hideInMenu": true
},
"component": "monitor/job/log"
}
]
},
{
"name": "Tool_3",
"path": "/tool",
"meta": {
"title": "系统工具",
"icon": "",
"cache": true,
"target": "",
"hideChildInMenu": false,
"hideInMenu": false
},
"component": "BasicLayout",
"redirect": "/tool/swagger",
"children": [
{
"name": "Swagger_118",
"path": "swagger",
"meta": {
"title": "系统接口",
"icon": "",
"cache": true,
"target": "",
"hideChildInMenu": false,
"hideInMenu": false
},
"component": "tool/swagger/index"
}
]
},
{
"name": "HttpsLink4",
"path": "https://gitee.com/TsMask",
"meta": {
"title": "开源仓库",
"icon": "",
"cache": false,
"target": "_blank",
"hideChildInMenu": false,
"hideInMenu": false
},
"component": "BasicLayout"
}
]
}
修改于 10 个月前