huangjiajun 4 місяці тому
джерело
коміт
f3b22c6b9c
4 змінених файлів з 126 додано та 126 видалено
  1. +1
    -1
      app/hdl/hdl_role.go
  2. +47
    -47
      docs/docs.go
  3. +47
    -47
      docs/swagger.json
  4. +31
    -31
      docs/swagger.yaml

+ 1
- 1
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)


+ 47
- 47
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": "短信-短信发送",


+ 47
- 47
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": "短信-短信发送",


+ 31
- 31
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:


Завантаження…
Відмінити
Зберегти