Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
HeliosJ
gin-vue-admin
提交
9905a939
G
gin-vue-admin
项目概览
HeliosJ
/
gin-vue-admin
与 Fork 源项目一致
Fork自
FLIPPED-AURORA / gin-vue-admin
通知
4
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gin-vue-admin
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
9905a939
编写于
8月 20, 2020
作者:
Mr.奇淼(
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复中间件跨域问题
上级
eb882387
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
446 addition
and
3 deletion
+446
-3
server/docs/docs.go
server/docs/docs.go
+170
-1
server/docs/swagger.json
server/docs/swagger.json
+169
-0
server/docs/swagger.yaml
server/docs/swagger.yaml
+105
-0
server/middleware/cors.go
server/middleware/cors.go
+2
-2
未找到文件。
server/docs/docs.go
浏览文件 @
9905a939
// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
// This file was generated by swaggo/swag at
// 2020-0
7-07 10:12:31.2264113 +0800 CST m=+0.0887651
01
// 2020-0
8-20 11:59:55.622609 +0800 CST m=+0.1065612
01
package
docs
...
...
@@ -1534,6 +1534,99 @@ var doc = `{
}
}
},
"/simpleUploader/checkFileMd5": {
"get": {
"produces": [
"application/json"
],
"parameters": [
{
"type": "string",
"description": "测试文件是否已经存在和判断已经上传过的切片",
"name": "md5",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/simpleUploader/mergeFileMd5": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"produces": [
"application/json"
],
"tags": [
"SimpleUploader"
],
"summary": "合并文件",
"parameters": [
{
"type": "string",
"description": "合并文件",
"name": "md5",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"合并成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/simpleUploader/upload": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"multipart/form-data"
],
"produces": [
"application/json"
],
"tags": [
"SimpleUploader"
],
"summary": "断点续传插件版示例",
"parameters": [
{
"type": "file",
"description": "断点续传插件版示例",
"name": "file",
"in": "formData",
"required": true
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"上传成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/sysDictionary/createSysDictionary": {
"post": {
"security": [
...
...
@@ -2002,6 +2095,45 @@ var doc = `{
}
}
},
"/sysOperationRecord/deleteSysOperationRecordByIds": {
"delete": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"SysOperationRecord"
],
"summary": "批量删除SysOperationRecord",
"parameters": [
{
"description": "批量删除SysOperationRecord",
"name": "data",
"in": "body",
"required": true,
"schema": {
"type": "object",
"$ref": "#/definitions/request.IdsReq"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/sysOperationRecord/findSysOperationRecord": {
"get": {
"security": [
...
...
@@ -2711,6 +2843,9 @@ var doc = `{
"dataTypeLong": {
"type": "string"
},
"dictType": {
"type": "string"
},
"fieldDesc": {
"type": "string"
},
...
...
@@ -2819,6 +2954,12 @@ var doc = `{
"name": {
"type": "string"
},
"parameters": {
"type": "array",
"items": {
"$ref": "#/definitions/model.SysBaseMenuParameter"
}
},
"parentId": {
"type": "string"
},
...
...
@@ -2833,6 +2974,23 @@ var doc = `{
}
}
},
"model.SysBaseMenuParameter": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"sysBaseMenuId": {
"type": "integer"
},
"type": {
"type": "string"
},
"value": {
"type": "string"
}
}
},
"model.SysDictionary": {
"type": "object",
"properties": {
...
...
@@ -3070,6 +3228,17 @@ var doc = `{
}
}
},
"request.IdsReq": {
"type": "object",
"properties": {
"ids": {
"type": "array",
"items": {
"type": "integer"
}
}
}
},
"request.PageInfo": {
"type": "object",
"properties": {
...
...
server/docs/swagger.json
浏览文件 @
9905a939
...
...
@@ -1517,6 +1517,99 @@
}
}
},
"/simpleUploader/checkFileMd5"
:
{
"get"
:
{
"produces"
:
[
"application/json"
],
"parameters"
:
[
{
"type"
:
"string"
,
"description"
:
"测试文件是否已经存在和判断已经上传过的切片"
,
"name"
:
"md5"
,
"in"
:
"query"
,
"required"
:
true
}
],
"responses"
:
{
"200"
:
{
"description"
:
"{
\"
success
\"
:true,
\"
data
\"
:{},
\"
msg
\"
:
\"
查询成功
\"
}"
,
"schema"
:
{
"type"
:
"string"
}
}
}
}
},
"/simpleUploader/mergeFileMd5"
:
{
"get"
:
{
"security"
:
[
{
"ApiKeyAuth"
:
[]
}
],
"produces"
:
[
"application/json"
],
"tags"
:
[
"SimpleUploader"
],
"summary"
:
"合并文件"
,
"parameters"
:
[
{
"type"
:
"string"
,
"description"
:
"合并文件"
,
"name"
:
"md5"
,
"in"
:
"query"
,
"required"
:
true
}
],
"responses"
:
{
"200"
:
{
"description"
:
"{
\"
success
\"
:true,
\"
data
\"
:{},
\"
msg
\"
:
\"
合并成功
\"
}"
,
"schema"
:
{
"type"
:
"string"
}
}
}
}
},
"/simpleUploader/upload"
:
{
"post"
:
{
"security"
:
[
{
"ApiKeyAuth"
:
[]
}
],
"consumes"
:
[
"multipart/form-data"
],
"produces"
:
[
"application/json"
],
"tags"
:
[
"SimpleUploader"
],
"summary"
:
"断点续传插件版示例"
,
"parameters"
:
[
{
"type"
:
"file"
,
"description"
:
"断点续传插件版示例"
,
"name"
:
"file"
,
"in"
:
"formData"
,
"required"
:
true
}
],
"responses"
:
{
"200"
:
{
"description"
:
"{
\"
success
\"
:true,
\"
data
\"
:{},
\"
msg
\"
:
\"
上传成功
\"
}"
,
"schema"
:
{
"type"
:
"string"
}
}
}
}
},
"/sysDictionary/createSysDictionary"
:
{
"post"
:
{
"security"
:
[
...
...
@@ -1985,6 +2078,45 @@
}
}
},
"/sysOperationRecord/deleteSysOperationRecordByIds"
:
{
"delete"
:
{
"security"
:
[
{
"ApiKeyAuth"
:
[]
}
],
"consumes"
:
[
"application/json"
],
"produces"
:
[
"application/json"
],
"tags"
:
[
"SysOperationRecord"
],
"summary"
:
"批量删除SysOperationRecord"
,
"parameters"
:
[
{
"description"
:
"批量删除SysOperationRecord"
,
"name"
:
"data"
,
"in"
:
"body"
,
"required"
:
true
,
"schema"
:
{
"type"
:
"object"
,
"$ref"
:
"#/definitions/request.IdsReq"
}
}
],
"responses"
:
{
"200"
:
{
"description"
:
"{
\"
success
\"
:true,
\"
data
\"
:{},
\"
msg
\"
:
\"
删除成功
\"
}"
,
"schema"
:
{
"type"
:
"string"
}
}
}
}
},
"/sysOperationRecord/findSysOperationRecord"
:
{
"get"
:
{
"security"
:
[
...
...
@@ -2694,6 +2826,9 @@
"dataTypeLong"
:
{
"type"
:
"string"
},
"dictType"
:
{
"type"
:
"string"
},
"fieldDesc"
:
{
"type"
:
"string"
},
...
...
@@ -2802,6 +2937,12 @@
"name"
:
{
"type"
:
"string"
},
"parameters"
:
{
"type"
:
"array"
,
"items"
:
{
"$ref"
:
"#/definitions/model.SysBaseMenuParameter"
}
},
"parentId"
:
{
"type"
:
"string"
},
...
...
@@ -2816,6 +2957,23 @@
}
}
},
"model.SysBaseMenuParameter"
:
{
"type"
:
"object"
,
"properties"
:
{
"key"
:
{
"type"
:
"string"
},
"sysBaseMenuId"
:
{
"type"
:
"integer"
},
"type"
:
{
"type"
:
"string"
},
"value"
:
{
"type"
:
"string"
}
}
},
"model.SysDictionary"
:
{
"type"
:
"object"
,
"properties"
:
{
...
...
@@ -3053,6 +3211,17 @@
}
}
},
"request.IdsReq"
:
{
"type"
:
"object"
,
"properties"
:
{
"ids"
:
{
"type"
:
"array"
,
"items"
:
{
"type"
:
"integer"
}
}
}
},
"request.PageInfo"
:
{
"type"
:
"object"
,
"properties"
:
{
...
...
server/docs/swagger.yaml
浏览文件 @
9905a939
...
...
@@ -177,6 +177,8 @@ definitions:
type
:
string
dataTypeLong
:
type
:
string
dictType
:
type
:
string
fieldDesc
:
type
:
string
fieldJson
:
...
...
@@ -248,6 +250,10 @@ definitions:
type
:
boolean
name
:
type
:
string
parameters
:
items
:
$ref
:
'
#/definitions/model.SysBaseMenuParameter'
type
:
array
parentId
:
type
:
string
path
:
...
...
@@ -257,6 +263,17 @@ definitions:
title
:
type
:
string
type
:
object
model.SysBaseMenuParameter
:
properties
:
key
:
type
:
string
sysBaseMenuId
:
type
:
integer
type
:
type
:
string
value
:
type
:
string
type
:
object
model.SysDictionary
:
properties
:
desc
:
...
...
@@ -415,6 +432,13 @@ definitions:
id
:
type
:
number
type
:
object
request.IdsReq
:
properties
:
ids
:
items
:
type
:
integer
type
:
array
type
:
object
request.PageInfo
:
properties
:
page
:
...
...
@@ -1467,6 +1491,63 @@ paths:
summary
:
更新菜单
tags
:
-
menu
/simpleUploader/checkFileMd5
:
get
:
parameters
:
-
description
:
测试文件是否已经存在和判断已经上传过的切片
in
:
query
name
:
md5
required
:
true
type
:
string
produces
:
-
application/json
responses
:
"
200"
:
description
:
'
{"success":true,"data":{},"msg":"查询成功"}'
schema
:
type
:
string
/simpleUploader/mergeFileMd5
:
get
:
parameters
:
-
description
:
合并文件
in
:
query
name
:
md5
required
:
true
type
:
string
produces
:
-
application/json
responses
:
"
200"
:
description
:
'
{"success":true,"data":{},"msg":"合并成功"}'
schema
:
type
:
string
security
:
-
ApiKeyAuth
:
[]
summary
:
合并文件
tags
:
-
SimpleUploader
/simpleUploader/upload
:
post
:
consumes
:
-
multipart/form-data
parameters
:
-
description
:
断点续传插件版示例
in
:
formData
name
:
file
required
:
true
type
:
file
produces
:
-
application/json
responses
:
"
200"
:
description
:
'
{"success":true,"data":{},"msg":"上传成功"}'
schema
:
type
:
string
security
:
-
ApiKeyAuth
:
[]
summary
:
断点续传插件版示例
tags
:
-
SimpleUploader
/sysDictionary/createSysDictionary
:
post
:
consumes
:
...
...
@@ -1755,6 +1836,30 @@ paths:
summary
:
删除SysOperationRecord
tags
:
-
SysOperationRecord
/sysOperationRecord/deleteSysOperationRecordByIds
:
delete
:
consumes
:
-
application/json
parameters
:
-
description
:
批量删除SysOperationRecord
in
:
body
name
:
data
required
:
true
schema
:
$ref
:
'
#/definitions/request.IdsReq'
type
:
object
produces
:
-
application/json
responses
:
"
200"
:
description
:
'
{"success":true,"data":{},"msg":"删除成功"}'
schema
:
type
:
string
security
:
-
ApiKeyAuth
:
[]
summary
:
批量删除SysOperationRecord
tags
:
-
SysOperationRecord
/sysOperationRecord/findSysOperationRecord
:
get
:
consumes
:
...
...
server/middleware/cors.go
浏览文件 @
9905a939
...
...
@@ -10,8 +10,8 @@ func Cors() gin.HandlerFunc {
return
func
(
c
*
gin
.
Context
)
{
method
:=
c
.
Request
.
Method
c
.
Header
(
"Access-Control-Allow-Origin"
,
"*"
)
c
.
Header
(
"Access-Control-Allow-Headers"
,
"Content-Type,AccessToken,X-CSRF-Token, Authorization, Token"
)
c
.
Header
(
"Access-Control-Allow-Methods"
,
"POST, GET, OPTIONS"
)
c
.
Header
(
"Access-Control-Allow-Headers"
,
"Content-Type,AccessToken,X-CSRF-Token, Authorization, Token
,X-Token,X-User-Id
\"
"
)
c
.
Header
(
"Access-Control-Allow-Methods"
,
"POST, GET, OPTIONS
,DELETE,PUT
"
)
c
.
Header
(
"Access-Control-Expose-Headers"
,
"Content-Length, Access-Control-Allow-Origin, Access-Control-Allow-Headers, Content-Type"
)
c
.
Header
(
"Access-Control-Allow-Credentials"
,
"true"
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录