|
|
@ -1554,7 +1554,9 @@ var doc = `{ |
|
|
|
} |
|
|
|
], |
|
|
|
"responses": { |
|
|
|
"200": {} |
|
|
|
"200": { |
|
|
|
"description": "" |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
@ -1587,7 +1589,9 @@ var doc = `{ |
|
|
|
} |
|
|
|
], |
|
|
|
"responses": { |
|
|
|
"200": {} |
|
|
|
"200": { |
|
|
|
"description": "" |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
@ -1944,7 +1948,7 @@ var doc = `{ |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
"/menu/GetMenuAuthority": { |
|
|
|
"/menu/addBaseMenu": { |
|
|
|
"post": { |
|
|
|
"security": [ |
|
|
|
{ |
|
|
@ -1958,23 +1962,23 @@ var doc = `{ |
|
|
|
"application/json" |
|
|
|
], |
|
|
|
"tags": [ |
|
|
|
"AuthorityMenu" |
|
|
|
"Menu" |
|
|
|
], |
|
|
|
"summary": "获取指定角色menu", |
|
|
|
"summary": "新增菜单", |
|
|
|
"parameters": [ |
|
|
|
{ |
|
|
|
"description": "角色ID", |
|
|
|
"description": "路由path, 父菜单ID, 路由name, 对应前端文件路径, 排序标记", |
|
|
|
"name": "data", |
|
|
|
"in": "body", |
|
|
|
"required": true, |
|
|
|
"schema": { |
|
|
|
"$ref": "#/definitions/request.GetAuthorityId" |
|
|
|
"$ref": "#/definitions/system.SysBaseMenu" |
|
|
|
} |
|
|
|
} |
|
|
|
], |
|
|
|
"responses": { |
|
|
|
"200": { |
|
|
|
"description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", |
|
|
|
"description": "{\"success\":true,\"data\":{},\"msg\":\"添加成功\"}", |
|
|
|
"schema": { |
|
|
|
"type": "string" |
|
|
|
} |
|
|
@ -1982,7 +1986,7 @@ var doc = `{ |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
"/menu/addBaseMenu": { |
|
|
|
"/menu/addMenuAuthority": { |
|
|
|
"post": { |
|
|
|
"security": [ |
|
|
|
{ |
|
|
@ -1996,17 +2000,17 @@ var doc = `{ |
|
|
|
"application/json" |
|
|
|
], |
|
|
|
"tags": [ |
|
|
|
"Menu" |
|
|
|
"AuthorityMenu" |
|
|
|
], |
|
|
|
"summary": "新增菜单", |
|
|
|
"summary": "增加menu和角色关联关系", |
|
|
|
"parameters": [ |
|
|
|
{ |
|
|
|
"description": "路由path, 父菜单ID, 路由name, 对应前端文件路径, 排序标记", |
|
|
|
"description": "角色ID", |
|
|
|
"name": "data", |
|
|
|
"in": "body", |
|
|
|
"required": true, |
|
|
|
"schema": { |
|
|
|
"$ref": "#/definitions/system.SysBaseMenu" |
|
|
|
"$ref": "#/definitions/request.AddMenuAuthorityInfo" |
|
|
|
} |
|
|
|
} |
|
|
|
], |
|
|
@ -2020,7 +2024,7 @@ var doc = `{ |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
"/menu/addMenuAuthority": { |
|
|
|
"/menu/deleteBaseMenu": { |
|
|
|
"post": { |
|
|
|
"security": [ |
|
|
|
{ |
|
|
@ -2034,23 +2038,23 @@ var doc = `{ |
|
|
|
"application/json" |
|
|
|
], |
|
|
|
"tags": [ |
|
|
|
"AuthorityMenu" |
|
|
|
"Menu" |
|
|
|
], |
|
|
|
"summary": "增加menu和角色关联关系", |
|
|
|
"summary": "删除菜单", |
|
|
|
"parameters": [ |
|
|
|
{ |
|
|
|
"description": "角色ID", |
|
|
|
"description": "菜单id", |
|
|
|
"name": "data", |
|
|
|
"in": "body", |
|
|
|
"required": true, |
|
|
|
"schema": { |
|
|
|
"$ref": "#/definitions/request.AddMenuAuthorityInfo" |
|
|
|
"$ref": "#/definitions/request.GetById" |
|
|
|
} |
|
|
|
} |
|
|
|
], |
|
|
|
"responses": { |
|
|
|
"200": { |
|
|
|
"description": "{\"success\":true,\"data\":{},\"msg\":\"添加成功\"}", |
|
|
|
"description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", |
|
|
|
"schema": { |
|
|
|
"type": "string" |
|
|
|
} |
|
|
@ -2058,7 +2062,7 @@ var doc = `{ |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
"/menu/deleteBaseMenu": { |
|
|
|
"/menu/getBaseMenuById": { |
|
|
|
"post": { |
|
|
|
"security": [ |
|
|
|
{ |
|
|
@ -2074,7 +2078,7 @@ var doc = `{ |
|
|
|
"tags": [ |
|
|
|
"Menu" |
|
|
|
], |
|
|
|
"summary": "删除菜单", |
|
|
|
"summary": "根据id获取菜单", |
|
|
|
"parameters": [ |
|
|
|
{ |
|
|
|
"description": "菜单id", |
|
|
@ -2088,7 +2092,7 @@ var doc = `{ |
|
|
|
], |
|
|
|
"responses": { |
|
|
|
"200": { |
|
|
|
"description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", |
|
|
|
"description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", |
|
|
|
"schema": { |
|
|
|
"type": "string" |
|
|
|
} |
|
|
@ -2096,31 +2100,28 @@ var doc = `{ |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
"/menu/getBaseMenuById": { |
|
|
|
"/menu/getBaseMenuTree": { |
|
|
|
"post": { |
|
|
|
"security": [ |
|
|
|
{ |
|
|
|
"ApiKeyAuth": [] |
|
|
|
} |
|
|
|
], |
|
|
|
"consumes": [ |
|
|
|
"application/json" |
|
|
|
], |
|
|
|
"produces": [ |
|
|
|
"application/json" |
|
|
|
], |
|
|
|
"tags": [ |
|
|
|
"Menu" |
|
|
|
"AuthorityMenu" |
|
|
|
], |
|
|
|
"summary": "根据id获取菜单", |
|
|
|
"summary": "获取用户动态路由", |
|
|
|
"parameters": [ |
|
|
|
{ |
|
|
|
"description": "菜单id", |
|
|
|
"description": "空", |
|
|
|
"name": "data", |
|
|
|
"in": "body", |
|
|
|
"required": true, |
|
|
|
"schema": { |
|
|
|
"$ref": "#/definitions/request.GetById" |
|
|
|
"$ref": "#/definitions/request.Empty" |
|
|
|
} |
|
|
|
} |
|
|
|
], |
|
|
@ -2134,7 +2135,7 @@ var doc = `{ |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
"/menu/getBaseMenuTree": { |
|
|
|
"/menu/getMenu": { |
|
|
|
"post": { |
|
|
|
"security": [ |
|
|
|
{ |
|
|
@ -2169,28 +2170,31 @@ var doc = `{ |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
"/menu/getMenu": { |
|
|
|
"/menu/getMenuAuthority": { |
|
|
|
"post": { |
|
|
|
"security": [ |
|
|
|
{ |
|
|
|
"ApiKeyAuth": [] |
|
|
|
} |
|
|
|
], |
|
|
|
"consumes": [ |
|
|
|
"application/json" |
|
|
|
], |
|
|
|
"produces": [ |
|
|
|
"application/json" |
|
|
|
], |
|
|
|
"tags": [ |
|
|
|
"AuthorityMenu" |
|
|
|
], |
|
|
|
"summary": "获取用户动态路由", |
|
|
|
"summary": "获取指定角色menu", |
|
|
|
"parameters": [ |
|
|
|
{ |
|
|
|
"description": "空", |
|
|
|
"description": "角色ID", |
|
|
|
"name": "data", |
|
|
|
"in": "body", |
|
|
|
"required": true, |
|
|
|
"schema": { |
|
|
|
"$ref": "#/definitions/request.Empty" |
|
|
|
"$ref": "#/definitions/request.GetAuthorityId" |
|
|
|
} |
|
|
|
} |
|
|
|
], |
|
|
|