|
@@ -1,6 +1,6 @@
|
|
|
// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
|
|
// This file was generated by swaggo/swag at
|
|
|
-// 2019-09-07 22:49:45.2497438 +0800 CST m=+0.040919801
|
|
|
+// 2019-09-08 16:14:12.6903257 +0800 CST m=+0.106563301
|
|
|
|
|
|
package docs
|
|
|
|
|
@@ -26,30 +26,38 @@ var doc = `{
|
|
|
"host": "{{.Host}}",
|
|
|
"basePath": "{{.BasePath}}",
|
|
|
"paths": {
|
|
|
- "/base/login": {
|
|
|
+ "/api/createApi": {
|
|
|
"post": {
|
|
|
+ "security": [
|
|
|
+ {
|
|
|
+ "ApiKeyAuth": []
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "consumes": [
|
|
|
+ "application/json"
|
|
|
+ ],
|
|
|
"produces": [
|
|
|
"application/json"
|
|
|
],
|
|
|
"tags": [
|
|
|
- "Base"
|
|
|
+ "Api"
|
|
|
],
|
|
|
- "summary": "用户登录",
|
|
|
+ "summary": "为指定角色创建api",
|
|
|
"parameters": [
|
|
|
{
|
|
|
- "description": "用户登录接口",
|
|
|
+ "description": "创建api",
|
|
|
"name": "data",
|
|
|
"in": "body",
|
|
|
"required": true,
|
|
|
"schema": {
|
|
|
"type": "object",
|
|
|
- "$ref": "#/definitions/api.RegistAndLoginStuct"
|
|
|
+ "$ref": "#/definitions/api.CreateApiParams"
|
|
|
}
|
|
|
}
|
|
|
],
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
- "description": "{\"success\":true,\"data\":{},\"msg\":\"登陆成功\"}",
|
|
|
+ "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
|
|
|
"schema": {
|
|
|
"type": "string"
|
|
|
}
|
|
@@ -57,30 +65,77 @@ var doc = `{
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- "/base/regist": {
|
|
|
+ "/api/deleteApi": {
|
|
|
"post": {
|
|
|
+ "security": [
|
|
|
+ {
|
|
|
+ "ApiKeyAuth": []
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "consumes": [
|
|
|
+ "application/json"
|
|
|
+ ],
|
|
|
"produces": [
|
|
|
"application/json"
|
|
|
],
|
|
|
"tags": [
|
|
|
- "Base"
|
|
|
+ "Api"
|
|
|
],
|
|
|
- "summary": "用户注册账号",
|
|
|
+ "summary": "删除指定角色api",
|
|
|
"parameters": [
|
|
|
{
|
|
|
- "description": "用户注册接口",
|
|
|
+ "description": "删除api",
|
|
|
"name": "data",
|
|
|
"in": "body",
|
|
|
"required": true,
|
|
|
"schema": {
|
|
|
"type": "object",
|
|
|
- "$ref": "#/definitions/api.RegistAndLoginStuct"
|
|
|
+ "$ref": "#/definitions/api.DeleteApiParams"
|
|
|
}
|
|
|
}
|
|
|
],
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
- "description": "{\"success\":true,\"data\":{},\"msg\":\"注册成功\"}",
|
|
|
+ "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
|
|
|
+ "schema": {
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "/authority/createAuthority": {
|
|
|
+ "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/api.CreateAuthorityPatams"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "responses": {
|
|
|
+ "200": {
|
|
|
+ "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
|
|
|
"schema": {
|
|
|
"type": "string"
|
|
|
}
|
|
@@ -88,23 +143,88 @@ var doc = `{
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- "/menu/getMenu": {
|
|
|
+ "/authority/deleteAuthority": {
|
|
|
"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/api.DeleteAuthorityPatams"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "responses": {
|
|
|
+ "200": {
|
|
|
+ "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
|
|
|
+ "schema": {
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "/base/login": {
|
|
|
+ "post": {
|
|
|
+ "produces": [
|
|
|
+ "application/json"
|
|
|
+ ],
|
|
|
+ "tags": [
|
|
|
+ "Base"
|
|
|
+ ],
|
|
|
+ "summary": "用户登录",
|
|
|
+ "parameters": [
|
|
|
+ {
|
|
|
+ "description": "用户登录接口",
|
|
|
+ "name": "data",
|
|
|
+ "in": "body",
|
|
|
+ "required": true,
|
|
|
+ "schema": {
|
|
|
+ "type": "object",
|
|
|
+ "$ref": "#/definitions/api.RegistAndLoginStuct"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "responses": {
|
|
|
+ "200": {
|
|
|
+ "description": "{\"success\":true,\"data\":{},\"msg\":\"登陆成功\"}",
|
|
|
+ "schema": {
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "/base/regist": {
|
|
|
+ "post": {
|
|
|
"produces": [
|
|
|
"application/json"
|
|
|
],
|
|
|
"tags": [
|
|
|
- "Menu"
|
|
|
+ "Base"
|
|
|
],
|
|
|
- "summary": "获取用户动态路由",
|
|
|
+ "summary": "用户注册账号",
|
|
|
"parameters": [
|
|
|
{
|
|
|
- "description": "可以什么都不填",
|
|
|
+ "description": "用户注册接口",
|
|
|
"name": "data",
|
|
|
"in": "body",
|
|
|
"required": true,
|
|
@@ -116,7 +236,7 @@ var doc = `{
|
|
|
],
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
- "description": "{\"success\":true,\"data\":{},\"msg\":\"返回成功\"}",
|
|
|
+ "description": "{\"success\":true,\"data\":{},\"msg\":\"注册成功\"}",
|
|
|
"schema": {
|
|
|
"type": "string"
|
|
|
}
|
|
@@ -258,6 +378,39 @@ var doc = `{
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ "api.CreateApiParams": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "description": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "path": {
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "api.CreateAuthorityPatams": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "authorityId": {
|
|
|
+ "type": "integer"
|
|
|
+ },
|
|
|
+ "authorityName": {
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "api.DeleteApiParams": {
|
|
|
+ "type": "object"
|
|
|
+ },
|
|
|
+ "api.DeleteAuthorityPatams": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "authorityId": {
|
|
|
+ "type": "integer"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
"api.RegistAndLoginStuct": {
|
|
|
"type": "object",
|
|
|
"properties": {
|