图片上传示例 前端图片跨域下载示例 文档更新
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
||||
// This file was generated by swaggo/swag at
|
||||
// 2019-09-22 17:09:11.1201116 +0800 CST m=+0.066820301
|
||||
// 2019-10-26 23:18:53.1133875 +0800 CST m=+0.203566501
|
||||
|
||||
package docs
|
||||
|
||||
@@ -90,7 +90,73 @@ var doc = `{
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/api.DeleteApiParams"
|
||||
"$ref": "#/definitions/dbModel.Api"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/getAllApis": {
|
||||
"post": {
|
||||
"security": [
|
||||
{
|
||||
"ApiKeyAuth": []
|
||||
}
|
||||
],
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Api"
|
||||
],
|
||||
"summary": "获取所有的Api 不分页",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/getApiById": {
|
||||
"post": {
|
||||
"security": [
|
||||
{
|
||||
"ApiKeyAuth": []
|
||||
}
|
||||
],
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Api"
|
||||
],
|
||||
"summary": "根据id获取api",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "分页获取用户列表",
|
||||
"name": "data",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/modelInterface.PageInfo"
|
||||
}
|
||||
}
|
||||
],
|
||||
@@ -120,10 +186,10 @@ var doc = `{
|
||||
"tags": [
|
||||
"Api"
|
||||
],
|
||||
"summary": "分页获取角色列表",
|
||||
"summary": "分页获取API列表",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "分页获取用户列表",
|
||||
"description": "分页获取API列表",
|
||||
"name": "data",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
@@ -143,7 +209,7 @@ var doc = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/setAuthAndPath": {
|
||||
"/api/setAuthAndApi": {
|
||||
"post": {
|
||||
"security": [
|
||||
{
|
||||
@@ -182,6 +248,45 @@ var doc = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/updataApi": {
|
||||
"post": {
|
||||
"security": [
|
||||
{
|
||||
"ApiKeyAuth": []
|
||||
}
|
||||
],
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Api"
|
||||
],
|
||||
"summary": "创建基础api",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "创建api",
|
||||
"name": "data",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/api.CreateApiParams"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/authority/createAuthority": {
|
||||
"post": {
|
||||
"security": [
|
||||
@@ -260,6 +365,45 @@ var doc = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/authority/getAuthAndApi": {
|
||||
"post": {
|
||||
"security": [
|
||||
{
|
||||
"ApiKeyAuth": []
|
||||
}
|
||||
],
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"authority"
|
||||
],
|
||||
"summary": "获取本角色所有有权限的apiId",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "获取本角色所有有权限的apiId",
|
||||
"name": "data",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/api.GetAuthorityId"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/authority/getAuthorityList": {
|
||||
"post": {
|
||||
"security": [
|
||||
@@ -361,6 +505,81 @@ var doc = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/fileUploadAndDownload/getFileList": {
|
||||
"post": {
|
||||
"security": [
|
||||
{
|
||||
"ApiKeyAuth": []
|
||||
}
|
||||
],
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"FileUploadAndDownload"
|
||||
],
|
||||
"summary": "分页文件列表",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "分页获取文件户列表",
|
||||
"name": "data",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/modelInterface.PageInfo"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/fileUploadAndDownload/upload": {
|
||||
"post": {
|
||||
"security": [
|
||||
{
|
||||
"ApiKeyAuth": []
|
||||
}
|
||||
],
|
||||
"consumes": [
|
||||
"multipart/form-data"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"FileUploadAndDownload"
|
||||
],
|
||||
"summary": "上传文件示例",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "file",
|
||||
"description": "上传文件示例",
|
||||
"name": "file",
|
||||
"in": "formData",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{\"success\":true,\"data\":{},\"msg\":\"上传成功\"}",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/menu/addBaseMenu": {
|
||||
"post": {
|
||||
"security": [
|
||||
@@ -377,16 +596,16 @@ var doc = `{
|
||||
"tags": [
|
||||
"menu"
|
||||
],
|
||||
"summary": "分页获取基础menu列表",
|
||||
"summary": "新增菜单",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "分页获取基础menu列表",
|
||||
"description": "新增菜单",
|
||||
"name": "data",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/modelInterface.PageInfo"
|
||||
"$ref": "#/definitions/dbModel.BaseMenu"
|
||||
}
|
||||
}
|
||||
],
|
||||
@@ -455,7 +674,7 @@ var doc = `{
|
||||
"tags": [
|
||||
"menu"
|
||||
],
|
||||
"summary": "获取指定角色menu",
|
||||
"summary": "删除菜单",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "删除菜单",
|
||||
@@ -478,6 +697,45 @@ var doc = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/menu/getBaseMenuById": {
|
||||
"post": {
|
||||
"security": [
|
||||
{
|
||||
"ApiKeyAuth": []
|
||||
}
|
||||
],
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"menu"
|
||||
],
|
||||
"summary": "根据id获取菜单",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "根据id获取菜单",
|
||||
"name": "data",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/api.GetById"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/menu/getBaseMenuTree": {
|
||||
"post": {
|
||||
"security": [
|
||||
@@ -589,6 +847,45 @@ var doc = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/menu/updataBaseMen": {
|
||||
"post": {
|
||||
"security": [
|
||||
{
|
||||
"ApiKeyAuth": []
|
||||
}
|
||||
],
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"menu"
|
||||
],
|
||||
"summary": "更新菜单",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "更新菜单",
|
||||
"name": "data",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/dbModel.BaseMenu"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/user/changePassword": {
|
||||
"post": {
|
||||
"security": [
|
||||
@@ -625,7 +922,7 @@ var doc = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/user/getInfoList": {
|
||||
"/user/getUserList": {
|
||||
"post": {
|
||||
"security": [
|
||||
{
|
||||
@@ -664,6 +961,45 @@ var doc = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/user/setUserAuthority": {
|
||||
"post": {
|
||||
"security": [
|
||||
{
|
||||
"ApiKeyAuth": []
|
||||
}
|
||||
],
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"User"
|
||||
],
|
||||
"summary": "设置用户权限",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "设置用户权限",
|
||||
"name": "data",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/api.SetUserAuth"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/user/uploadHeaderImg": {
|
||||
"post": {
|
||||
"security": [
|
||||
@@ -726,10 +1062,10 @@ var doc = `{
|
||||
"api.AuthAndPathIn": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"apis": {
|
||||
"apiIds": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/dbModel.Api"
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"authorityId": {
|
||||
@@ -781,14 +1117,6 @@ var doc = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"api.DeleteApiParams": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"path": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
},
|
||||
"api.DeleteAuthorityPatams": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -797,6 +1125,22 @@ var doc = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"api.GetAuthorityId": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"authorityId": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"api.GetById": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "number"
|
||||
}
|
||||
}
|
||||
},
|
||||
"api.IdInfo": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -816,12 +1160,26 @@ var doc = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"api.SetUserAuth": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"authorityId": {
|
||||
"type": "string"
|
||||
},
|
||||
"uuid": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dbModel.Api": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"description": {
|
||||
"type": "string"
|
||||
},
|
||||
"group": {
|
||||
"type": "string"
|
||||
},
|
||||
"path": {
|
||||
"type": "string"
|
||||
}
|
||||
|
Reference in New Issue
Block a user