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: