{ "openapi": "3.1.0", "info": { "title": "系统管理", "description": "系统管理—相关接口文档", "version": "1.0-SNAPSHOT" }, "paths": { "/menu": { "post": { "tags": ["菜单管理API"], "summary": "新增菜单", "operationId": "add_2", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SysMenu" } } }, "required": true }, "responses": { "200": { "description": "OK", "content": { "*/*": { "schema": { "$ref": "#/components/schemas/AjaxResult" } } } } } } } }, "components": { "schemas": { "SysMenu": { "type": "object", "description": "菜单权限对象", "properties": { "createIdBy": { "type": "integer", "format": "int64" }, "createBy": { "type": "string" }, "createTime": { "type": "string", "format": "date-time" }, "updateIdBy": { "type": "integer", "format": "int64" }, "updateBy": { "type": "string" }, "updateTime": { "type": "string", "format": "date-time" }, "remark": { "type": "string" }, "params": { "type": "object", "additionalProperties": {} }, "menuId": { "type": "integer", "format": "int64", "description": "菜单ID" }, "menuName": { "type": "string", "description": "菜单名称", "maxLength": 50, "minLength": 0 }, "parentName": { "type": "string", "description": "父菜单名称" }, "parentId": { "type": "integer", "format": "int64", "description": "父菜单ID" }, "orderNum": { "type": "integer", "format": "int32", "description": "显示顺序" }, "path": { "type": "string", "description": "路由地址", "maxLength": 200, "minLength": 0 }, "component": { "type": "string", "description": "组件路径", "maxLength": 200, "minLength": 0 }, "query": { "type": "string", "description": "路由参数" }, "routeName": { "type": "string", "description": "路由名称,默认和路由地址相同的驼峰格式" }, "isFrame": { "type": "string", "description": "是否为外链(0是 1否)" }, "isCache": { "type": "string", "description": "是否缓存(0缓存 1不缓存)" }, "menuType": { "type": "string", "description": "类型(M目录 C菜单 F按钮)", "minLength": 1 }, "visible": { "type": "string", "description": "显示状态(0显示 1隐藏)" }, "status": { "type": "string", "description": "菜单状态(0正常 1停用)" }, "perms": { "type": "string", "description": "权限字符串", "maxLength": 100, "minLength": 0 }, "icon": { "type": "string", "description": "菜单图标" }, "children": { "type": "array", "description": "子菜单", "items": { "$ref": "#/components/schemas/SysMenu" } } }, "required": ["menuName", "menuType", "orderNum"] }, "AjaxResult": { "type": "object", "description": "接口返回对象", "properties": { "code": { "type": "integer", "format": "int32", "description": "状态码" }, "msg": { "type": "string", "description": "提示语" }, "data": { "description": "数据对象" } } } } } }