From f3b22c6b9c5b923c717a0f2d52c495d39c0bff93 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Fri, 23 Aug 2024 11:51:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/hdl/hdl_role.go | 2 +- docs/docs.go | 94 ++++++++++++++++++++++----------------------- docs/swagger.json | 94 ++++++++++++++++++++++----------------------- docs/swagger.yaml | 62 +++++++++++++++--------------- 4 files changed, 126 insertions(+), 126 deletions(-) diff --git a/app/hdl/hdl_role.go b/app/hdl/hdl_role.go index 38adc5c..2887b93 100644 --- a/app/hdl/hdl_role.go +++ b/app/hdl/hdl_role.go @@ -281,7 +281,7 @@ func RoleBindPermissionGroup(c *gin.Context) { // @Param args body md.UpdateRoleStateReq true "请求参数" // @Success 200 {string} "success" // @Failure 400 {object} md.Response "具体错误" -// @Router /api/role/UpdateRoleState [POST] +// @Router /api/role/updateRoleState [POST] func UpdateRoleState(c *gin.Context) { var req md.UpdateRoleStateReq err := c.ShouldBindJSON(&req) diff --git a/docs/docs.go b/docs/docs.go index 414bbe1..ff05e2a 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -531,53 +531,6 @@ const docTemplate = `{ } } }, - "/api/role/UpdateRoleState": { - "post": { - "description": "修改角色状态", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "ADMIN-权限管理" - ], - "summary": "修改角色状态", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "请求参数", - "name": "args", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.UpdateRoleStateReq" - } - } - ], - "responses": { - "200": { - "description": "success", - "schema": { - "type": "string" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, "/api/role/addAdmin": { "post": { "description": "新增管理员", @@ -1167,6 +1120,53 @@ const docTemplate = `{ } } }, + "/api/role/updateRoleState": { + "post": { + "description": "修改角色状态", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "ADMIN-权限管理" + ], + "summary": "修改角色状态", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "description": "请求参数", + "name": "args", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.UpdateRoleStateReq" + } + } + ], + "responses": { + "200": { + "description": "success", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, "/api/sms": { "post": { "description": "短信-短信发送", diff --git a/docs/swagger.json b/docs/swagger.json index f3c0a8b..9c84670 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -523,53 +523,6 @@ } } }, - "/api/role/UpdateRoleState": { - "post": { - "description": "修改角色状态", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "ADMIN-权限管理" - ], - "summary": "修改角色状态", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "请求参数", - "name": "args", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.UpdateRoleStateReq" - } - } - ], - "responses": { - "200": { - "description": "success", - "schema": { - "type": "string" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, "/api/role/addAdmin": { "post": { "description": "新增管理员", @@ -1159,6 +1112,53 @@ } } }, + "/api/role/updateRoleState": { + "post": { + "description": "修改角色状态", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "ADMIN-权限管理" + ], + "summary": "修改角色状态", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "description": "请求参数", + "name": "args", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.UpdateRoleStateReq" + } + } + ], + "responses": { + "200": { + "description": "success", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, "/api/sms": { "post": { "description": "短信-短信发送", diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 138d118..db888c6 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -697,37 +697,6 @@ paths: summary: 七牛云上传 tags: - 七牛云 - /api/role/UpdateRoleState: - post: - consumes: - - application/json - description: 修改角色状态 - parameters: - - description: 验证参数Bearer和token空格拼接 - in: header - name: Authorization - required: true - type: string - - description: 请求参数 - in: body - name: args - required: true - schema: - $ref: '#/definitions/md.UpdateRoleStateReq' - produces: - - application/json - responses: - "200": - description: success - schema: - type: string - "400": - description: 具体错误 - schema: - $ref: '#/definitions/md.Response' - summary: 修改角色状态 - tags: - - ADMIN-权限管理 /api/role/addAdmin: post: consumes: @@ -1117,6 +1086,37 @@ paths: summary: 修改角色 tags: - ADMIN-权限管理 + /api/role/updateRoleState: + post: + consumes: + - application/json + description: 修改角色状态 + parameters: + - description: 验证参数Bearer和token空格拼接 + in: header + name: Authorization + required: true + type: string + - description: 请求参数 + in: body + name: args + required: true + schema: + $ref: '#/definitions/md.UpdateRoleStateReq' + produces: + - application/json + responses: + "200": + description: success + schema: + type: string + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 修改角色状态 + tags: + - ADMIN-权限管理 /api/sms: post: consumes: