| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180 |
- {
- "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": "数据对象"
- }
- }
- }
- }
- }
- }
|