Browse Source

文档

master
huangjiajun 2 months ago
parent
commit
f3b22c6b9c
4 changed files with 126 additions and 126 deletions
  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 View File

@@ -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 View File

@@ -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 View File

@@ -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 View File

@@ -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:


Loading…
Cancel
Save