企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
## 保存 #### 接口URL > {{baseUrl}}/cms/permission/menu/save #### 请求方式 > POST #### Content-Type > json #### 请求Header参数 | 参数 | 示例值 | 是否必填 | 参数描述 | | :-------- | :----- | :----- | :---- | | Content-Type | application/json | 选填 | - | #### 请求Body参数 ```javascript { "name": "管理员", "parentId": 0, "url": "管理员", "perms": "sys:user:add,sys:user:edit", "type": 1, "icon": "icon-edit", "orderNum": 1, "isShow": 0 } ``` ## 删除 #### 接口URL > {{baseUrl}}/cms/permission/menu/delete #### 请求方式 > POST #### Content-Type > json #### 请求Header参数 | 参数 | 示例值 | 是否必填 | 参数描述 | | :-------- | :----- | :----- | :---- | | Content-Type | application/json | 选填 | - | #### 请求Body参数 ```javascript { "ids":[2] } ``` ## 路由树 #### 接口URL > {{baseUrl}}/cms/permission/menu/get_route_tree #### 请求方式 > POST #### Content-Type > json #### 请求Header参数 | 参数 | 示例值 | 是否必填 | 参数描述 | | :-------- | :----- | :----- | :---- | | Content-Type | application/json | 选填 | - | #### 请求Body参数 ```javascript { "sysUserId": 1 } ``` ## 导航树 #### 接口URL > {{baseUrl}}/cms/permission/menu/get_nav_tree #### 请求方式 > POST #### Content-Type > json #### 请求Header参数 | 参数 | 示例值 | 是否必填 | 参数描述 | | :-------- | :----- | :----- | :---- | | Content-Type | application/json | 选填 | - | #### 请求Body参数 ```javascript { "sysUserId": 1 } ``` ## 菜单树 #### 接口URL > {{baseUrl}}/cms/permission/menu/get_menu_tree #### 请求方式 > POST #### Content-Type > json #### 请求Header参数 | 参数 | 示例值 | 是否必填 | 参数描述 | | :-------- | :----- | :----- | :---- | | Content-Type | application/json | 选填 | - | #### 请求Body参数 ```javascript { "sysUserId": 1 } ``` ## 用户权限列表 #### 接口URL > {{baseUrl}}/cms/permission/get_permits #### 请求方式 > POST #### Content-Type > json #### 请求Header参数 | 参数 | 示例值 | 是否必填 | 参数描述 | | :-------- | :----- | :----- | :---- | | Content-Type | application/json | 选填 | - | #### 请求Body参数 ```javascript { "sysUserId": 1 } ``` ## 角色下菜单列表 #### 接口URL > {{baseUrl}}/cms/permission/role/get_menus_by_roleid #### 请求方式 > POST #### Content-Type > json #### 请求Header参数 | 参数 | 示例值 | 是否必填 | 参数描述 | | :-------- | :----- | :----- | :---- | | Content-Type | application/json | 选填 | - | #### 请求Body参数 ```javascript { "roleId": 4 } ```