|
@@ -1,6 +1,6 @@
|
|
|
// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
|
|
// This file was generated by swaggo/swag at
|
|
|
-// 2020-04-15 09:37:13.5084762 +0800 CST m=+0.126566601
|
|
|
+// 2020-04-20 14:50:58.4141704 +0800 CST m=+0.881639701
|
|
|
|
|
|
package docs
|
|
|
|
|
@@ -248,6 +248,45 @@ var doc = `{
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ "/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": [
|
|
@@ -404,6 +443,45 @@ var doc = `{
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ "/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": [
|
|
@@ -1588,6 +1666,45 @@ var doc = `{
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ "/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": [
|
|
@@ -2072,12 +2189,18 @@ var doc = `{
|
|
|
"component": {
|
|
|
"type": "string"
|
|
|
},
|
|
|
+ "defaultMenu": {
|
|
|
+ "type": "boolean"
|
|
|
+ },
|
|
|
"hidden": {
|
|
|
"type": "boolean"
|
|
|
},
|
|
|
"icon": {
|
|
|
"type": "string"
|
|
|
},
|
|
|
+ "keepAlive": {
|
|
|
+ "type": "boolean"
|
|
|
+ },
|
|
|
"name": {
|
|
|
"type": "string"
|
|
|
},
|
|
@@ -2317,6 +2440,25 @@ var doc = `{
|
|
|
"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"
|
|
|
}
|
|
|
}
|
|
|
}`
|
|
@@ -2332,12 +2474,12 @@ type swaggerInfo struct {
|
|
|
|
|
|
// SwaggerInfo holds exported Swagger Info so clients can modify it
|
|
|
var SwaggerInfo = swaggerInfo{
|
|
|
- Version: "",
|
|
|
+ Version: "0.0.1",
|
|
|
Host: "",
|
|
|
- BasePath: "",
|
|
|
+ BasePath: "/",
|
|
|
Schemes: []string{},
|
|
|
- Title: "",
|
|
|
- Description: "",
|
|
|
+ Title: "Swagger Example API",
|
|
|
+ Description: "This is a sample Server pets",
|
|
|
}
|
|
|
|
|
|
type s struct{}
|