diff --git a/app/hdl/comm/hdl_comm.go b/app/hdl/comm/hdl_comm.go index ad4ef3d..93eb8b5 100644 --- a/app/hdl/comm/hdl_comm.go +++ b/app/hdl/comm/hdl_comm.go @@ -24,7 +24,7 @@ import ( // @Accept json // @Produce json // @param Authorization header string true "验证参数Bearer和token空格拼接" -// @Success 200 {object} "具体路由" +// @Success 200 {object} map[string]interface{} "具体路由" // @Failure 400 {object} md.Response "具体错误" // @Router /api/comm/getMenuList [POST] func MenuList(c *gin.Context) { diff --git a/docs/docs.go b/docs/docs.go index 247c566..791b423 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -1333,6 +1333,45 @@ const docTemplate = `{ } } }, + "/api/comm/getMenuList": { + "post": { + "description": "菜单栏列表(获取)", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "权限列表" + ], + "summary": "通用请求-权限列表-菜单栏列表(获取)", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + } + ], + "responses": { + "200": { + "description": "具体路由", + "schema": { + "type": "object", + "additionalProperties": true + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, "/api/comm/getOssUrl": { "post": { "description": "上传许可链接(获取)", diff --git a/docs/swagger.json b/docs/swagger.json index 39ccd10..0616b50 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -1326,6 +1326,45 @@ } } }, + "/api/comm/getMenuList": { + "post": { + "description": "菜单栏列表(获取)", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "权限列表" + ], + "summary": "通用请求-权限列表-菜单栏列表(获取)", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + } + ], + "responses": { + "200": { + "description": "具体路由", + "schema": { + "type": "object", + "additionalProperties": true + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, "/api/comm/getOssUrl": { "post": { "description": "上传许可链接(获取)", diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 75ab192..432ef6b 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -5944,6 +5944,32 @@ paths: summary: 通用请求-获取管理员信息 tags: - 通用请求 + /api/comm/getMenuList: + post: + consumes: + - application/json + description: 菜单栏列表(获取) + parameters: + - description: 验证参数Bearer和token空格拼接 + in: header + name: Authorization + required: true + type: string + produces: + - application/json + responses: + "200": + description: 具体路由 + schema: + additionalProperties: true + type: object + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 通用请求-权限列表-菜单栏列表(获取) + tags: + - 权限列表 /api/comm/getOssUrl: post: consumes: