调整swag为最新包

This commit is contained in:
piexlMax
2023-05-23 00:08:53 +08:00
parent 4fc90c0168
commit 0e39f3ad05
5 changed files with 879 additions and 795 deletions
+305 -261
View File
@@ -6,7 +6,6 @@
"contact": {},
"version": "0.0.1"
},
"basePath": "/",
"paths": {
"/api/createApi": {
"post": {
@@ -1459,7 +1458,7 @@
"summary": "生成验证码",
"responses": {
"200": {
"description": "生成验证码,返回包括随机数id,base64,验证码长度",
"description": "生成验证码,返回包括随机数id,base64,验证码长度,是否开启验证码",
"schema": {
"allOf": [
{
@@ -1981,161 +1980,6 @@
}
}
},
"/excel/downloadTemplate": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"multipart/form-data"
],
"produces": [
"application/json"
],
"tags": [
"excel"
],
"summary": "下载模板",
"parameters": [
{
"type": "string",
"description": "模板名称",
"name": "fileName",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": ""
}
}
}
},
"/excel/exportExcel": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/octet-stream"
],
"tags": [
"excel"
],
"summary": "导出Excel",
"parameters": [
{
"description": "导出Excel文件信息",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/example.ExcelInfo"
}
}
],
"responses": {
"200": {
"description": ""
}
}
}
},
"/excel/importExcel": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"multipart/form-data"
],
"produces": [
"application/json"
],
"tags": [
"excel"
],
"summary": "导入Excel文件",
"parameters": [
{
"type": "file",
"description": "导入Excel文件",
"name": "file",
"in": "formData",
"required": true
}
],
"responses": {
"200": {
"description": "导入Excel文件",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/excel/loadExcel": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"produces": [
"application/json"
],
"tags": [
"excel"
],
"summary": "加载Excel数据",
"responses": {
"200": {
"description": "加载Excel数据,返回包括列表,总数,页码,每页数量",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/response.PageResult"
},
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/fileUploadAndDownload/breakpointContinue": {
"post": {
"security": [
@@ -4924,6 +4768,14 @@
"key-long": {
"description": "验证码长度",
"type": "integer"
},
"open-captcha": {
"description": "防爆破验证码开启此数,0代表每次登录都需要验证码,其他数字代表错误密码此数,如3代表错误三次后出现验证码",
"type": "integer"
},
"open-captcha-timeout": {
"description": "防爆破验证码超时时间,单位:s(秒)",
"type": "integer"
}
}
},
@@ -4944,39 +4796,6 @@
}
}
},
"config.Email": {
"type": "object",
"properties": {
"from": {
"description": "收件人",
"type": "string"
},
"host": {
"description": "服务器地址",
"type": "string"
},
"is-ssl": {
"description": "是否SSL",
"type": "boolean"
},
"nickname": {
"description": "昵称",
"type": "string"
},
"port": {
"description": "端口",
"type": "integer"
},
"secret": {
"description": "密钥",
"type": "string"
},
"to": {
"description": "收件人:多个以英文逗号分隔",
"type": "string"
}
}
},
"config.Excel": {
"type": "object",
"properties": {
@@ -5039,7 +4858,7 @@
}
}
},
"config.Mysql": {
"config.Mssql": {
"type": "object",
"properties": {
"config": {
@@ -5050,6 +4869,11 @@
"description": "数据库名",
"type": "string"
},
"engine": {
"description": "数据库引擎,默认InnoDB",
"type": "string",
"default": "InnoDB"
},
"log-mode": {
"description": "是否开启Gorm全局日志",
"type": "string"
@@ -5078,6 +4902,130 @@
"description": ":端口",
"type": "string"
},
"prefix": {
"description": "全局表前缀,单独定义TableName则不生效",
"type": "string"
},
"singular": {
"description": "是否开启全局禁用复数,true表示开启",
"type": "boolean"
},
"username": {
"description": "数据库用户名",
"type": "string"
}
}
},
"config.Mysql": {
"type": "object",
"properties": {
"config": {
"description": "高级配置",
"type": "string"
},
"db-name": {
"description": "数据库名",
"type": "string"
},
"engine": {
"description": "数据库引擎,默认InnoDB",
"type": "string",
"default": "InnoDB"
},
"log-mode": {
"description": "是否开启Gorm全局日志",
"type": "string"
},
"log-zap": {
"description": "是否通过zap写入日志文件",
"type": "boolean"
},
"max-idle-conns": {
"description": "空闲中的最大连接数",
"type": "integer"
},
"max-open-conns": {
"description": "打开到数据库的最大连接数",
"type": "integer"
},
"password": {
"description": "数据库密码",
"type": "string"
},
"path": {
"description": "服务器地址:端口",
"type": "string"
},
"port": {
"description": ":端口",
"type": "string"
},
"prefix": {
"description": "全局表前缀,单独定义TableName则不生效",
"type": "string"
},
"singular": {
"description": "是否开启全局禁用复数,true表示开启",
"type": "boolean"
},
"username": {
"description": "数据库用户名",
"type": "string"
}
}
},
"config.Oracle": {
"type": "object",
"properties": {
"config": {
"description": "高级配置",
"type": "string"
},
"db-name": {
"description": "数据库名",
"type": "string"
},
"engine": {
"description": "数据库引擎,默认InnoDB",
"type": "string",
"default": "InnoDB"
},
"log-mode": {
"description": "是否开启Gorm全局日志",
"type": "string"
},
"log-zap": {
"description": "是否通过zap写入日志文件",
"type": "boolean"
},
"max-idle-conns": {
"description": "空闲中的最大连接数",
"type": "integer"
},
"max-open-conns": {
"description": "打开到数据库的最大连接数",
"type": "integer"
},
"password": {
"description": "数据库密码",
"type": "string"
},
"path": {
"description": "服务器地址:端口",
"type": "string"
},
"port": {
"description": ":端口",
"type": "string"
},
"prefix": {
"description": "全局表前缀,单独定义TableName则不生效",
"type": "string"
},
"singular": {
"description": "是否开启全局禁用复数,true表示开启",
"type": "boolean"
},
"username": {
"description": "数据库用户名",
"type": "string"
@@ -5095,6 +5043,11 @@
"description": "数据库名",
"type": "string"
},
"engine": {
"description": "数据库引擎,默认InnoDB",
"type": "string",
"default": "InnoDB"
},
"log-mode": {
"description": "是否开启Gorm全局日志",
"type": "string"
@@ -5123,6 +5076,14 @@
"description": ":端口",
"type": "string"
},
"prefix": {
"description": "全局表前缀,单独定义TableName则不生效",
"type": "string"
},
"singular": {
"description": "是否开启全局禁用复数,true表示开启",
"type": "boolean"
},
"username": {
"description": "数据库用户名",
"type": "string"
@@ -5187,7 +5148,11 @@
},
"autocode": {
"description": "auto",
"$ref": "#/definitions/config.Autocode"
"allOf": [
{
"$ref": "#/definitions/config.Autocode"
}
]
},
"aws-s3": {
"$ref": "#/definitions/config.AwsS3"
@@ -5197,7 +5162,11 @@
},
"cors": {
"description": "跨域配置",
"$ref": "#/definitions/config.CORS"
"allOf": [
{
"$ref": "#/definitions/config.CORS"
}
]
},
"db-list": {
"type": "array",
@@ -5206,7 +5175,7 @@
}
},
"email": {
"$ref": "#/definitions/config.Email"
"$ref": "#/definitions/github_com_flipped-aurora_gin-vue-admin_server_config.Email"
},
"excel": {
"$ref": "#/definitions/config.Excel"
@@ -5219,11 +5188,25 @@
},
"local": {
"description": "oss",
"$ref": "#/definitions/config.Local"
"allOf": [
{
"$ref": "#/definitions/config.Local"
}
]
},
"mssql": {
"$ref": "#/definitions/config.Mssql"
},
"mysql": {
"description": "gorm",
"$ref": "#/definitions/config.Mysql"
"allOf": [
{
"$ref": "#/definitions/config.Mysql"
}
]
},
"oracle": {
"$ref": "#/definitions/config.Oracle"
},
"pgsql": {
"$ref": "#/definitions/config.Pgsql"
@@ -5265,6 +5248,11 @@
"disable": {
"type": "boolean"
},
"engine": {
"description": "数据库引擎,默认InnoDB",
"type": "string",
"default": "InnoDB"
},
"log-mode": {
"description": "是否开启Gorm全局日志",
"type": "string"
@@ -5293,6 +5281,14 @@
"description": ":端口",
"type": "string"
},
"prefix": {
"description": "全局表前缀,单独定义TableName则不生效",
"type": "string"
},
"singular": {
"description": "是否开启全局禁用复数,true表示开启",
"type": "boolean"
},
"type": {
"type": "string"
},
@@ -5327,6 +5323,9 @@
"description": "Oss类型",
"type": "string"
},
"router-prefix": {
"type": "string"
},
"use-multipoint": {
"description": "多点登录拦截",
"type": "boolean"
@@ -5445,7 +5444,11 @@
},
"sysUser": {
"description": "管理详情",
"$ref": "#/definitions/system.SysUser"
"allOf": [
{
"$ref": "#/definitions/system.SysUser"
}
]
},
"sysUserAuthorityID": {
"description": "管理角色ID",
@@ -5558,18 +5561,36 @@
}
}
},
"example.ExcelInfo": {
"github_com_flipped-aurora_gin-vue-admin_server_config.Email": {
"type": "object",
"properties": {
"fileName": {
"description": "文件名",
"from": {
"description": "收件人",
"type": "string"
},
"infoList": {
"type": "array",
"items": {
"$ref": "#/definitions/system.SysBaseMenu"
}
"host": {
"description": "服务器地址",
"type": "string"
},
"is-ssl": {
"description": "是否SSL",
"type": "boolean"
},
"nickname": {
"description": "昵称",
"type": "string"
},
"port": {
"description": "端口",
"type": "integer"
},
"secret": {
"description": "密钥",
"type": "string"
},
"to": {
"description": "收件人:多个以英文逗号分隔",
"type": "string"
}
}
},
@@ -5736,28 +5757,40 @@
"type": "object",
"properties": {
"authorityId": {
"type": "integer"
"type": "string",
"example": "int 角色id"
},
"authorityIds": {
"type": "array",
"items": {
"type": "integer"
}
"type": "string",
"example": "[]uint 角色id"
},
"email": {
"type": "string",
"example": "电子邮箱"
},
"enable": {
"type": "integer"
"type": "string",
"example": "int 是否启用"
},
"headerImg": {
"type": "string"
"type": "string",
"example": "头像链接"
},
"nickName": {
"type": "string"
"type": "string",
"example": "昵称"
},
"passWord": {
"type": "string"
"type": "string",
"example": "密码"
},
"phone": {
"type": "string",
"example": "电话号码"
},
"userName": {
"type": "string"
"type": "string",
"example": "用户名"
}
}
},
@@ -5951,9 +5984,7 @@
"response.PageResult": {
"type": "object",
"properties": {
"list": {
"type": "object"
},
"list": {},
"page": {
"type": "integer"
},
@@ -5982,9 +6013,7 @@
"code": {
"type": "integer"
},
"data": {
"type": "object"
},
"data": {},
"msg": {
"type": "string"
}
@@ -6068,6 +6097,9 @@
"captchaLength": {
"type": "integer"
},
"openCaptcha": {
"type": "boolean"
},
"picPath": {
"type": "string"
}
@@ -6119,6 +6151,10 @@
"description": "是否自动移动文件",
"type": "boolean"
},
"businessDB": {
"description": "业务数据库",
"type": "string"
},
"description": {
"description": "Struct中文名称",
"type": "string"
@@ -6203,6 +6239,38 @@
"require": {
"description": "是否必填",
"type": "boolean"
},
"sort": {
"description": "是否增加排序",
"type": "boolean"
}
}
},
"system.Meta": {
"type": "object",
"properties": {
"activeName": {
"type": "string"
},
"closeTab": {
"description": "自动关闭tab",
"type": "boolean"
},
"defaultMenu": {
"description": "是否是基础路由(开发中)",
"type": "boolean"
},
"icon": {
"description": "菜单图标",
"type": "string"
},
"keepAlive": {
"description": "是否缓存",
"type": "boolean"
},
"title": {
"description": "菜单名",
"type": "string"
}
}
},
@@ -6330,10 +6398,6 @@
"$ref": "#/definitions/system.SysBaseMenu"
}
},
"closeTab": {
"description": "自动关闭tab",
"type": "boolean"
},
"component": {
"description": "对应前端文件路径",
"type": "string"
@@ -6342,32 +6406,28 @@
"description": "创建时间",
"type": "string"
},
"defaultMenu": {
"description": "是否是基础路由(开发中)",
"type": "boolean"
},
"hidden": {
"description": "是否在列表隐藏",
"type": "boolean"
},
"icon": {
"description": "菜单图标",
"type": "string"
},
"id": {
"description": "主键ID",
"type": "integer"
},
"keepAlive": {
"description": "是否缓存",
"type": "boolean"
},
"menuBtn": {
"type": "array",
"items": {
"$ref": "#/definitions/system.SysBaseMenuBtn"
}
},
"meta": {
"description": "附加属性",
"allOf": [
{
"$ref": "#/definitions/system.Meta"
}
]
},
"name": {
"description": "路由name",
"type": "string"
@@ -6390,10 +6450,6 @@
"description": "排序标记",
"type": "integer"
},
"title": {
"description": "菜单名",
"type": "string"
},
"updatedAt": {
"description": "更新时间",
"type": "string"
@@ -6555,10 +6611,6 @@
"$ref": "#/definitions/system.SysMenu"
}
},
"closeTab": {
"description": "自动关闭tab",
"type": "boolean"
},
"component": {
"description": "对应前端文件路径",
"type": "string"
@@ -6567,26 +6619,14 @@
"description": "创建时间",
"type": "string"
},
"defaultMenu": {
"description": "是否是基础路由(开发中)",
"type": "boolean"
},
"hidden": {
"description": "是否在列表隐藏",
"type": "boolean"
},
"icon": {
"description": "菜单图标",
"type": "string"
},
"id": {
"description": "主键ID",
"type": "integer"
},
"keepAlive": {
"description": "是否缓存",
"type": "boolean"
},
"menuBtn": {
"type": "array",
"items": {
@@ -6596,6 +6636,14 @@
"menuId": {
"type": "string"
},
"meta": {
"description": "附加属性",
"allOf": [
{
"$ref": "#/definitions/system.Meta"
}
]
},
"name": {
"description": "路由name",
"type": "string"
@@ -6618,10 +6666,6 @@
"description": "排序标记",
"type": "integer"
},
"title": {
"description": "菜单名",
"type": "string"
},
"updatedAt": {
"description": "更新时间",
"type": "string"