增加角色复制后台功能 修复swagger不能带token的问题
This commit is contained in:
+147
-1
@@ -1,9 +1,13 @@
|
||||
{
|
||||
"swagger": "2.0",
|
||||
"info": {
|
||||
"description": "This is a sample Server pets",
|
||||
"title": "Swagger Example API",
|
||||
"contact": {},
|
||||
"license": {}
|
||||
"license": {},
|
||||
"version": "0.0.1"
|
||||
},
|
||||
"basePath": "/",
|
||||
"paths": {
|
||||
"/api/createApi": {
|
||||
"post": {
|
||||
@@ -227,6 +231,45 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/authority/copyAuthority": {
|
||||
"post": {
|
||||
"security": [
|
||||
{
|
||||
"ApiKeyAuth": []
|
||||
}
|
||||
],
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"authority"
|
||||
],
|
||||
"summary": "拷贝角色",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "拷贝角色",
|
||||
"name": "data",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/response.SysAuthorityCopyResponse"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{\"success\":true,\"data\":{},\"msg\":\"拷贝成功\"}",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/authority/createAuthority": {
|
||||
"post": {
|
||||
"security": [
|
||||
@@ -383,6 +426,45 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/authority/updateAuthority": {
|
||||
"post": {
|
||||
"security": [
|
||||
{
|
||||
"ApiKeyAuth": []
|
||||
}
|
||||
],
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"authority"
|
||||
],
|
||||
"summary": "设置角色资源权限",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "设置角色资源权限",
|
||||
"name": "data",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/model.SysAuthority"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{\"success\":true,\"data\":{},\"msg\":\"设置成功\"}",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/autoCode/createTemp": {
|
||||
"post": {
|
||||
"security": [
|
||||
@@ -1567,6 +1649,45 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/user/deleteUser": {
|
||||
"delete": {
|
||||
"security": [
|
||||
{
|
||||
"ApiKeyAuth": []
|
||||
}
|
||||
],
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"SysUser"
|
||||
],
|
||||
"summary": "删除用户",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "删除用户",
|
||||
"name": "data",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/request.SetUserAuth"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/user/getUserList": {
|
||||
"post": {
|
||||
"security": [
|
||||
@@ -2051,12 +2172,18 @@
|
||||
"component": {
|
||||
"type": "string"
|
||||
},
|
||||
"defaultMenu": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"hidden": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"icon": {
|
||||
"type": "string"
|
||||
},
|
||||
"keepAlive": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -2296,6 +2423,25 @@
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"response.SysAuthorityCopyResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"authority": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/model.SysAuthority"
|
||||
},
|
||||
"oldAuthorityId": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"securityDefinitions": {
|
||||
"ApiKeyAuth": {
|
||||
"type": "apiKey",
|
||||
"name": "x-token",
|
||||
"in": "header"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user