diff --git a/server/config/captcha.go b/server/config/captcha.go
index 1238f1e6..76ed3cc4 100644
--- a/server/config/captcha.go
+++ b/server/config/captcha.go
@@ -1,7 +1,7 @@
package config
type Captcha struct {
- KeyLong int `mapstructure:"key-long" json:"keyLong" yaml:"key-long"`
- ImgWidth int `mapstructure:"img-width" json:"imgWidth" yaml:"img-width"`
- ImgHeight int `mapstructure:"img-height" json:"imgHeight" yaml:"img-height"`
+ KeyLong int `mapstructure:"key-long" json:"keyLong" yaml:"key-long"` // 验证码长度
+ ImgWidth int `mapstructure:"img-width" json:"imgWidth" yaml:"img-width"` // 图片宽度
+ ImgHeight int `mapstructure:"img-height" json:"imgHeight" yaml:"img-height"` // 图片高度
}
diff --git a/server/config/casbin.go b/server/config/casbin.go
index 67e45b03..ad548dc0 100644
--- a/server/config/casbin.go
+++ b/server/config/casbin.go
@@ -1,5 +1,5 @@
package config
type Casbin struct {
- ModelPath string `mapstructure:"model-path" json:"modelPath" yaml:"model-path"`
+ ModelPath string `mapstructure:"model-path" json:"modelPath" yaml:"model-path"` // Model路径
}
diff --git a/server/config/email.go b/server/config/email.go
index 1da737ef..6b3d3956 100644
--- a/server/config/email.go
+++ b/server/config/email.go
@@ -1,11 +1,11 @@
package config
type Email struct {
- To string `mapstructure:"to" json:"to" yaml:"to"`
- Port int `mapstructure:"port" json:"port" yaml:"port"`
- From string `mapstructure:"from" json:"from" yaml:"from"`
- Host string `mapstructure:"host" json:"host" yaml:"host"`
- IsSSL bool `mapstructure:"is-ssl" json:"isSSL" yaml:"is-ssl"`
- Secret string `mapstructure:"secret" json:"secret" yaml:"secret"`
- Nickname string `mapstructure:"nickname" json:"nickname" yaml:"nickname"`
+ To string `mapstructure:"to" json:"to" yaml:"to"` // 收件人
+ Port int `mapstructure:"port" json:"port" yaml:"port"` // 端口
+ From string `mapstructure:"from" json:"from" yaml:"from"` // 收件人
+ Host string `mapstructure:"host" json:"host" yaml:"host"` // 服务器地址
+ IsSSL bool `mapstructure:"is-ssl" json:"isSSL" yaml:"is-ssl"` // 是否SSL
+ Secret string `mapstructure:"secret" json:"secret" yaml:"secret"` // 密钥
+ Nickname string `mapstructure:"nickname" json:"nickname" yaml:"nickname"` // 昵称
}
diff --git a/server/config/gorm.go b/server/config/gorm.go
index 15210324..263625fc 100644
--- a/server/config/gorm.go
+++ b/server/config/gorm.go
@@ -1,11 +1,11 @@
package config
type Mysql struct {
- Path string `mapstructure:"path" json:"path" yaml:"path"`
+ Path string `mapstructure:"path" json:"path" yaml:"path"` // 服务器地址:端口
Config string `mapstructure:"config" json:"config" yaml:"config"`
- Dbname string `mapstructure:"db-name" json:"dbname" yaml:"db-name"`
- Username string `mapstructure:"username" json:"username" yaml:"username"`
- Password string `mapstructure:"password" json:"password" yaml:"password"`
+ Dbname string `mapstructure:"db-name" json:"dbname" yaml:"db-name"` // 数据库名
+ Username string `mapstructure:"username" json:"username" yaml:"username"` // 数据库用户名
+ Password string `mapstructure:"password" json:"password" yaml:"password"` // 数据库密码
MaxIdleConns int `mapstructure:"max-idle-conns" json:"maxIdleConns" yaml:"max-idle-conns"`
MaxOpenConns int `mapstructure:"max-open-conns" json:"maxOpenConns" yaml:"max-open-conns"`
LogMode bool `mapstructure:"log-mode" json:"logMode" yaml:"log-mode"`
diff --git a/server/config/jwt.go b/server/config/jwt.go
index 58b3df16..0ac7168f 100644
--- a/server/config/jwt.go
+++ b/server/config/jwt.go
@@ -1,7 +1,7 @@
package config
type JWT struct {
- SigningKey string `mapstructure:"signing-key" json:"signingKey" yaml:"signing-key"`
- ExpiresTime int64 `mapstructure:"expires-time" json:"expiresTime" yaml:"expires-time"`
- BufferTime int64 `mapstructure:"buffer-time" json:"bufferTime" yaml:"buffer-time"`
+ SigningKey string `mapstructure:"signing-key" json:"signingKey" yaml:"signing-key"` // jwt签名
+ ExpiresTime int64 `mapstructure:"expires-time" json:"expiresTime" yaml:"expires-time"` // 过期时间
+ BufferTime int64 `mapstructure:"buffer-time" json:"bufferTime" yaml:"buffer-time"` // 缓冲时间
}
diff --git a/server/config/oss.go b/server/config/oss.go
index 0a8af1cb..e7c2de2f 100644
--- a/server/config/oss.go
+++ b/server/config/oss.go
@@ -1,17 +1,17 @@
package config
type Local struct {
- Path string `mapstructure:"path" json:"path" yaml:"path" `
+ Path string `mapstructure:"path" json:"path" yaml:"path"` // 本地文件路径
}
type Qiniu struct {
- Zone string `mapstructure:"zone" json:"zone" yaml:"zone"`
- Bucket string `mapstructure:"bucket" json:"bucket" yaml:"bucket"`
- ImgPath string `mapstructure:"img-path" json:"imgPath" yaml:"img-path"`
- UseHTTPS bool `mapstructure:"use-https" json:"useHttps" yaml:"use-https"`
- AccessKey string `mapstructure:"access-key" json:"accessKey" yaml:"access-key"`
- SecretKey string `mapstructure:"secret-key" json:"secretKey" yaml:"secret-key"`
- UseCdnDomains bool `mapstructure:"use-cdn-domains" json:"useCdnDomains" yaml:"use-cdn-domains"`
+ Zone string `mapstructure:"zone" json:"zone" yaml:"zone"` // 存储区域
+ Bucket string `mapstructure:"bucket" json:"bucket" yaml:"bucket"` // 空间名称
+ ImgPath string `mapstructure:"img-path" json:"imgPath" yaml:"img-path"` // CDN加速域名
+ UseHTTPS bool `mapstructure:"use-https" json:"useHttps" yaml:"use-https"` // 是否使用https
+ AccessKey string `mapstructure:"access-key" json:"accessKey" yaml:"access-key"` // accessKey
+ SecretKey string `mapstructure:"secret-key" json:"secretKey" yaml:"secret-key"` // secretKey
+ UseCdnDomains bool `mapstructure:"use-cdn-domains" json:"useCdnDomains" yaml:"use-cdn-domains"` // 上传是否使用CDN上传加速
}
type AliyunOSS struct {
diff --git a/server/config/redis.go b/server/config/redis.go
index 6eb8e524..b5bacebd 100644
--- a/server/config/redis.go
+++ b/server/config/redis.go
@@ -2,6 +2,6 @@ package config
type Redis struct {
DB int `mapstructure:"db" json:"db" yaml:"db"`
- Addr string `mapstructure:"addr" json:"addr" yaml:"addr"`
- Password string `mapstructure:"password" json:"password" yaml:"password"`
+ Addr string `mapstructure:"addr" json:"addr" yaml:"addr"` // 服务器地址:端口
+ Password string `mapstructure:"password" json:"password" yaml:"password"` // 密码
}
diff --git a/server/config/system.go b/server/config/system.go
index d072379a..768788ab 100644
--- a/server/config/system.go
+++ b/server/config/system.go
@@ -1,9 +1,9 @@
package config
type System struct {
- Env string `mapstructure:"env" json:"env" yaml:"env"`
- Addr int `mapstructure:"addr" json:"addr" yaml:"addr"`
- DbType string `mapstructure:"db-type" json:"dbType" yaml:"db-type"`
- OssType string `mapstructure:"oss-type" json:"ossType" yaml:"oss-type"`
- UseMultipoint bool `mapstructure:"use-multipoint" json:"useMultipoint" yaml:"use-multipoint"`
+ Env string `mapstructure:"env" json:"env" yaml:"env"` // 环境值
+ Addr int `mapstructure:"addr" json:"addr" yaml:"addr"` // 端口值
+ DbType string `mapstructure:"db-type" json:"dbType" yaml:"db-type"` // 数据库类型:mysql(默认)|sqlite|sqlserver|postgresql
+ OssType string `mapstructure:"oss-type" json:"ossType" yaml:"oss-type"` // Oss类型
+ UseMultipoint bool `mapstructure:"use-multipoint" json:"useMultipoint" yaml:"use-multipoint"` // 多点登录拦截
}
diff --git a/server/config/zap.go b/server/config/zap.go
index f83b6fb1..f681ca83 100644
--- a/server/config/zap.go
+++ b/server/config/zap.go
@@ -1,13 +1,13 @@
package config
type Zap struct {
- Level string `mapstructure:"level" json:"level" yaml:"level"`
- Format string `mapstructure:"format" json:"format" yaml:"format"`
- Prefix string `mapstructure:"prefix" json:"prefix" yaml:"prefix"`
- Director string `mapstructure:"director" json:"director" yaml:"director"`
- LinkName string `mapstructure:"link-name" json:"linkName" yaml:"link-name"`
- ShowLine bool `mapstructure:"show-line" json:"showLine" yaml:"showLine"`
- EncodeLevel string `mapstructure:"encode-level" json:"encodeLevel" yaml:"encode-level"`
- StacktraceKey string `mapstructure:"stacktrace-key" json:"stacktraceKey" yaml:"stacktrace-key"`
- LogInConsole bool `mapstructure:"log-in-console" json:"logInConsole" yaml:"log-in-console"`
+ Level string `mapstructure:"level" json:"level" yaml:"level"` // 级别
+ Format string `mapstructure:"format" json:"format" yaml:"format"` // 输出
+ Prefix string `mapstructure:"prefix" json:"prefix" yaml:"prefix"` // 日志前缀
+ Director string `mapstructure:"director" json:"director" yaml:"director"` // 日志文件夹
+ LinkName string `mapstructure:"link-name" json:"linkName" yaml:"link-name"` // 软链接名称
+ ShowLine bool `mapstructure:"show-line" json:"showLine" yaml:"showLine"` // 显示行
+ EncodeLevel string `mapstructure:"encode-level" json:"encodeLevel" yaml:"encode-level"` // 编码级
+ StacktraceKey string `mapstructure:"stacktrace-key" json:"stacktraceKey" yaml:"stacktrace-key"` // 栈名
+ LogInConsole bool `mapstructure:"log-in-console" json:"logInConsole" yaml:"log-in-console"` // 输出控制台
}
diff --git a/server/docs/docs.go b/server/docs/docs.go
index 3d1718d9..b78c9334 100644
--- a/server/docs/docs.go
+++ b/server/docs/docs.go
@@ -1,6 +1,6 @@
// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
// This file was generated by swaggo/swag at
-// 2021-04-06 11:56:23.4731221 +0800 CST m=+1.258292701
+// 2021-04-30 13:57:23.4731221 +0800 CST m=+1.258292701
package docs
@@ -20,7 +20,6 @@ var doc = `{
"description": "{{.Description}}",
"title": "{{.Title}}",
"contact": {},
- "license": {},
"version": "{{.Version}}"
},
"host": "{{.Host}}",
@@ -50,7 +49,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.SysApi"
}
}
@@ -89,7 +87,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.SysApi"
}
}
@@ -128,7 +125,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/request.IdsReq"
}
}
@@ -194,7 +190,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/request.GetById"
}
}
@@ -233,7 +228,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/request.SearchApiParams"
}
}
@@ -272,7 +266,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.SysApi"
}
}
@@ -311,7 +304,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/response.SysAuthorityCopyResponse"
}
}
@@ -350,7 +342,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.SysAuthority"
}
}
@@ -389,7 +380,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.SysAuthority"
}
}
@@ -428,7 +418,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/request.PageInfo"
}
}
@@ -467,7 +456,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.SysAuthority"
}
}
@@ -506,7 +494,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.SysAuthority"
}
}
@@ -545,7 +532,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.AutoCodeStruct"
}
}
@@ -665,7 +651,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.AutoCodeStruct"
}
}
@@ -723,7 +708,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/request.Login"
}
}
@@ -762,7 +746,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/request.CasbinInReceive"
}
}
@@ -801,7 +784,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/request.CasbinInReceive"
}
}
@@ -840,7 +822,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.ExaCustomer"
}
}
@@ -877,7 +858,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.ExaCustomer"
}
}
@@ -914,7 +894,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.ExaCustomer"
}
}
@@ -951,7 +930,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.ExaCustomer"
}
}
@@ -990,7 +968,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/request.PageInfo"
}
}
@@ -1056,7 +1033,9 @@ var doc = `{
}
],
"responses": {
- "200": {}
+ "200": {
+ "description": ""
+ }
}
}
},
@@ -1084,13 +1063,14 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.ExcelInfo"
}
}
],
"responses": {
- "200": {}
+ "200": {
+ "description": ""
+ }
}
}
},
@@ -1211,7 +1191,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.ExaFileUploadAndDownload"
}
}
@@ -1286,7 +1265,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/request.PageInfo"
}
}
@@ -1408,7 +1386,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/request.InitDB"
}
}
@@ -1474,7 +1451,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/request.GetAuthorityId"
}
}
@@ -1513,7 +1489,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.SysBaseMenu"
}
}
@@ -1552,7 +1527,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/request.AddMenuAuthorityInfo"
}
}
@@ -1591,7 +1565,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/request.GetById"
}
}
@@ -1630,7 +1603,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/request.GetById"
}
}
@@ -1666,7 +1638,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/request.Empty"
}
}
@@ -1702,7 +1673,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/request.Empty"
}
}
@@ -1741,7 +1711,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/request.PageInfo"
}
}
@@ -1780,7 +1749,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.SysBaseMenu"
}
}
@@ -1921,7 +1889,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.SysDictionary"
}
}
@@ -1960,7 +1927,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.SysDictionary"
}
}
@@ -1999,7 +1965,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.SysDictionary"
}
}
@@ -2038,7 +2003,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/request.SysDictionarySearch"
}
}
@@ -2077,7 +2041,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.SysDictionary"
}
}
@@ -2116,7 +2079,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.SysDictionaryDetail"
}
}
@@ -2155,7 +2117,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.SysDictionaryDetail"
}
}
@@ -2194,7 +2155,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.SysDictionaryDetail"
}
}
@@ -2233,7 +2193,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/request.SysDictionaryDetailSearch"
}
}
@@ -2272,7 +2231,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.SysDictionaryDetail"
}
}
@@ -2311,7 +2269,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.SysOperationRecord"
}
}
@@ -2350,7 +2307,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.SysOperationRecord"
}
}
@@ -2389,7 +2345,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/request.IdsReq"
}
}
@@ -2428,7 +2383,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.SysOperationRecord"
}
}
@@ -2467,7 +2421,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/request.SysOperationRecordSearch"
}
}
@@ -2575,7 +2528,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.System"
}
}
@@ -2611,7 +2563,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/request.ChangePasswordStruct"
}
}
@@ -2650,7 +2601,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/request.GetById"
}
}
@@ -2689,7 +2639,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/request.PageInfo"
}
}
@@ -2720,7 +2669,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.SysUser"
}
}
@@ -2759,7 +2707,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/request.SetUserAuth"
}
}
@@ -2798,7 +2745,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.SysUser"
}
}
@@ -2883,12 +2829,15 @@ var doc = `{
"type": "object",
"properties": {
"imgHeight": {
+ "description": "图片高度",
"type": "integer"
},
"imgWidth": {
+ "description": "图片宽度",
"type": "integer"
},
"keyLong": {
+ "description": "验证码长度",
"type": "integer"
}
}
@@ -2897,6 +2846,21 @@ var doc = `{
"type": "object",
"properties": {
"modelPath": {
+ "description": "Model路径",
+ "type": "string"
+ }
+ }
+ },
+ "config.Detail": {
+ "type": "object",
+ "properties": {
+ "compareField": {
+ "type": "string"
+ },
+ "interval": {
+ "type": "string"
+ },
+ "tableName": {
"type": "string"
}
}
@@ -2905,24 +2869,31 @@ var doc = `{
"type": "object",
"properties": {
"from": {
+ "description": "收件人",
"type": "string"
},
"host": {
+ "description": "服务器地址",
"type": "string"
},
"isSSL": {
+ "description": "是否SSL",
"type": "boolean"
},
"nickname": {
+ "description": "昵称",
"type": "string"
},
"port": {
+ "description": "端口",
"type": "integer"
},
"secret": {
+ "description": "密钥",
"type": "string"
},
"to": {
+ "description": "收件人",
"type": "string"
}
}
@@ -2939,12 +2910,15 @@ var doc = `{
"type": "object",
"properties": {
"bufferTime": {
+ "description": "缓冲时间",
"type": "integer"
},
"expiresTime": {
+ "description": "过期时间",
"type": "integer"
},
"signingKey": {
+ "description": "jwt签名",
"type": "string"
}
}
@@ -2953,6 +2927,7 @@ var doc = `{
"type": "object",
"properties": {
"path": {
+ "description": "本地文件路径",
"type": "string"
}
}
@@ -2964,6 +2939,7 @@ var doc = `{
"type": "string"
},
"dbname": {
+ "description": "数据库名",
"type": "string"
},
"logMode": {
@@ -2979,12 +2955,15 @@ var doc = `{
"type": "integer"
},
"password": {
+ "description": "数据库密码",
"type": "string"
},
"path": {
+ "description": "服务器地址:端口",
"type": "string"
},
"username": {
+ "description": "数据库用户名",
"type": "string"
}
}
@@ -2993,24 +2972,31 @@ var doc = `{
"type": "object",
"properties": {
"accessKey": {
+ "description": "accessKey",
"type": "string"
},
"bucket": {
+ "description": "空间名称",
"type": "string"
},
"imgPath": {
+ "description": "CDN加速域名",
"type": "string"
},
"secretKey": {
+ "description": "secretKey",
"type": "string"
},
"useCdnDomains": {
+ "description": "上传是否使用CDN上传加速",
"type": "boolean"
},
"useHttps": {
+ "description": "是否使用https",
"type": "boolean"
},
"zone": {
+ "description": "存储区域",
"type": "string"
}
}
@@ -3019,12 +3005,14 @@ var doc = `{
"type": "object",
"properties": {
"addr": {
+ "description": "服务器地址:端口",
"type": "string"
},
"db": {
"type": "integer"
},
"password": {
+ "description": "密码",
"type": "string"
}
}
@@ -3033,62 +3021,51 @@ var doc = `{
"type": "object",
"properties": {
"aliyunOSS": {
- "type": "object",
"$ref": "#/definitions/config.AliyunOSS"
},
"autoCode": {
"description": "auto",
- "type": "object",
"$ref": "#/definitions/config.Autocode"
},
"captcha": {
- "type": "object",
"$ref": "#/definitions/config.Captcha"
},
"casbin": {
- "type": "object",
"$ref": "#/definitions/config.Casbin"
},
"email": {
- "type": "object",
"$ref": "#/definitions/config.Email"
},
"excel": {
- "type": "object",
"$ref": "#/definitions/config.Excel"
},
"jwt": {
- "type": "object",
"$ref": "#/definitions/config.JWT"
},
"local": {
"description": "oss",
- "type": "object",
"$ref": "#/definitions/config.Local"
},
"mysql": {
"description": "gorm",
- "type": "object",
"$ref": "#/definitions/config.Mysql"
},
"qiniu": {
- "type": "object",
"$ref": "#/definitions/config.Qiniu"
},
"redis": {
- "type": "object",
"$ref": "#/definitions/config.Redis"
},
"system": {
- "type": "object",
"$ref": "#/definitions/config.System"
},
"tencentCOS": {
- "type": "object",
"$ref": "#/definitions/config.TencentCOS"
},
+ "timer": {
+ "$ref": "#/definitions/config.Timer"
+ },
"zap": {
- "type": "object",
"$ref": "#/definitions/config.Zap"
}
}
@@ -3097,18 +3074,23 @@ var doc = `{
"type": "object",
"properties": {
"addr": {
+ "description": "端口值",
"type": "integer"
},
"dbType": {
+ "description": "数据库类型:mysql(默认)|sqlite|sqlserver|postgresql",
"type": "string"
},
"env": {
+ "description": "环境值",
"type": "string"
},
"ossType": {
+ "description": "Oss类型",
"type": "string"
},
"useMultipoint": {
+ "description": "多点登录拦截",
"type": "boolean"
}
}
@@ -3136,34 +3118,60 @@ var doc = `{
}
}
},
+ "config.Timer": {
+ "type": "object",
+ "properties": {
+ "detail": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/config.Detail"
+ }
+ },
+ "spec": {
+ "type": "string"
+ },
+ "start": {
+ "type": "boolean"
+ }
+ }
+ },
"config.Zap": {
"type": "object",
"properties": {
"director": {
+ "description": "日志文件夹",
"type": "string"
},
"encodeLevel": {
+ "description": "编码级",
"type": "string"
},
"format": {
+ "description": "输出",
"type": "string"
},
"level": {
+ "description": "级别",
"type": "string"
},
"linkName": {
+ "description": "软链接名称",
"type": "string"
},
"logInConsole": {
+ "description": "输出控制台",
"type": "boolean"
},
"prefix": {
+ "description": "日志前缀",
"type": "string"
},
"showLine": {
+ "description": "显示行",
"type": "boolean"
},
"stacktraceKey": {
+ "description": "栈名",
"type": "string"
}
}
@@ -3172,15 +3180,19 @@ var doc = `{
"type": "object",
"properties": {
"abbreviation": {
+ "description": "Struct简称",
"type": "string"
},
"autoCreateApiToSql": {
+ "description": "是否自动创建api",
"type": "boolean"
},
"autoMoveFile": {
+ "description": "是否自动移动文件",
"type": "boolean"
},
"description": {
+ "description": "Struct中文名称",
"type": "string"
},
"fields": {
@@ -3190,12 +3202,15 @@ var doc = `{
}
},
"packageName": {
+ "description": "文件名称",
"type": "string"
},
"structName": {
+ "description": "Struct名称",
"type": "string"
},
"tableName": {
+ "description": "表名",
"type": "string"
}
}
@@ -3204,28 +3219,35 @@ var doc = `{
"type": "object",
"properties": {
"createdAt": {
+ "description": "创建时间",
"type": "string"
},
"customerName": {
+ "description": "客户名",
"type": "string"
},
"customerPhoneData": {
+ "description": "客户手机号",
"type": "string"
},
"id": {
+ "description": "主键ID",
"type": "integer"
},
"sysUser": {
- "type": "object",
+ "description": "管理详情",
"$ref": "#/definitions/model.SysUser"
},
"sysUserAuthorityID": {
+ "description": "管理角色ID",
"type": "string"
},
"sysUserId": {
+ "description": "管理ID",
"type": "integer"
},
"updatedAt": {
+ "description": "更新时间",
"type": "string"
}
}
@@ -3234,24 +3256,31 @@ var doc = `{
"type": "object",
"properties": {
"createdAt": {
+ "description": "创建时间",
"type": "string"
},
"id": {
+ "description": "主键ID",
"type": "integer"
},
"key": {
+ "description": "编号",
"type": "string"
},
"name": {
+ "description": "文件名",
"type": "string"
},
"tag": {
+ "description": "文件标签",
"type": "string"
},
"updatedAt": {
+ "description": "更新时间",
"type": "string"
},
"url": {
+ "description": "文件地址",
"type": "string"
}
}
@@ -3260,6 +3289,7 @@ var doc = `{
"type": "object",
"properties": {
"fileName": {
+ "description": "文件名",
"type": "string"
},
"infoList": {
@@ -3274,33 +3304,43 @@ var doc = `{
"type": "object",
"properties": {
"columnName": {
+ "description": "数据库字段",
"type": "string"
},
"comment": {
+ "description": "数据库字段描述",
"type": "string"
},
"dataType": {
+ "description": "数据库字段类型",
"type": "string"
},
"dataTypeLong": {
+ "description": "数据库字段长度",
"type": "string"
},
"dictType": {
+ "description": "字典",
"type": "string"
},
"fieldDesc": {
+ "description": "中文名",
"type": "string"
},
"fieldJson": {
+ "description": "FieldJson",
"type": "string"
},
"fieldName": {
+ "description": "Field名",
"type": "string"
},
"fieldSearchType": {
+ "description": "搜索条件",
"type": "string"
},
"fieldType": {
+ "description": "Field数据类型",
"type": "string"
}
}
@@ -3309,24 +3349,31 @@ var doc = `{
"type": "object",
"properties": {
"apiGroup": {
+ "description": "api组",
"type": "string"
},
"createdAt": {
+ "description": "创建时间",
"type": "string"
},
"description": {
+ "description": "api中文描述",
"type": "string"
},
"id": {
+ "description": "主键ID",
"type": "integer"
},
"method": {
+ "description": "方法:创建POST(默认)|查看GET|更新PUT|删除DELETE",
"type": "string"
},
"path": {
+ "description": "api路径",
"type": "string"
},
"updatedAt": {
+ "description": "更新时间",
"type": "string"
}
}
@@ -3335,9 +3382,11 @@ var doc = `{
"type": "object",
"properties": {
"authorityId": {
+ "description": "角色ID",
"type": "string"
},
"authorityName": {
+ "description": "角色名",
"type": "string"
},
"children": {
@@ -3356,6 +3405,7 @@ var doc = `{
}
},
"defaultRouter": {
+ "description": "默认菜单(默认dashboard)",
"type": "string"
},
"deletedAt": {
@@ -3368,6 +3418,7 @@ var doc = `{
}
},
"parentId": {
+ "description": "父角色ID",
"type": "string"
},
"updatedAt": {
@@ -3391,30 +3442,39 @@ var doc = `{
}
},
"closeTab": {
+ "description": "自动关闭tab",
"type": "boolean"
},
"component": {
+ "description": "对应前端文件路径",
"type": "string"
},
"createdAt": {
+ "description": "创建时间",
"type": "string"
},
"defaultMenu": {
+ "description": "是否是基础路由(开发中)",
"type": "boolean"
},
"hidden": {
+ "description": "是否在列表隐藏",
"type": "boolean"
},
"icon": {
+ "description": "菜单图标",
"type": "string"
},
"id": {
+ "description": "主键ID",
"type": "integer"
},
"keepAlive": {
+ "description": "是否缓存",
"type": "boolean"
},
"name": {
+ "description": "路由name",
"type": "string"
},
"parameters": {
@@ -3424,18 +3484,23 @@ var doc = `{
}
},
"parentId": {
+ "description": "父菜单ID",
"type": "string"
},
"path": {
+ "description": "路由path",
"type": "string"
},
"sort": {
+ "description": "排序标记",
"type": "integer"
},
"title": {
+ "description": "菜单名",
"type": "string"
},
"updatedAt": {
+ "description": "更新时间",
"type": "string"
}
}
@@ -3444,24 +3509,30 @@ var doc = `{
"type": "object",
"properties": {
"createdAt": {
+ "description": "创建时间",
"type": "string"
},
"id": {
+ "description": "主键ID",
"type": "integer"
},
"key": {
+ "description": "地址栏携带参数的key",
"type": "string"
},
"sysBaseMenuID": {
"type": "integer"
},
"type": {
+ "description": "地址栏携带参数为params还是query",
"type": "string"
},
"updatedAt": {
+ "description": "更新时间",
"type": "string"
},
"value": {
+ "description": "地址栏携带参数的值",
"type": "string"
}
}
@@ -3470,18 +3541,23 @@ var doc = `{
"type": "object",
"properties": {
"createdAt": {
+ "description": "创建时间",
"type": "string"
},
"desc": {
+ "description": "描述",
"type": "string"
},
"id": {
+ "description": "主键ID",
"type": "integer"
},
"name": {
+ "description": "字典名(中)",
"type": "string"
},
"status": {
+ "description": "状态",
"type": "boolean"
},
"sysDictionaryDetails": {
@@ -3491,9 +3567,11 @@ var doc = `{
}
},
"type": {
+ "description": "字典名(英)",
"type": "string"
},
"updatedAt": {
+ "description": "更新时间",
"type": "string"
}
}
@@ -3502,27 +3580,35 @@ var doc = `{
"type": "object",
"properties": {
"createdAt": {
+ "description": "创建时间",
"type": "string"
},
"id": {
+ "description": "主键ID",
"type": "integer"
},
"label": {
+ "description": "展示值",
"type": "string"
},
"sort": {
+ "description": "排序标记",
"type": "integer"
},
"status": {
+ "description": "启用状态",
"type": "boolean"
},
"sysDictionaryID": {
+ "description": "关联标记",
"type": "integer"
},
"updatedAt": {
+ "description": "更新时间",
"type": "string"
},
"value": {
+ "description": "字典值",
"type": "integer"
}
}
@@ -3531,46 +3617,58 @@ var doc = `{
"type": "object",
"properties": {
"agent": {
+ "description": "代理",
"type": "string"
},
"body": {
+ "description": "请求Body",
"type": "string"
},
"createdAt": {
+ "description": "创建时间",
"type": "string"
},
"error_message": {
+ "description": "错误信息",
"type": "string"
},
"id": {
+ "description": "主键ID",
"type": "integer"
},
"ip": {
+ "description": "请求ip",
"type": "string"
},
"latency": {
+ "description": "延迟",
"type": "string"
},
"method": {
+ "description": "请求方法",
"type": "string"
},
"path": {
+ "description": "请求路径",
"type": "string"
},
"resp": {
+ "description": "响应Body",
"type": "string"
},
"status": {
+ "description": "请求状态",
"type": "integer"
},
"updatedAt": {
+ "description": "更新时间",
"type": "string"
},
"user": {
- "type": "object",
"$ref": "#/definitions/model.SysUser"
},
"user_id": {
+ "description": "用户id",
"type": "integer"
}
}
@@ -3579,31 +3677,38 @@ var doc = `{
"type": "object",
"properties": {
"authority": {
- "type": "object",
"$ref": "#/definitions/model.SysAuthority"
},
"authorityId": {
+ "description": "用户角色ID",
"type": "string"
},
"createdAt": {
+ "description": "创建时间",
"type": "string"
},
"headerImg": {
+ "description": "用户头像",
"type": "string"
},
"id": {
+ "description": "主键ID",
"type": "integer"
},
"nickName": {
+ "description": "用户昵称\"",
"type": "string"
},
"updatedAt": {
+ "description": "更新时间",
"type": "string"
},
"userName": {
+ "description": "用户登录名",
"type": "string"
},
"uuid": {
+ "description": "用户UUID",
"type": "string"
}
}
@@ -3612,7 +3717,6 @@ var doc = `{
"type": "object",
"properties": {
"config": {
- "type": "object",
"$ref": "#/definitions/config.Server"
}
}
@@ -3621,6 +3725,7 @@ var doc = `{
"type": "object",
"properties": {
"authorityId": {
+ "description": "角色ID",
"type": "string"
},
"menus": {
@@ -3635,6 +3740,7 @@ var doc = `{
"type": "object",
"properties": {
"authorityId": {
+ "description": "权限id",
"type": "string"
},
"casbinInfos": {
@@ -3649,9 +3755,11 @@ var doc = `{
"type": "object",
"properties": {
"method": {
+ "description": "方法",
"type": "string"
},
"path": {
+ "description": "路径",
"type": "string"
}
}
@@ -3660,12 +3768,15 @@ var doc = `{
"type": "object",
"properties": {
"newPassword": {
+ "description": "新密码",
"type": "string"
},
"password": {
+ "description": "密码",
"type": "string"
},
"username": {
+ "description": "用户名",
"type": "string"
}
}
@@ -3677,6 +3788,7 @@ var doc = `{
"type": "object",
"properties": {
"authorityId": {
+ "description": "角色ID",
"type": "string"
}
}
@@ -3685,6 +3797,7 @@ var doc = `{
"type": "object",
"properties": {
"id": {
+ "description": "主键ID",
"type": "number"
}
}
@@ -3708,18 +3821,23 @@ var doc = `{
],
"properties": {
"dbName": {
+ "description": "数据库名",
"type": "string"
},
"host": {
+ "description": "服务器地址",
"type": "string"
},
"password": {
+ "description": "数据库密码",
"type": "string"
},
"port": {
+ "description": "数据库连接端口",
"type": "string"
},
"userName": {
+ "description": "数据库用户名",
"type": "string"
}
}
@@ -3728,15 +3846,19 @@ var doc = `{
"type": "object",
"properties": {
"captcha": {
+ "description": "验证码",
"type": "string"
},
"captchaId": {
+ "description": "验证码ID",
"type": "string"
},
"password": {
+ "description": "密码",
"type": "string"
},
"username": {
+ "description": "用户名",
"type": "string"
}
}
@@ -3745,9 +3867,11 @@ var doc = `{
"type": "object",
"properties": {
"page": {
+ "description": "页码",
"type": "integer"
},
"pageSize": {
+ "description": "每页大小",
"type": "integer"
}
}
@@ -3756,36 +3880,47 @@ var doc = `{
"type": "object",
"properties": {
"apiGroup": {
+ "description": "api组",
"type": "string"
},
"createdAt": {
+ "description": "创建时间",
"type": "string"
},
"desc": {
+ "description": "排序方式:升序false(默认)|降序true",
"type": "boolean"
},
"description": {
+ "description": "api中文描述",
"type": "string"
},
"id": {
+ "description": "主键ID",
"type": "integer"
},
"method": {
+ "description": "方法:创建POST(默认)|查看GET|更新PUT|删除DELETE",
"type": "string"
},
"orderKey": {
+ "description": "排序",
"type": "string"
},
"page": {
+ "description": "页码",
"type": "integer"
},
"pageSize": {
+ "description": "每页大小",
"type": "integer"
},
"path": {
+ "description": "api路径",
"type": "string"
},
"updatedAt": {
+ "description": "更新时间",
"type": "string"
}
}
@@ -3794,9 +3929,11 @@ var doc = `{
"type": "object",
"properties": {
"authorityId": {
+ "description": "角色ID",
"type": "string"
},
"uuid": {
+ "description": "用户UUID",
"type": "string"
}
}
@@ -3805,33 +3942,43 @@ var doc = `{
"type": "object",
"properties": {
"createdAt": {
+ "description": "创建时间",
"type": "string"
},
"id": {
+ "description": "主键ID",
"type": "integer"
},
"label": {
+ "description": "展示值",
"type": "string"
},
"page": {
+ "description": "页码",
"type": "integer"
},
"pageSize": {
+ "description": "每页大小",
"type": "integer"
},
"sort": {
+ "description": "排序标记",
"type": "integer"
},
"status": {
+ "description": "启用状态",
"type": "boolean"
},
"sysDictionaryID": {
+ "description": "关联标记",
"type": "integer"
},
"updatedAt": {
+ "description": "更新时间",
"type": "string"
},
"value": {
+ "description": "字典值",
"type": "integer"
}
}
@@ -3840,24 +3987,31 @@ var doc = `{
"type": "object",
"properties": {
"createdAt": {
+ "description": "创建时间",
"type": "string"
},
"desc": {
+ "description": "描述",
"type": "string"
},
"id": {
+ "description": "主键ID",
"type": "integer"
},
"name": {
+ "description": "字典名(中)",
"type": "string"
},
"page": {
+ "description": "页码",
"type": "integer"
},
"pageSize": {
+ "description": "每页大小",
"type": "integer"
},
"status": {
+ "description": "状态",
"type": "boolean"
},
"sysDictionaryDetails": {
@@ -3867,9 +4021,11 @@ var doc = `{
}
},
"type": {
+ "description": "字典名(英)",
"type": "string"
},
"updatedAt": {
+ "description": "更新时间",
"type": "string"
}
}
@@ -3878,52 +4034,66 @@ var doc = `{
"type": "object",
"properties": {
"agent": {
+ "description": "代理",
"type": "string"
},
"body": {
+ "description": "请求Body",
"type": "string"
},
"createdAt": {
+ "description": "创建时间",
"type": "string"
},
"error_message": {
+ "description": "错误信息",
"type": "string"
},
"id": {
+ "description": "主键ID",
"type": "integer"
},
"ip": {
+ "description": "请求ip",
"type": "string"
},
"latency": {
+ "description": "延迟",
"type": "string"
},
"method": {
+ "description": "请求方法",
"type": "string"
},
"page": {
+ "description": "页码",
"type": "integer"
},
"pageSize": {
+ "description": "每页大小",
"type": "integer"
},
"path": {
+ "description": "请求路径",
"type": "string"
},
"resp": {
+ "description": "响应Body",
"type": "string"
},
"status": {
+ "description": "请求状态",
"type": "integer"
},
"updatedAt": {
+ "description": "更新时间",
"type": "string"
},
"user": {
- "type": "object",
"$ref": "#/definitions/model.SysUser"
},
"user_id": {
+ "description": "用户id",
"type": "integer"
}
}
@@ -3932,7 +4102,6 @@ var doc = `{
"type": "object",
"properties": {
"authority": {
- "type": "object",
"$ref": "#/definitions/model.SysAuthority"
},
"oldAuthorityId": {
diff --git a/server/docs/swagger.json b/server/docs/swagger.json
index 76ccb1dc..efac867b 100644
--- a/server/docs/swagger.json
+++ b/server/docs/swagger.json
@@ -4,7 +4,6 @@
"description": "This is a sample Server pets",
"title": "Swagger Example API",
"contact": {},
- "license": {},
"version": "0.0.1"
},
"basePath": "/",
@@ -33,7 +32,6 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.SysApi"
}
}
@@ -72,7 +70,6 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.SysApi"
}
}
@@ -111,7 +108,6 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/request.IdsReq"
}
}
@@ -177,7 +173,6 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/request.GetById"
}
}
@@ -216,7 +211,6 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/request.SearchApiParams"
}
}
@@ -255,7 +249,6 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.SysApi"
}
}
@@ -294,7 +287,6 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/response.SysAuthorityCopyResponse"
}
}
@@ -333,7 +325,6 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.SysAuthority"
}
}
@@ -372,7 +363,6 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.SysAuthority"
}
}
@@ -411,7 +401,6 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/request.PageInfo"
}
}
@@ -450,7 +439,6 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.SysAuthority"
}
}
@@ -489,7 +477,6 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.SysAuthority"
}
}
@@ -528,7 +515,6 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.AutoCodeStruct"
}
}
@@ -648,7 +634,6 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.AutoCodeStruct"
}
}
@@ -706,7 +691,6 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/request.Login"
}
}
@@ -745,7 +729,6 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/request.CasbinInReceive"
}
}
@@ -784,7 +767,6 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/request.CasbinInReceive"
}
}
@@ -823,7 +805,6 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.ExaCustomer"
}
}
@@ -860,7 +841,6 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.ExaCustomer"
}
}
@@ -897,7 +877,6 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.ExaCustomer"
}
}
@@ -934,7 +913,6 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.ExaCustomer"
}
}
@@ -973,7 +951,6 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/request.PageInfo"
}
}
@@ -1039,7 +1016,9 @@
}
],
"responses": {
- "200": {}
+ "200": {
+ "description": ""
+ }
}
}
},
@@ -1067,13 +1046,14 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.ExcelInfo"
}
}
],
"responses": {
- "200": {}
+ "200": {
+ "description": ""
+ }
}
}
},
@@ -1194,7 +1174,6 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.ExaFileUploadAndDownload"
}
}
@@ -1269,7 +1248,6 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/request.PageInfo"
}
}
@@ -1391,7 +1369,6 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/request.InitDB"
}
}
@@ -1457,7 +1434,6 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/request.GetAuthorityId"
}
}
@@ -1496,7 +1472,6 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.SysBaseMenu"
}
}
@@ -1535,7 +1510,6 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/request.AddMenuAuthorityInfo"
}
}
@@ -1574,7 +1548,6 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/request.GetById"
}
}
@@ -1613,7 +1586,6 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/request.GetById"
}
}
@@ -1649,7 +1621,6 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/request.Empty"
}
}
@@ -1685,7 +1656,6 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/request.Empty"
}
}
@@ -1724,7 +1694,6 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/request.PageInfo"
}
}
@@ -1763,7 +1732,6 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.SysBaseMenu"
}
}
@@ -1904,7 +1872,6 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.SysDictionary"
}
}
@@ -1943,7 +1910,6 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.SysDictionary"
}
}
@@ -1982,7 +1948,6 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.SysDictionary"
}
}
@@ -2021,7 +1986,6 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/request.SysDictionarySearch"
}
}
@@ -2060,7 +2024,6 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.SysDictionary"
}
}
@@ -2099,7 +2062,6 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.SysDictionaryDetail"
}
}
@@ -2138,7 +2100,6 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.SysDictionaryDetail"
}
}
@@ -2177,7 +2138,6 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.SysDictionaryDetail"
}
}
@@ -2216,7 +2176,6 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/request.SysDictionaryDetailSearch"
}
}
@@ -2255,7 +2214,6 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.SysDictionaryDetail"
}
}
@@ -2294,7 +2252,6 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.SysOperationRecord"
}
}
@@ -2333,7 +2290,6 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.SysOperationRecord"
}
}
@@ -2372,7 +2328,6 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/request.IdsReq"
}
}
@@ -2411,7 +2366,6 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.SysOperationRecord"
}
}
@@ -2450,7 +2404,6 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/request.SysOperationRecordSearch"
}
}
@@ -2558,7 +2511,6 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.System"
}
}
@@ -2594,7 +2546,6 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/request.ChangePasswordStruct"
}
}
@@ -2633,7 +2584,6 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/request.GetById"
}
}
@@ -2672,7 +2622,6 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/request.PageInfo"
}
}
@@ -2703,7 +2652,6 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.SysUser"
}
}
@@ -2742,7 +2690,6 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/request.SetUserAuth"
}
}
@@ -2781,7 +2728,6 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
"$ref": "#/definitions/model.SysUser"
}
}
@@ -2866,12 +2812,15 @@
"type": "object",
"properties": {
"imgHeight": {
+ "description": "图片高度",
"type": "integer"
},
"imgWidth": {
+ "description": "图片宽度",
"type": "integer"
},
"keyLong": {
+ "description": "验证码长度",
"type": "integer"
}
}
@@ -2880,6 +2829,21 @@
"type": "object",
"properties": {
"modelPath": {
+ "description": "Model路径",
+ "type": "string"
+ }
+ }
+ },
+ "config.Detail": {
+ "type": "object",
+ "properties": {
+ "compareField": {
+ "type": "string"
+ },
+ "interval": {
+ "type": "string"
+ },
+ "tableName": {
"type": "string"
}
}
@@ -2888,24 +2852,31 @@
"type": "object",
"properties": {
"from": {
+ "description": "收件人",
"type": "string"
},
"host": {
+ "description": "服务器地址",
"type": "string"
},
"isSSL": {
+ "description": "是否SSL",
"type": "boolean"
},
"nickname": {
+ "description": "昵称",
"type": "string"
},
"port": {
+ "description": "端口",
"type": "integer"
},
"secret": {
+ "description": "密钥",
"type": "string"
},
"to": {
+ "description": "收件人",
"type": "string"
}
}
@@ -2922,12 +2893,15 @@
"type": "object",
"properties": {
"bufferTime": {
+ "description": "缓冲时间",
"type": "integer"
},
"expiresTime": {
+ "description": "过期时间",
"type": "integer"
},
"signingKey": {
+ "description": "jwt签名",
"type": "string"
}
}
@@ -2936,6 +2910,7 @@
"type": "object",
"properties": {
"path": {
+ "description": "本地文件路径",
"type": "string"
}
}
@@ -2947,6 +2922,7 @@
"type": "string"
},
"dbname": {
+ "description": "数据库名",
"type": "string"
},
"logMode": {
@@ -2962,12 +2938,15 @@
"type": "integer"
},
"password": {
+ "description": "数据库密码",
"type": "string"
},
"path": {
+ "description": "服务器地址:端口",
"type": "string"
},
"username": {
+ "description": "数据库用户名",
"type": "string"
}
}
@@ -2976,24 +2955,31 @@
"type": "object",
"properties": {
"accessKey": {
+ "description": "accessKey",
"type": "string"
},
"bucket": {
+ "description": "空间名称",
"type": "string"
},
"imgPath": {
+ "description": "CDN加速域名",
"type": "string"
},
"secretKey": {
+ "description": "secretKey",
"type": "string"
},
"useCdnDomains": {
+ "description": "上传是否使用CDN上传加速",
"type": "boolean"
},
"useHttps": {
+ "description": "是否使用https",
"type": "boolean"
},
"zone": {
+ "description": "存储区域",
"type": "string"
}
}
@@ -3002,12 +2988,14 @@
"type": "object",
"properties": {
"addr": {
+ "description": "服务器地址:端口",
"type": "string"
},
"db": {
"type": "integer"
},
"password": {
+ "description": "密码",
"type": "string"
}
}
@@ -3016,62 +3004,51 @@
"type": "object",
"properties": {
"aliyunOSS": {
- "type": "object",
"$ref": "#/definitions/config.AliyunOSS"
},
"autoCode": {
"description": "auto",
- "type": "object",
"$ref": "#/definitions/config.Autocode"
},
"captcha": {
- "type": "object",
"$ref": "#/definitions/config.Captcha"
},
"casbin": {
- "type": "object",
"$ref": "#/definitions/config.Casbin"
},
"email": {
- "type": "object",
"$ref": "#/definitions/config.Email"
},
"excel": {
- "type": "object",
"$ref": "#/definitions/config.Excel"
},
"jwt": {
- "type": "object",
"$ref": "#/definitions/config.JWT"
},
"local": {
"description": "oss",
- "type": "object",
"$ref": "#/definitions/config.Local"
},
"mysql": {
"description": "gorm",
- "type": "object",
"$ref": "#/definitions/config.Mysql"
},
"qiniu": {
- "type": "object",
"$ref": "#/definitions/config.Qiniu"
},
"redis": {
- "type": "object",
"$ref": "#/definitions/config.Redis"
},
"system": {
- "type": "object",
"$ref": "#/definitions/config.System"
},
"tencentCOS": {
- "type": "object",
"$ref": "#/definitions/config.TencentCOS"
},
+ "timer": {
+ "$ref": "#/definitions/config.Timer"
+ },
"zap": {
- "type": "object",
"$ref": "#/definitions/config.Zap"
}
}
@@ -3080,18 +3057,23 @@
"type": "object",
"properties": {
"addr": {
+ "description": "端口值",
"type": "integer"
},
"dbType": {
+ "description": "数据库类型:mysql(默认)|sqlite|sqlserver|postgresql",
"type": "string"
},
"env": {
+ "description": "环境值",
"type": "string"
},
"ossType": {
+ "description": "Oss类型",
"type": "string"
},
"useMultipoint": {
+ "description": "多点登录拦截",
"type": "boolean"
}
}
@@ -3119,34 +3101,60 @@
}
}
},
+ "config.Timer": {
+ "type": "object",
+ "properties": {
+ "detail": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/config.Detail"
+ }
+ },
+ "spec": {
+ "type": "string"
+ },
+ "start": {
+ "type": "boolean"
+ }
+ }
+ },
"config.Zap": {
"type": "object",
"properties": {
"director": {
+ "description": "日志文件夹",
"type": "string"
},
"encodeLevel": {
+ "description": "编码级",
"type": "string"
},
"format": {
+ "description": "输出",
"type": "string"
},
"level": {
+ "description": "级别",
"type": "string"
},
"linkName": {
+ "description": "软链接名称",
"type": "string"
},
"logInConsole": {
+ "description": "输出控制台",
"type": "boolean"
},
"prefix": {
+ "description": "日志前缀",
"type": "string"
},
"showLine": {
+ "description": "显示行",
"type": "boolean"
},
"stacktraceKey": {
+ "description": "栈名",
"type": "string"
}
}
@@ -3155,15 +3163,19 @@
"type": "object",
"properties": {
"abbreviation": {
+ "description": "Struct简称",
"type": "string"
},
"autoCreateApiToSql": {
+ "description": "是否自动创建api",
"type": "boolean"
},
"autoMoveFile": {
+ "description": "是否自动移动文件",
"type": "boolean"
},
"description": {
+ "description": "Struct中文名称",
"type": "string"
},
"fields": {
@@ -3173,12 +3185,15 @@
}
},
"packageName": {
+ "description": "文件名称",
"type": "string"
},
"structName": {
+ "description": "Struct名称",
"type": "string"
},
"tableName": {
+ "description": "表名",
"type": "string"
}
}
@@ -3187,28 +3202,35 @@
"type": "object",
"properties": {
"createdAt": {
+ "description": "创建时间",
"type": "string"
},
"customerName": {
+ "description": "客户名",
"type": "string"
},
"customerPhoneData": {
+ "description": "客户手机号",
"type": "string"
},
"id": {
+ "description": "主键ID",
"type": "integer"
},
"sysUser": {
- "type": "object",
+ "description": "管理详情",
"$ref": "#/definitions/model.SysUser"
},
"sysUserAuthorityID": {
+ "description": "管理角色ID",
"type": "string"
},
"sysUserId": {
+ "description": "管理ID",
"type": "integer"
},
"updatedAt": {
+ "description": "更新时间",
"type": "string"
}
}
@@ -3217,24 +3239,31 @@
"type": "object",
"properties": {
"createdAt": {
+ "description": "创建时间",
"type": "string"
},
"id": {
+ "description": "主键ID",
"type": "integer"
},
"key": {
+ "description": "编号",
"type": "string"
},
"name": {
+ "description": "文件名",
"type": "string"
},
"tag": {
+ "description": "文件标签",
"type": "string"
},
"updatedAt": {
+ "description": "更新时间",
"type": "string"
},
"url": {
+ "description": "文件地址",
"type": "string"
}
}
@@ -3243,6 +3272,7 @@
"type": "object",
"properties": {
"fileName": {
+ "description": "文件名",
"type": "string"
},
"infoList": {
@@ -3257,33 +3287,43 @@
"type": "object",
"properties": {
"columnName": {
+ "description": "数据库字段",
"type": "string"
},
"comment": {
+ "description": "数据库字段描述",
"type": "string"
},
"dataType": {
+ "description": "数据库字段类型",
"type": "string"
},
"dataTypeLong": {
+ "description": "数据库字段长度",
"type": "string"
},
"dictType": {
+ "description": "字典",
"type": "string"
},
"fieldDesc": {
+ "description": "中文名",
"type": "string"
},
"fieldJson": {
+ "description": "FieldJson",
"type": "string"
},
"fieldName": {
+ "description": "Field名",
"type": "string"
},
"fieldSearchType": {
+ "description": "搜索条件",
"type": "string"
},
"fieldType": {
+ "description": "Field数据类型",
"type": "string"
}
}
@@ -3292,24 +3332,31 @@
"type": "object",
"properties": {
"apiGroup": {
+ "description": "api组",
"type": "string"
},
"createdAt": {
+ "description": "创建时间",
"type": "string"
},
"description": {
+ "description": "api中文描述",
"type": "string"
},
"id": {
+ "description": "主键ID",
"type": "integer"
},
"method": {
+ "description": "方法:创建POST(默认)|查看GET|更新PUT|删除DELETE",
"type": "string"
},
"path": {
+ "description": "api路径",
"type": "string"
},
"updatedAt": {
+ "description": "更新时间",
"type": "string"
}
}
@@ -3318,9 +3365,11 @@
"type": "object",
"properties": {
"authorityId": {
+ "description": "角色ID",
"type": "string"
},
"authorityName": {
+ "description": "角色名",
"type": "string"
},
"children": {
@@ -3339,6 +3388,7 @@
}
},
"defaultRouter": {
+ "description": "默认菜单(默认dashboard)",
"type": "string"
},
"deletedAt": {
@@ -3351,6 +3401,7 @@
}
},
"parentId": {
+ "description": "父角色ID",
"type": "string"
},
"updatedAt": {
@@ -3374,30 +3425,39 @@
}
},
"closeTab": {
+ "description": "自动关闭tab",
"type": "boolean"
},
"component": {
+ "description": "对应前端文件路径",
"type": "string"
},
"createdAt": {
+ "description": "创建时间",
"type": "string"
},
"defaultMenu": {
+ "description": "是否是基础路由(开发中)",
"type": "boolean"
},
"hidden": {
+ "description": "是否在列表隐藏",
"type": "boolean"
},
"icon": {
+ "description": "菜单图标",
"type": "string"
},
"id": {
+ "description": "主键ID",
"type": "integer"
},
"keepAlive": {
+ "description": "是否缓存",
"type": "boolean"
},
"name": {
+ "description": "路由name",
"type": "string"
},
"parameters": {
@@ -3407,18 +3467,23 @@
}
},
"parentId": {
+ "description": "父菜单ID",
"type": "string"
},
"path": {
+ "description": "路由path",
"type": "string"
},
"sort": {
+ "description": "排序标记",
"type": "integer"
},
"title": {
+ "description": "菜单名",
"type": "string"
},
"updatedAt": {
+ "description": "更新时间",
"type": "string"
}
}
@@ -3427,24 +3492,30 @@
"type": "object",
"properties": {
"createdAt": {
+ "description": "创建时间",
"type": "string"
},
"id": {
+ "description": "主键ID",
"type": "integer"
},
"key": {
+ "description": "地址栏携带参数的key",
"type": "string"
},
"sysBaseMenuID": {
"type": "integer"
},
"type": {
+ "description": "地址栏携带参数为params还是query",
"type": "string"
},
"updatedAt": {
+ "description": "更新时间",
"type": "string"
},
"value": {
+ "description": "地址栏携带参数的值",
"type": "string"
}
}
@@ -3453,18 +3524,23 @@
"type": "object",
"properties": {
"createdAt": {
+ "description": "创建时间",
"type": "string"
},
"desc": {
+ "description": "描述",
"type": "string"
},
"id": {
+ "description": "主键ID",
"type": "integer"
},
"name": {
+ "description": "字典名(中)",
"type": "string"
},
"status": {
+ "description": "状态",
"type": "boolean"
},
"sysDictionaryDetails": {
@@ -3474,9 +3550,11 @@
}
},
"type": {
+ "description": "字典名(英)",
"type": "string"
},
"updatedAt": {
+ "description": "更新时间",
"type": "string"
}
}
@@ -3485,27 +3563,35 @@
"type": "object",
"properties": {
"createdAt": {
+ "description": "创建时间",
"type": "string"
},
"id": {
+ "description": "主键ID",
"type": "integer"
},
"label": {
+ "description": "展示值",
"type": "string"
},
"sort": {
+ "description": "排序标记",
"type": "integer"
},
"status": {
+ "description": "启用状态",
"type": "boolean"
},
"sysDictionaryID": {
+ "description": "关联标记",
"type": "integer"
},
"updatedAt": {
+ "description": "更新时间",
"type": "string"
},
"value": {
+ "description": "字典值",
"type": "integer"
}
}
@@ -3514,46 +3600,58 @@
"type": "object",
"properties": {
"agent": {
+ "description": "代理",
"type": "string"
},
"body": {
+ "description": "请求Body",
"type": "string"
},
"createdAt": {
+ "description": "创建时间",
"type": "string"
},
"error_message": {
+ "description": "错误信息",
"type": "string"
},
"id": {
+ "description": "主键ID",
"type": "integer"
},
"ip": {
+ "description": "请求ip",
"type": "string"
},
"latency": {
+ "description": "延迟",
"type": "string"
},
"method": {
+ "description": "请求方法",
"type": "string"
},
"path": {
+ "description": "请求路径",
"type": "string"
},
"resp": {
+ "description": "响应Body",
"type": "string"
},
"status": {
+ "description": "请求状态",
"type": "integer"
},
"updatedAt": {
+ "description": "更新时间",
"type": "string"
},
"user": {
- "type": "object",
"$ref": "#/definitions/model.SysUser"
},
"user_id": {
+ "description": "用户id",
"type": "integer"
}
}
@@ -3562,31 +3660,38 @@
"type": "object",
"properties": {
"authority": {
- "type": "object",
"$ref": "#/definitions/model.SysAuthority"
},
"authorityId": {
+ "description": "用户角色ID",
"type": "string"
},
"createdAt": {
+ "description": "创建时间",
"type": "string"
},
"headerImg": {
+ "description": "用户头像",
"type": "string"
},
"id": {
+ "description": "主键ID",
"type": "integer"
},
"nickName": {
+ "description": "用户昵称\"",
"type": "string"
},
"updatedAt": {
+ "description": "更新时间",
"type": "string"
},
"userName": {
+ "description": "用户登录名",
"type": "string"
},
"uuid": {
+ "description": "用户UUID",
"type": "string"
}
}
@@ -3595,7 +3700,6 @@
"type": "object",
"properties": {
"config": {
- "type": "object",
"$ref": "#/definitions/config.Server"
}
}
@@ -3604,6 +3708,7 @@
"type": "object",
"properties": {
"authorityId": {
+ "description": "角色ID",
"type": "string"
},
"menus": {
@@ -3618,6 +3723,7 @@
"type": "object",
"properties": {
"authorityId": {
+ "description": "权限id",
"type": "string"
},
"casbinInfos": {
@@ -3632,9 +3738,11 @@
"type": "object",
"properties": {
"method": {
+ "description": "方法",
"type": "string"
},
"path": {
+ "description": "路径",
"type": "string"
}
}
@@ -3643,12 +3751,15 @@
"type": "object",
"properties": {
"newPassword": {
+ "description": "新密码",
"type": "string"
},
"password": {
+ "description": "密码",
"type": "string"
},
"username": {
+ "description": "用户名",
"type": "string"
}
}
@@ -3660,6 +3771,7 @@
"type": "object",
"properties": {
"authorityId": {
+ "description": "角色ID",
"type": "string"
}
}
@@ -3668,6 +3780,7 @@
"type": "object",
"properties": {
"id": {
+ "description": "主键ID",
"type": "number"
}
}
@@ -3691,18 +3804,23 @@
],
"properties": {
"dbName": {
+ "description": "数据库名",
"type": "string"
},
"host": {
+ "description": "服务器地址",
"type": "string"
},
"password": {
+ "description": "数据库密码",
"type": "string"
},
"port": {
+ "description": "数据库连接端口",
"type": "string"
},
"userName": {
+ "description": "数据库用户名",
"type": "string"
}
}
@@ -3711,15 +3829,19 @@
"type": "object",
"properties": {
"captcha": {
+ "description": "验证码",
"type": "string"
},
"captchaId": {
+ "description": "验证码ID",
"type": "string"
},
"password": {
+ "description": "密码",
"type": "string"
},
"username": {
+ "description": "用户名",
"type": "string"
}
}
@@ -3728,9 +3850,11 @@
"type": "object",
"properties": {
"page": {
+ "description": "页码",
"type": "integer"
},
"pageSize": {
+ "description": "每页大小",
"type": "integer"
}
}
@@ -3739,36 +3863,47 @@
"type": "object",
"properties": {
"apiGroup": {
+ "description": "api组",
"type": "string"
},
"createdAt": {
+ "description": "创建时间",
"type": "string"
},
"desc": {
+ "description": "排序方式:升序false(默认)|降序true",
"type": "boolean"
},
"description": {
+ "description": "api中文描述",
"type": "string"
},
"id": {
+ "description": "主键ID",
"type": "integer"
},
"method": {
+ "description": "方法:创建POST(默认)|查看GET|更新PUT|删除DELETE",
"type": "string"
},
"orderKey": {
+ "description": "排序",
"type": "string"
},
"page": {
+ "description": "页码",
"type": "integer"
},
"pageSize": {
+ "description": "每页大小",
"type": "integer"
},
"path": {
+ "description": "api路径",
"type": "string"
},
"updatedAt": {
+ "description": "更新时间",
"type": "string"
}
}
@@ -3777,9 +3912,11 @@
"type": "object",
"properties": {
"authorityId": {
+ "description": "角色ID",
"type": "string"
},
"uuid": {
+ "description": "用户UUID",
"type": "string"
}
}
@@ -3788,33 +3925,43 @@
"type": "object",
"properties": {
"createdAt": {
+ "description": "创建时间",
"type": "string"
},
"id": {
+ "description": "主键ID",
"type": "integer"
},
"label": {
+ "description": "展示值",
"type": "string"
},
"page": {
+ "description": "页码",
"type": "integer"
},
"pageSize": {
+ "description": "每页大小",
"type": "integer"
},
"sort": {
+ "description": "排序标记",
"type": "integer"
},
"status": {
+ "description": "启用状态",
"type": "boolean"
},
"sysDictionaryID": {
+ "description": "关联标记",
"type": "integer"
},
"updatedAt": {
+ "description": "更新时间",
"type": "string"
},
"value": {
+ "description": "字典值",
"type": "integer"
}
}
@@ -3823,24 +3970,31 @@
"type": "object",
"properties": {
"createdAt": {
+ "description": "创建时间",
"type": "string"
},
"desc": {
+ "description": "描述",
"type": "string"
},
"id": {
+ "description": "主键ID",
"type": "integer"
},
"name": {
+ "description": "字典名(中)",
"type": "string"
},
"page": {
+ "description": "页码",
"type": "integer"
},
"pageSize": {
+ "description": "每页大小",
"type": "integer"
},
"status": {
+ "description": "状态",
"type": "boolean"
},
"sysDictionaryDetails": {
@@ -3850,9 +4004,11 @@
}
},
"type": {
+ "description": "字典名(英)",
"type": "string"
},
"updatedAt": {
+ "description": "更新时间",
"type": "string"
}
}
@@ -3861,52 +4017,66 @@
"type": "object",
"properties": {
"agent": {
+ "description": "代理",
"type": "string"
},
"body": {
+ "description": "请求Body",
"type": "string"
},
"createdAt": {
+ "description": "创建时间",
"type": "string"
},
"error_message": {
+ "description": "错误信息",
"type": "string"
},
"id": {
+ "description": "主键ID",
"type": "integer"
},
"ip": {
+ "description": "请求ip",
"type": "string"
},
"latency": {
+ "description": "延迟",
"type": "string"
},
"method": {
+ "description": "请求方法",
"type": "string"
},
"page": {
+ "description": "页码",
"type": "integer"
},
"pageSize": {
+ "description": "每页大小",
"type": "integer"
},
"path": {
+ "description": "请求路径",
"type": "string"
},
"resp": {
+ "description": "响应Body",
"type": "string"
},
"status": {
+ "description": "请求状态",
"type": "integer"
},
"updatedAt": {
+ "description": "更新时间",
"type": "string"
},
"user": {
- "type": "object",
"$ref": "#/definitions/model.SysUser"
},
"user_id": {
+ "description": "用户id",
"type": "integer"
}
}
@@ -3915,7 +4085,6 @@
"type": "object",
"properties": {
"authority": {
- "type": "object",
"$ref": "#/definitions/model.SysAuthority"
},
"oldAuthorityId": {
diff --git a/server/docs/swagger.yaml b/server/docs/swagger.yaml
index 2249cbc3..325899ca 100644
--- a/server/docs/swagger.yaml
+++ b/server/docs/swagger.yaml
@@ -45,32 +45,52 @@ definitions:
config.Captcha:
properties:
imgHeight:
+ description: 图片高度
type: integer
imgWidth:
+ description: 图片宽度
type: integer
keyLong:
+ description: 验证码长度
type: integer
type: object
config.Casbin:
properties:
modelPath:
+ description: Model路径
+ type: string
+ type: object
+ config.Detail:
+ properties:
+ compareField:
+ type: string
+ interval:
+ type: string
+ tableName:
type: string
type: object
config.Email:
properties:
from:
+ description: 收件人
type: string
host:
+ description: 服务器地址
type: string
isSSL:
+ description: 是否SSL
type: boolean
nickname:
+ description: 昵称
type: string
port:
+ description: 端口
type: integer
secret:
+ description: 密钥
type: string
to:
+ description: 收件人
type: string
type: object
config.Excel:
@@ -81,15 +101,19 @@ definitions:
config.JWT:
properties:
bufferTime:
+ description: 缓冲时间
type: integer
expiresTime:
+ description: 过期时间
type: integer
signingKey:
+ description: jwt签名
type: string
type: object
config.Local:
properties:
path:
+ description: 本地文件路径
type: string
type: object
config.Mysql:
@@ -97,6 +121,7 @@ definitions:
config:
type: string
dbname:
+ description: 数据库名
type: string
logMode:
type: boolean
@@ -107,97 +132,102 @@ definitions:
maxOpenConns:
type: integer
password:
+ description: 数据库密码
type: string
path:
+ description: 服务器地址:端口
type: string
username:
+ description: 数据库用户名
type: string
type: object
config.Qiniu:
properties:
accessKey:
+ description: accessKey
type: string
bucket:
+ description: 空间名称
type: string
imgPath:
+ description: CDN加速域名
type: string
secretKey:
+ description: secretKey
type: string
useCdnDomains:
+ description: 上传是否使用CDN上传加速
type: boolean
useHttps:
+ description: 是否使用https
type: boolean
zone:
+ description: 存储区域
type: string
type: object
config.Redis:
properties:
addr:
+ description: 服务器地址:端口
type: string
db:
type: integer
password:
+ description: 密码
type: string
type: object
config.Server:
properties:
aliyunOSS:
$ref: '#/definitions/config.AliyunOSS'
- type: object
autoCode:
$ref: '#/definitions/config.Autocode'
description: auto
- type: object
captcha:
$ref: '#/definitions/config.Captcha'
- type: object
casbin:
$ref: '#/definitions/config.Casbin'
- type: object
email:
$ref: '#/definitions/config.Email'
- type: object
excel:
$ref: '#/definitions/config.Excel'
- type: object
jwt:
$ref: '#/definitions/config.JWT'
- type: object
local:
$ref: '#/definitions/config.Local'
description: oss
- type: object
mysql:
$ref: '#/definitions/config.Mysql'
description: gorm
- type: object
qiniu:
$ref: '#/definitions/config.Qiniu'
- type: object
redis:
$ref: '#/definitions/config.Redis'
- type: object
system:
$ref: '#/definitions/config.System'
- type: object
tencentCOS:
$ref: '#/definitions/config.TencentCOS'
- type: object
+ timer:
+ $ref: '#/definitions/config.Timer'
zap:
$ref: '#/definitions/config.Zap'
- type: object
type: object
config.System:
properties:
addr:
+ description: 端口值
type: integer
dbType:
+ description: 数据库类型:mysql(默认)|sqlite|sqlserver|postgresql
type: string
env:
+ description: 环境值
type: string
ossType:
+ description: Oss类型
type: string
useMultipoint:
+ description: 多点登录拦截
type: boolean
type: object
config.TencentCOS:
@@ -215,88 +245,130 @@ definitions:
secretKey:
type: string
type: object
+ config.Timer:
+ properties:
+ detail:
+ items:
+ $ref: '#/definitions/config.Detail'
+ type: array
+ spec:
+ type: string
+ start:
+ type: boolean
+ type: object
config.Zap:
properties:
director:
+ description: 日志文件夹
type: string
encodeLevel:
+ description: 编码级
type: string
format:
+ description: 输出
type: string
level:
+ description: 级别
type: string
linkName:
+ description: 软链接名称
type: string
logInConsole:
+ description: 输出控制台
type: boolean
prefix:
+ description: 日志前缀
type: string
showLine:
+ description: 显示行
type: boolean
stacktraceKey:
+ description: 栈名
type: string
type: object
model.AutoCodeStruct:
properties:
abbreviation:
+ description: Struct简称
type: string
autoCreateApiToSql:
+ description: 是否自动创建api
type: boolean
autoMoveFile:
+ description: 是否自动移动文件
type: boolean
description:
+ description: Struct中文名称
type: string
fields:
items:
$ref: '#/definitions/model.Field'
type: array
packageName:
+ description: 文件名称
type: string
structName:
+ description: Struct名称
type: string
tableName:
+ description: 表名
type: string
type: object
model.ExaCustomer:
properties:
createdAt:
+ description: 创建时间
type: string
customerName:
+ description: 客户名
type: string
customerPhoneData:
+ description: 客户手机号
type: string
id:
+ description: 主键ID
type: integer
sysUser:
$ref: '#/definitions/model.SysUser'
- type: object
+ description: 管理详情
sysUserAuthorityID:
+ description: 管理角色ID
type: string
sysUserId:
+ description: 管理ID
type: integer
updatedAt:
+ description: 更新时间
type: string
type: object
model.ExaFileUploadAndDownload:
properties:
createdAt:
+ description: 创建时间
type: string
id:
+ description: 主键ID
type: integer
key:
+ description: 编号
type: string
name:
+ description: 文件名
type: string
tag:
+ description: 文件标签
type: string
updatedAt:
+ description: 更新时间
type: string
url:
+ description: 文件地址
type: string
type: object
model.ExcelInfo:
properties:
fileName:
+ description: 文件名
type: string
infoList:
items:
@@ -306,48 +378,67 @@ definitions:
model.Field:
properties:
columnName:
+ description: 数据库字段
type: string
comment:
+ description: 数据库字段描述
type: string
dataType:
+ description: 数据库字段类型
type: string
dataTypeLong:
+ description: 数据库字段长度
type: string
dictType:
+ description: 字典
type: string
fieldDesc:
+ description: 中文名
type: string
fieldJson:
+ description: FieldJson
type: string
fieldName:
+ description: Field名
type: string
fieldSearchType:
+ description: 搜索条件
type: string
fieldType:
+ description: Field数据类型
type: string
type: object
model.SysApi:
properties:
apiGroup:
+ description: api组
type: string
createdAt:
+ description: 创建时间
type: string
description:
+ description: api中文描述
type: string
id:
+ description: 主键ID
type: integer
method:
+ description: 方法:创建POST(默认)|查看GET|更新PUT|删除DELETE
type: string
path:
+ description: api路径
type: string
updatedAt:
+ description: 更新时间
type: string
type: object
model.SysAuthority:
properties:
authorityId:
+ description: 角色ID
type: string
authorityName:
+ description: 角色名
type: string
children:
items:
@@ -360,6 +451,7 @@ definitions:
$ref: '#/definitions/model.SysAuthority'
type: array
defaultRouter:
+ description: 默认菜单(默认dashboard)
type: string
deletedAt:
type: string
@@ -368,6 +460,7 @@ definitions:
$ref: '#/definitions/model.SysBaseMenu'
type: array
parentId:
+ description: 父角色ID
type: string
updatedAt:
type: string
@@ -383,158 +476,212 @@ definitions:
$ref: '#/definitions/model.SysBaseMenu'
type: array
closeTab:
+ description: 自动关闭tab
type: boolean
component:
+ description: 对应前端文件路径
type: string
createdAt:
+ description: 创建时间
type: string
defaultMenu:
+ description: 是否是基础路由(开发中)
type: boolean
hidden:
+ description: 是否在列表隐藏
type: boolean
icon:
+ description: 菜单图标
type: string
id:
+ description: 主键ID
type: integer
keepAlive:
+ description: 是否缓存
type: boolean
name:
+ description: 路由name
type: string
parameters:
items:
$ref: '#/definitions/model.SysBaseMenuParameter'
type: array
parentId:
+ description: 父菜单ID
type: string
path:
+ description: 路由path
type: string
sort:
+ description: 排序标记
type: integer
title:
+ description: 菜单名
type: string
updatedAt:
+ description: 更新时间
type: string
type: object
model.SysBaseMenuParameter:
properties:
createdAt:
+ description: 创建时间
type: string
id:
+ description: 主键ID
type: integer
key:
+ description: 地址栏携带参数的key
type: string
sysBaseMenuID:
type: integer
type:
+ description: 地址栏携带参数为params还是query
type: string
updatedAt:
+ description: 更新时间
type: string
value:
+ description: 地址栏携带参数的值
type: string
type: object
model.SysDictionary:
properties:
createdAt:
+ description: 创建时间
type: string
desc:
+ description: 描述
type: string
id:
+ description: 主键ID
type: integer
name:
+ description: 字典名(中)
type: string
status:
+ description: 状态
type: boolean
sysDictionaryDetails:
items:
$ref: '#/definitions/model.SysDictionaryDetail'
type: array
type:
+ description: 字典名(英)
type: string
updatedAt:
+ description: 更新时间
type: string
type: object
model.SysDictionaryDetail:
properties:
createdAt:
+ description: 创建时间
type: string
id:
+ description: 主键ID
type: integer
label:
+ description: 展示值
type: string
sort:
+ description: 排序标记
type: integer
status:
+ description: 启用状态
type: boolean
sysDictionaryID:
+ description: 关联标记
type: integer
updatedAt:
+ description: 更新时间
type: string
value:
+ description: 字典值
type: integer
type: object
model.SysOperationRecord:
properties:
agent:
+ description: 代理
type: string
body:
+ description: 请求Body
type: string
createdAt:
+ description: 创建时间
type: string
error_message:
+ description: 错误信息
type: string
id:
+ description: 主键ID
type: integer
ip:
+ description: 请求ip
type: string
latency:
+ description: 延迟
type: string
method:
+ description: 请求方法
type: string
path:
+ description: 请求路径
type: string
resp:
+ description: 响应Body
type: string
status:
+ description: 请求状态
type: integer
updatedAt:
+ description: 更新时间
type: string
user:
$ref: '#/definitions/model.SysUser'
- type: object
user_id:
+ description: 用户id
type: integer
type: object
model.SysUser:
properties:
authority:
$ref: '#/definitions/model.SysAuthority'
- type: object
authorityId:
+ description: 用户角色ID
type: string
createdAt:
+ description: 创建时间
type: string
headerImg:
+ description: 用户头像
type: string
id:
+ description: 主键ID
type: integer
nickName:
+ description: 用户昵称"
type: string
updatedAt:
+ description: 更新时间
type: string
userName:
+ description: 用户登录名
type: string
uuid:
+ description: 用户UUID
type: string
type: object
model.System:
properties:
config:
$ref: '#/definitions/config.Server'
- type: object
type: object
request.AddMenuAuthorityInfo:
properties:
authorityId:
+ description: 角色ID
type: string
menus:
items:
@@ -544,6 +691,7 @@ definitions:
request.CasbinInReceive:
properties:
authorityId:
+ description: 权限id
type: string
casbinInfos:
items:
@@ -553,17 +701,22 @@ definitions:
request.CasbinInfo:
properties:
method:
+ description: 方法
type: string
path:
+ description: 路径
type: string
type: object
request.ChangePasswordStruct:
properties:
newPassword:
+ description: 新密码
type: string
password:
+ description: 密码
type: string
username:
+ description: 用户名
type: string
type: object
request.Empty:
@@ -571,11 +724,13 @@ definitions:
request.GetAuthorityId:
properties:
authorityId:
+ description: 角色ID
type: string
type: object
request.GetById:
properties:
id:
+ description: 主键ID
type: number
type: object
request.IdsReq:
@@ -588,14 +743,19 @@ definitions:
request.InitDB:
properties:
dbName:
+ description: 数据库名
type: string
host:
+ description: 服务器地址
type: string
password:
+ description: 数据库密码
type: string
port:
+ description: 数据库连接端口
type: string
userName:
+ description: 数据库用户名
type: string
required:
- dbName
@@ -604,149 +764,199 @@ definitions:
request.Login:
properties:
captcha:
+ description: 验证码
type: string
captchaId:
+ description: 验证码ID
type: string
password:
+ description: 密码
type: string
username:
+ description: 用户名
type: string
type: object
request.PageInfo:
properties:
page:
+ description: 页码
type: integer
pageSize:
+ description: 每页大小
type: integer
type: object
request.SearchApiParams:
properties:
apiGroup:
+ description: api组
type: string
createdAt:
+ description: 创建时间
type: string
desc:
+ description: 排序方式:升序false(默认)|降序true
type: boolean
description:
+ description: api中文描述
type: string
id:
+ description: 主键ID
type: integer
method:
+ description: 方法:创建POST(默认)|查看GET|更新PUT|删除DELETE
type: string
orderKey:
+ description: 排序
type: string
page:
+ description: 页码
type: integer
pageSize:
+ description: 每页大小
type: integer
path:
+ description: api路径
type: string
updatedAt:
+ description: 更新时间
type: string
type: object
request.SetUserAuth:
properties:
authorityId:
+ description: 角色ID
type: string
uuid:
+ description: 用户UUID
type: string
type: object
request.SysDictionaryDetailSearch:
properties:
createdAt:
+ description: 创建时间
type: string
id:
+ description: 主键ID
type: integer
label:
+ description: 展示值
type: string
page:
+ description: 页码
type: integer
pageSize:
+ description: 每页大小
type: integer
sort:
+ description: 排序标记
type: integer
status:
+ description: 启用状态
type: boolean
sysDictionaryID:
+ description: 关联标记
type: integer
updatedAt:
+ description: 更新时间
type: string
value:
+ description: 字典值
type: integer
type: object
request.SysDictionarySearch:
properties:
createdAt:
+ description: 创建时间
type: string
desc:
+ description: 描述
type: string
id:
+ description: 主键ID
type: integer
name:
+ description: 字典名(中)
type: string
page:
+ description: 页码
type: integer
pageSize:
+ description: 每页大小
type: integer
status:
+ description: 状态
type: boolean
sysDictionaryDetails:
items:
$ref: '#/definitions/model.SysDictionaryDetail'
type: array
type:
+ description: 字典名(英)
type: string
updatedAt:
+ description: 更新时间
type: string
type: object
request.SysOperationRecordSearch:
properties:
agent:
+ description: 代理
type: string
body:
+ description: 请求Body
type: string
createdAt:
+ description: 创建时间
type: string
error_message:
+ description: 错误信息
type: string
id:
+ description: 主键ID
type: integer
ip:
+ description: 请求ip
type: string
latency:
+ description: 延迟
type: string
method:
+ description: 请求方法
type: string
page:
+ description: 页码
type: integer
pageSize:
+ description: 每页大小
type: integer
path:
+ description: 请求路径
type: string
resp:
+ description: 响应Body
type: string
status:
+ description: 请求状态
type: integer
updatedAt:
+ description: 更新时间
type: string
user:
$ref: '#/definitions/model.SysUser'
- type: object
user_id:
+ description: 用户id
type: integer
type: object
response.SysAuthorityCopyResponse:
properties:
authority:
$ref: '#/definitions/model.SysAuthority'
- type: object
oldAuthorityId:
type: string
type: object
info:
contact: {}
description: This is a sample Server pets
- license: {}
title: Swagger Example API
version: 0.0.1
paths:
@@ -761,7 +971,6 @@ paths:
required: true
schema:
$ref: '#/definitions/model.SysApi'
- type: object
produces:
- application/json
responses:
@@ -785,7 +994,6 @@ paths:
required: true
schema:
$ref: '#/definitions/model.SysApi'
- type: object
produces:
- application/json
responses:
@@ -809,7 +1017,6 @@ paths:
required: true
schema:
$ref: '#/definitions/request.IdsReq'
- type: object
produces:
- application/json
responses:
@@ -849,7 +1056,6 @@ paths:
required: true
schema:
$ref: '#/definitions/request.GetById'
- type: object
produces:
- application/json
responses:
@@ -873,7 +1079,6 @@ paths:
required: true
schema:
$ref: '#/definitions/request.SearchApiParams'
- type: object
produces:
- application/json
responses:
@@ -897,7 +1102,6 @@ paths:
required: true
schema:
$ref: '#/definitions/model.SysApi'
- type: object
produces:
- application/json
responses:
@@ -921,7 +1125,6 @@ paths:
required: true
schema:
$ref: '#/definitions/response.SysAuthorityCopyResponse'
- type: object
produces:
- application/json
responses:
@@ -945,7 +1148,6 @@ paths:
required: true
schema:
$ref: '#/definitions/model.SysAuthority'
- type: object
produces:
- application/json
responses:
@@ -969,7 +1171,6 @@ paths:
required: true
schema:
$ref: '#/definitions/model.SysAuthority'
- type: object
produces:
- application/json
responses:
@@ -993,7 +1194,6 @@ paths:
required: true
schema:
$ref: '#/definitions/request.PageInfo'
- type: object
produces:
- application/json
responses:
@@ -1017,7 +1217,6 @@ paths:
required: true
schema:
$ref: '#/definitions/model.SysAuthority'
- type: object
produces:
- application/json
responses:
@@ -1041,7 +1240,6 @@ paths:
required: true
schema:
$ref: '#/definitions/model.SysAuthority'
- type: object
produces:
- application/json
responses:
@@ -1065,7 +1263,6 @@ paths:
required: true
schema:
$ref: '#/definitions/model.AutoCodeStruct'
- type: object
produces:
- application/json
responses:
@@ -1137,7 +1334,6 @@ paths:
required: true
schema:
$ref: '#/definitions/model.AutoCodeStruct'
- type: object
produces:
- application/json
responses:
@@ -1175,7 +1371,6 @@ paths:
required: true
schema:
$ref: '#/definitions/request.Login'
- type: object
produces:
- application/json
responses:
@@ -1197,7 +1392,6 @@ paths:
required: true
schema:
$ref: '#/definitions/request.CasbinInReceive'
- type: object
produces:
- application/json
responses:
@@ -1221,7 +1415,6 @@ paths:
required: true
schema:
$ref: '#/definitions/request.CasbinInReceive'
- type: object
produces:
- application/json
responses:
@@ -1245,7 +1438,6 @@ paths:
required: true
schema:
$ref: '#/definitions/model.ExaCustomer'
- type: object
produces:
- application/json
responses:
@@ -1268,7 +1460,6 @@ paths:
required: true
schema:
$ref: '#/definitions/model.ExaCustomer'
- type: object
produces:
- application/json
responses:
@@ -1291,7 +1482,6 @@ paths:
required: true
schema:
$ref: '#/definitions/model.ExaCustomer'
- type: object
produces:
- application/json
responses:
@@ -1314,7 +1504,6 @@ paths:
required: true
schema:
$ref: '#/definitions/model.ExaCustomer'
- type: object
produces:
- application/json
responses:
@@ -1338,7 +1527,6 @@ paths:
required: true
schema:
$ref: '#/definitions/request.PageInfo'
- type: object
produces:
- application/json
responses:
@@ -1378,7 +1566,8 @@ paths:
produces:
- application/json
responses:
- "200": {}
+ "200":
+ description: ""
security:
- ApiKeyAuth: []
summary: 下载模板
@@ -1395,11 +1584,11 @@ paths:
required: true
schema:
$ref: '#/definitions/model.ExcelInfo'
- type: object
produces:
- application/octet-stream
responses:
- "200": {}
+ "200":
+ description: ""
security:
- ApiKeyAuth: []
summary: 导出Excel
@@ -1472,7 +1661,6 @@ paths:
required: true
schema:
$ref: '#/definitions/model.ExaFileUploadAndDownload'
- type: object
produces:
- application/json
responses:
@@ -1518,7 +1706,6 @@ paths:
required: true
schema:
$ref: '#/definitions/request.PageInfo'
- type: object
produces:
- application/json
responses:
@@ -1596,7 +1783,6 @@ paths:
required: true
schema:
$ref: '#/definitions/request.InitDB'
- type: object
produces:
- application/json
responses:
@@ -1634,7 +1820,6 @@ paths:
required: true
schema:
$ref: '#/definitions/request.GetAuthorityId'
- type: object
produces:
- application/json
responses:
@@ -1658,7 +1843,6 @@ paths:
required: true
schema:
$ref: '#/definitions/model.SysBaseMenu'
- type: object
produces:
- application/json
responses:
@@ -1682,7 +1866,6 @@ paths:
required: true
schema:
$ref: '#/definitions/request.AddMenuAuthorityInfo'
- type: object
produces:
- application/json
responses:
@@ -1706,7 +1889,6 @@ paths:
required: true
schema:
$ref: '#/definitions/request.GetById'
- type: object
produces:
- application/json
responses:
@@ -1730,7 +1912,6 @@ paths:
required: true
schema:
$ref: '#/definitions/request.GetById'
- type: object
produces:
- application/json
responses:
@@ -1752,7 +1933,6 @@ paths:
required: true
schema:
$ref: '#/definitions/request.Empty'
- type: object
produces:
- application/json
responses:
@@ -1774,7 +1954,6 @@ paths:
required: true
schema:
$ref: '#/definitions/request.Empty'
- type: object
produces:
- application/json
responses:
@@ -1798,7 +1977,6 @@ paths:
required: true
schema:
$ref: '#/definitions/request.PageInfo'
- type: object
produces:
- application/json
responses:
@@ -1822,7 +2000,6 @@ paths:
required: true
schema:
$ref: '#/definitions/model.SysBaseMenu'
- type: object
produces:
- application/json
responses:
@@ -1908,7 +2085,6 @@ paths:
required: true
schema:
$ref: '#/definitions/model.SysDictionary'
- type: object
produces:
- application/json
responses:
@@ -1932,7 +2108,6 @@ paths:
required: true
schema:
$ref: '#/definitions/model.SysDictionary'
- type: object
produces:
- application/json
responses:
@@ -1956,7 +2131,6 @@ paths:
required: true
schema:
$ref: '#/definitions/model.SysDictionary'
- type: object
produces:
- application/json
responses:
@@ -1980,7 +2154,6 @@ paths:
required: true
schema:
$ref: '#/definitions/request.SysDictionarySearch'
- type: object
produces:
- application/json
responses:
@@ -2004,7 +2177,6 @@ paths:
required: true
schema:
$ref: '#/definitions/model.SysDictionary'
- type: object
produces:
- application/json
responses:
@@ -2028,7 +2200,6 @@ paths:
required: true
schema:
$ref: '#/definitions/model.SysDictionaryDetail'
- type: object
produces:
- application/json
responses:
@@ -2052,7 +2223,6 @@ paths:
required: true
schema:
$ref: '#/definitions/model.SysDictionaryDetail'
- type: object
produces:
- application/json
responses:
@@ -2076,7 +2246,6 @@ paths:
required: true
schema:
$ref: '#/definitions/model.SysDictionaryDetail'
- type: object
produces:
- application/json
responses:
@@ -2100,7 +2269,6 @@ paths:
required: true
schema:
$ref: '#/definitions/request.SysDictionaryDetailSearch'
- type: object
produces:
- application/json
responses:
@@ -2124,7 +2292,6 @@ paths:
required: true
schema:
$ref: '#/definitions/model.SysDictionaryDetail'
- type: object
produces:
- application/json
responses:
@@ -2148,7 +2315,6 @@ paths:
required: true
schema:
$ref: '#/definitions/model.SysOperationRecord'
- type: object
produces:
- application/json
responses:
@@ -2172,7 +2338,6 @@ paths:
required: true
schema:
$ref: '#/definitions/model.SysOperationRecord'
- type: object
produces:
- application/json
responses:
@@ -2196,7 +2361,6 @@ paths:
required: true
schema:
$ref: '#/definitions/request.IdsReq'
- type: object
produces:
- application/json
responses:
@@ -2220,7 +2384,6 @@ paths:
required: true
schema:
$ref: '#/definitions/model.SysOperationRecord'
- type: object
produces:
- application/json
responses:
@@ -2244,7 +2407,6 @@ paths:
required: true
schema:
$ref: '#/definitions/request.SysOperationRecordSearch'
- type: object
produces:
- application/json
responses:
@@ -2308,7 +2470,6 @@ paths:
required: true
schema:
$ref: '#/definitions/model.System'
- type: object
produces:
- application/json
responses:
@@ -2330,7 +2491,6 @@ paths:
required: true
schema:
$ref: '#/definitions/request.ChangePasswordStruct'
- type: object
produces:
- application/json
responses:
@@ -2354,7 +2514,6 @@ paths:
required: true
schema:
$ref: '#/definitions/request.GetById'
- type: object
produces:
- application/json
responses:
@@ -2378,7 +2537,6 @@ paths:
required: true
schema:
$ref: '#/definitions/request.PageInfo'
- type: object
produces:
- application/json
responses:
@@ -2400,7 +2558,6 @@ paths:
required: true
schema:
$ref: '#/definitions/model.SysUser'
- type: object
produces:
- application/json
responses:
@@ -2422,7 +2579,6 @@ paths:
required: true
schema:
$ref: '#/definitions/request.SetUserAuth'
- type: object
produces:
- application/json
responses:
@@ -2446,7 +2602,6 @@ paths:
required: true
schema:
$ref: '#/definitions/model.SysUser'
- type: object
produces:
- application/json
responses:
diff --git a/server/global/model.go b/server/global/model.go
index 06541f2f..2e2bb706 100644
--- a/server/global/model.go
+++ b/server/global/model.go
@@ -6,8 +6,8 @@ import (
)
type GVA_MODEL struct {
- ID uint `gorm:"primarykey"`
- CreatedAt time.Time
- UpdatedAt time.Time
- DeletedAt gorm.DeletedAt `gorm:"index" json:"-"`
+ ID uint `gorm:"primarykey"` // 主键ID
+ CreatedAt time.Time // 创建时间
+ UpdatedAt time.Time // 更新时间
+ DeletedAt gorm.DeletedAt `gorm:"index" json:"-"` // 删除时间
}
diff --git a/server/model/exa_customer.go b/server/model/exa_customer.go
index e4ea0ddf..066032c5 100644
--- a/server/model/exa_customer.go
+++ b/server/model/exa_customer.go
@@ -6,9 +6,9 @@ import (
type ExaCustomer struct {
global.GVA_MODEL
- CustomerName string `json:"customerName" form:"customerName" gorm:"comment:客户名"`
- CustomerPhoneData string `json:"customerPhoneData" form:"customerPhoneData" gorm:"comment:客户手机号"`
- SysUserID uint `json:"sysUserId" form:"sysUserId" gorm:"comment:管理ID"`
- SysUserAuthorityID string `json:"sysUserAuthorityID" form:"sysUserAuthorityID" gorm:"comment:管理角色ID"`
- SysUser SysUser `json:"sysUser" form:"sysUser" gorm:"comment:管理详情"`
+ CustomerName string `json:"customerName" form:"customerName" gorm:"comment:客户名"` // 客户名
+ CustomerPhoneData string `json:"customerPhoneData" form:"customerPhoneData" gorm:"comment:客户手机号"` // 客户手机号
+ SysUserID uint `json:"sysUserId" form:"sysUserId" gorm:"comment:管理ID"` // 管理ID
+ SysUserAuthorityID string `json:"sysUserAuthorityID" form:"sysUserAuthorityID" gorm:"comment:管理角色ID"` // 管理角色ID
+ SysUser SysUser `json:"sysUser" form:"sysUser" gorm:"comment:管理详情"` // 管理详情
}
diff --git a/server/model/exa_excel.go b/server/model/exa_excel.go
index c1d7f769..facaceb8 100644
--- a/server/model/exa_excel.go
+++ b/server/model/exa_excel.go
@@ -1,6 +1,6 @@
package model
type ExcelInfo struct {
- FileName string `json:"fileName"`
+ FileName string `json:"fileName"` // 文件名
InfoList []SysBaseMenu `json:"infoList"`
}
diff --git a/server/model/exa_file_upload_download.go b/server/model/exa_file_upload_download.go
index 0dc20022..5504375f 100644
--- a/server/model/exa_file_upload_download.go
+++ b/server/model/exa_file_upload_download.go
@@ -6,8 +6,8 @@ import (
type ExaFileUploadAndDownload struct {
global.GVA_MODEL
- Name string `json:"name" gorm:"comment:文件名"`
- Url string `json:"url" gorm:"comment:文件地址"`
- Tag string `json:"tag" gorm:"comment:文件标签"`
- Key string `json:"key" gorm:"comment:编号"`
+ Name string `json:"name" gorm:"comment:文件名"` // 文件名
+ Url string `json:"url" gorm:"comment:文件地址"` // 文件地址
+ Tag string `json:"tag" gorm:"comment:文件标签"` // 文件标签
+ Key string `json:"key" gorm:"comment:编号"` // 编号
}
diff --git a/server/model/request/common.go b/server/model/request/common.go
index b65941ae..2da6510d 100644
--- a/server/model/request/common.go
+++ b/server/model/request/common.go
@@ -2,13 +2,13 @@ package request
// Paging common input parameter structure
type PageInfo struct {
- Page int `json:"page" form:"page"`
- PageSize int `json:"pageSize" form:"pageSize"`
+ Page int `json:"page" form:"page"` // 页码
+ PageSize int `json:"pageSize" form:"pageSize"` // 每页大小
}
// Find by id structure
type GetById struct {
- Id float64 `json:"id" form:"id"`
+ Id float64 `json:"id" form:"id"` // 主键ID
}
type IdsReq struct {
@@ -17,7 +17,7 @@ type IdsReq struct {
// Get role by id structure
type GetAuthorityId struct {
- AuthorityId string
+ AuthorityId string // 角色ID
}
type Empty struct{}
diff --git a/server/model/request/sys_api.go b/server/model/request/sys_api.go
index e2b1fce5..f9d5ec03 100644
--- a/server/model/request/sys_api.go
+++ b/server/model/request/sys_api.go
@@ -6,6 +6,6 @@ import "gin-vue-admin/model"
type SearchApiParams struct {
model.SysApi
PageInfo
- OrderKey string `json:"orderKey"`
- Desc bool `json:"desc"`
+ OrderKey string `json:"orderKey"` // 排序
+ Desc bool `json:"desc"` // 排序方式:升序false(默认)|降序true
}
diff --git a/server/model/request/sys_casbin.go b/server/model/request/sys_casbin.go
index d9549051..ccb461b8 100644
--- a/server/model/request/sys_casbin.go
+++ b/server/model/request/sys_casbin.go
@@ -2,12 +2,12 @@ package request
// Casbin info structure
type CasbinInfo struct {
- Path string `json:"path"`
- Method string `json:"method"`
+ Path string `json:"path"` // 路径
+ Method string `json:"method"` // 方法
}
// Casbin structure for input parameters
type CasbinInReceive struct {
- AuthorityId string `json:"authorityId"`
+ AuthorityId string `json:"authorityId"` // 权限id
CasbinInfos []CasbinInfo `json:"casbinInfos"`
}
diff --git a/server/model/request/sys_init.go b/server/model/request/sys_init.go
index 63f20112..3f994cf3 100644
--- a/server/model/request/sys_init.go
+++ b/server/model/request/sys_init.go
@@ -1,9 +1,9 @@
package request
type InitDB struct {
- Host string `json:"host"`
- Port string `json:"port"`
- UserName string `json:"userName" binding:"required"`
- Password string `json:"password"`
- DBName string `json:"dbName" binding:"required"`
+ Host string `json:"host"` // 服务器地址
+ Port string `json:"port"` // 数据库连接端口
+ UserName string `json:"userName" binding:"required"` // 数据库用户名
+ Password string `json:"password"` // 数据库密码
+ DBName string `json:"dbName" binding:"required"` // 数据库名
}
diff --git a/server/model/request/sys_menu.go b/server/model/request/sys_menu.go
index e17ffafd..0c4b95da 100644
--- a/server/model/request/sys_menu.go
+++ b/server/model/request/sys_menu.go
@@ -5,5 +5,5 @@ import "gin-vue-admin/model"
// Add menu authority info structure
type AddMenuAuthorityInfo struct {
Menus []model.SysBaseMenu
- AuthorityId string
+ AuthorityId string // 角色ID
}
diff --git a/server/model/request/sys_user.go b/server/model/request/sys_user.go
index 858e241f..f2b147ed 100644
--- a/server/model/request/sys_user.go
+++ b/server/model/request/sys_user.go
@@ -13,21 +13,21 @@ type Register struct {
// User login structure
type Login struct {
- Username string `json:"username"`
- Password string `json:"password"`
- Captcha string `json:"captcha"`
- CaptchaId string `json:"captchaId"`
+ Username string `json:"username"` // 用户名
+ Password string `json:"password"` // 密码
+ Captcha string `json:"captcha"` // 验证码
+ CaptchaId string `json:"captchaId"` // 验证码ID
}
// Modify password structure
type ChangePasswordStruct struct {
- Username string `json:"username"`
- Password string `json:"password"`
- NewPassword string `json:"newPassword"`
+ Username string `json:"username"` // 用户名
+ Password string `json:"password"` // 密码
+ NewPassword string `json:"newPassword"` // 新密码
}
// Modify user's auth structure
type SetUserAuth struct {
- UUID uuid.UUID `json:"uuid"`
- AuthorityId string `json:"authorityId"`
+ UUID uuid.UUID `json:"uuid"` // 用户UUID
+ AuthorityId string `json:"authorityId"` // 角色ID
}
diff --git a/server/model/sys_api.go b/server/model/sys_api.go
index 058bbd21..20d9b657 100644
--- a/server/model/sys_api.go
+++ b/server/model/sys_api.go
@@ -6,8 +6,8 @@ import (
type SysApi struct {
global.GVA_MODEL
- Path string `json:"path" gorm:"comment:api路径"`
- Description string `json:"description" gorm:"comment:api中文描述"`
- ApiGroup string `json:"apiGroup" gorm:"comment:api组"`
- Method string `json:"method" gorm:"default:POST" gorm:"comment:方法"`
+ Path string `json:"path" gorm:"comment:api路径"` // api路径
+ Description string `json:"description" gorm:"comment:api中文描述"` // api中文描述
+ ApiGroup string `json:"apiGroup" gorm:"comment:api组"` // api组
+ Method string `json:"method" gorm:"default:POST" gorm:"comment:方法"` // 方法:创建POST(默认)|查看GET|更新PUT|删除DELETE
}
diff --git a/server/model/sys_authority.go b/server/model/sys_authority.go
index 76bc5c49..9332af39 100644
--- a/server/model/sys_authority.go
+++ b/server/model/sys_authority.go
@@ -8,11 +8,11 @@ type SysAuthority struct {
CreatedAt time.Time
UpdatedAt time.Time
DeletedAt *time.Time `sql:"index"`
- AuthorityId string `json:"authorityId" gorm:"not null;unique;primary_key;comment:角色ID;size:90"`
- AuthorityName string `json:"authorityName" gorm:"comment:角色名"`
- ParentId string `json:"parentId" gorm:"comment:父角色ID"`
+ AuthorityId string `json:"authorityId" gorm:"not null;unique;primary_key;comment:角色ID;size:90"` // 角色ID
+ AuthorityName string `json:"authorityName" gorm:"comment:角色名"` // 角色名
+ ParentId string `json:"parentId" gorm:"comment:父角色ID"` // 父角色ID
DataAuthorityId []SysAuthority `json:"dataAuthorityId" gorm:"many2many:sys_data_authority_id"`
Children []SysAuthority `json:"children" gorm:"-"`
SysBaseMenus []SysBaseMenu `json:"menus" gorm:"many2many:sys_authority_menus;"`
- DefaultRouter string `json:"defaultRouter" gorm:"comment:默认菜单;default:dashboard"`
+ DefaultRouter string `json:"defaultRouter" gorm:"comment:默认菜单;default:dashboard"` // 默认菜单(默认dashboard)
}
diff --git a/server/model/sys_auto_code.go b/server/model/sys_auto_code.go
index b8a3b524..6e9e0bde 100644
--- a/server/model/sys_auto_code.go
+++ b/server/model/sys_auto_code.go
@@ -4,27 +4,27 @@ import "errors"
// 初始版本自动化代码工具
type AutoCodeStruct struct {
- StructName string `json:"structName"`
- TableName string `json:"tableName"`
- PackageName string `json:"packageName"`
- Abbreviation string `json:"abbreviation"`
- Description string `json:"description"`
- AutoCreateApiToSql bool `json:"autoCreateApiToSql"`
- AutoMoveFile bool `json:"autoMoveFile"`
+ StructName string `json:"structName"` // Struct名称
+ TableName string `json:"tableName"` // 表名
+ PackageName string `json:"packageName"` // 文件名称
+ Abbreviation string `json:"abbreviation"` // Struct简称
+ Description string `json:"description"` // Struct中文名称
+ AutoCreateApiToSql bool `json:"autoCreateApiToSql"` // 是否自动创建api
+ AutoMoveFile bool `json:"autoMoveFile"` // 是否自动移动文件
Fields []*Field `json:"fields"`
}
type Field struct {
- FieldName string `json:"fieldName"`
- FieldDesc string `json:"fieldDesc"`
- FieldType string `json:"fieldType"`
- FieldJson string `json:"fieldJson"`
- DataType string `json:"dataType"`
- DataTypeLong string `json:"dataTypeLong"`
- Comment string `json:"comment"`
- ColumnName string `json:"columnName"`
- FieldSearchType string `json:"fieldSearchType"`
- DictType string `json:"dictType"`
+ FieldName string `json:"fieldName"` // Field名
+ FieldDesc string `json:"fieldDesc"` // 中文名
+ FieldType string `json:"fieldType"` // Field数据类型
+ FieldJson string `json:"fieldJson"` // FieldJson
+ DataType string `json:"dataType"` // 数据库字段类型
+ DataTypeLong string `json:"dataTypeLong"` // 数据库字段长度
+ Comment string `json:"comment"` // 数据库字段描述
+ ColumnName string `json:"columnName"` // 数据库字段
+ FieldSearchType string `json:"fieldSearchType"` // 搜索条件
+ DictType string `json:"dictType"` // 字典
}
var AutoMoveErr error = errors.New("创建代码成功并移动文件成功")
diff --git a/server/model/sys_base_menu.go b/server/model/sys_base_menu.go
index c9dbe510..83a287b7 100644
--- a/server/model/sys_base_menu.go
+++ b/server/model/sys_base_menu.go
@@ -6,31 +6,31 @@ import (
type SysBaseMenu struct {
global.GVA_MODEL
- MenuLevel uint `json:"-"`
- ParentId string `json:"parentId" gorm:"comment:父菜单ID"`
- Path string `json:"path" gorm:"comment:路由path"`
- Name string `json:"name" gorm:"comment:路由name"`
- Hidden bool `json:"hidden" gorm:"comment:是否在列表隐藏"`
- Component string `json:"component" gorm:"comment:对应前端文件路径"`
- Sort int `json:"sort" gorm:"comment:排序标记"`
- Meta `json:"meta" gorm:"comment:附加属性"`
+ MenuLevel uint `json:"-"`
+ ParentId string `json:"parentId" gorm:"comment:父菜单ID"` // 父菜单ID
+ Path string `json:"path" gorm:"comment:路由path"` // 路由path
+ Name string `json:"name" gorm:"comment:路由name"` // 路由name
+ Hidden bool `json:"hidden" gorm:"comment:是否在列表隐藏"` // 是否在列表隐藏
+ Component string `json:"component" gorm:"comment:对应前端文件路径"` // 对应前端文件路径
+ Sort int `json:"sort" gorm:"comment:排序标记"` // 排序标记
+ Meta `json:"meta" gorm:"comment:附加属性"` // 附加属性
SysAuthoritys []SysAuthority `json:"authoritys" gorm:"many2many:sys_authority_menus;"`
Children []SysBaseMenu `json:"children" gorm:"-"`
Parameters []SysBaseMenuParameter `json:"parameters"`
}
type Meta struct {
- KeepAlive bool `json:"keepAlive" gorm:"comment:是否缓存"`
- DefaultMenu bool `json:"defaultMenu" gorm:"comment:是否是基础路由(开发中)"`
- Title string `json:"title" gorm:"comment:菜单名"`
- Icon string `json:"icon" gorm:"comment:菜单图标"`
- CloseTab bool `json:"closeTab" gorm:"comment:自动关闭tab"`
+ KeepAlive bool `json:"keepAlive" gorm:"comment:是否缓存"` // 是否缓存
+ DefaultMenu bool `json:"defaultMenu" gorm:"comment:是否是基础路由(开发中)"` // 是否是基础路由(开发中)
+ Title string `json:"title" gorm:"comment:菜单名"` // 菜单名
+ Icon string `json:"icon" gorm:"comment:菜单图标"` // 菜单图标
+ CloseTab bool `json:"closeTab" gorm:"comment:自动关闭tab"` // 自动关闭tab
}
type SysBaseMenuParameter struct {
global.GVA_MODEL
SysBaseMenuID uint
- Type string `json:"type" gorm:"comment:地址栏携带参数为params还是query"`
- Key string `json:"key" gorm:"comment:地址栏携带参数的key"`
- Value string `json:"value" gorm:"comment:地址栏携带参数的值"`
+ Type string `json:"type" gorm:"comment:地址栏携带参数为params还是query"` // 地址栏携带参数为params还是query
+ Key string `json:"key" gorm:"comment:地址栏携带参数的key"` // 地址栏携带参数的key
+ Value string `json:"value" gorm:"comment:地址栏携带参数的值"` // 地址栏携带参数的值
}
diff --git a/server/model/sys_dictionary.go b/server/model/sys_dictionary.go
index 208f1396..153a0f4f 100644
--- a/server/model/sys_dictionary.go
+++ b/server/model/sys_dictionary.go
@@ -8,9 +8,9 @@ import (
// 如果含有time.Time 请自行import time包
type SysDictionary struct {
global.GVA_MODEL
- Name string `json:"name" form:"name" gorm:"column:name;comment:字典名(中)"`
- Type string `json:"type" form:"type" gorm:"column:type;comment:字典名(英)"`
- Status *bool `json:"status" form:"status" gorm:"column:status;comment:状态"`
- Desc string `json:"desc" form:"desc" gorm:"column:desc;comment:描述"`
+ Name string `json:"name" form:"name" gorm:"column:name;comment:字典名(中)"` // 字典名(中)
+ Type string `json:"type" form:"type" gorm:"column:type;comment:字典名(英)"` // 字典名(英)
+ Status *bool `json:"status" form:"status" gorm:"column:status;comment:状态"` // 状态
+ Desc string `json:"desc" form:"desc" gorm:"column:desc;comment:描述"` // 描述
SysDictionaryDetails []SysDictionaryDetail `json:"sysDictionaryDetails" form:"sysDictionaryDetails"`
}
diff --git a/server/model/sys_dictionary_detail.go b/server/model/sys_dictionary_detail.go
index e0dded0e..b75d1336 100644
--- a/server/model/sys_dictionary_detail.go
+++ b/server/model/sys_dictionary_detail.go
@@ -8,9 +8,9 @@ import (
// 如果含有time.Time 请自行import time包
type SysDictionaryDetail struct {
global.GVA_MODEL
- Label string `json:"label" form:"label" gorm:"column:label;comment:展示值"`
- Value int `json:"value" form:"value" gorm:"column:value;comment:字典值"`
- Status *bool `json:"status" form:"status" gorm:"column:status;comment:启用状态"`
- Sort int `json:"sort" form:"sort" gorm:"column:sort;comment:排序标记"`
- SysDictionaryID int `json:"sysDictionaryID" form:"sysDictionaryID" gorm:"column:sys_dictionary_id;comment:关联标记"`
+ Label string `json:"label" form:"label" gorm:"column:label;comment:展示值"` // 展示值
+ Value int `json:"value" form:"value" gorm:"column:value;comment:字典值"` // 字典值
+ Status *bool `json:"status" form:"status" gorm:"column:status;comment:启用状态"` // 启用状态
+ Sort int `json:"sort" form:"sort" gorm:"column:sort;comment:排序标记"` // 排序标记
+ SysDictionaryID int `json:"sysDictionaryID" form:"sysDictionaryID" gorm:"column:sys_dictionary_id;comment:关联标记"` // 关联标记
}
diff --git a/server/model/sys_operation_record.go b/server/model/sys_operation_record.go
index 9bf9e2f4..46d02f83 100644
--- a/server/model/sys_operation_record.go
+++ b/server/model/sys_operation_record.go
@@ -9,15 +9,15 @@ import (
// 如果含有time.Time 请自行import time包
type SysOperationRecord struct {
global.GVA_MODEL
- Ip string `json:"ip" form:"ip" gorm:"column:ip;comment:请求ip"`
- Method string `json:"method" form:"method" gorm:"column:method;comment:请求方法"`
- Path string `json:"path" form:"path" gorm:"column:path;comment:请求路径"`
- Status int `json:"status" form:"status" gorm:"column:status;comment:请求状态"`
- Latency time.Duration `json:"latency" form:"latency" gorm:"column:latency;comment:延迟"`
- Agent string `json:"agent" form:"agent" gorm:"column:agent;comment:代理"`
- ErrorMessage string `json:"error_message" form:"error_message" gorm:"column:error_message;comment:错误信息"`
- Body string `json:"body" form:"body" gorm:"type:longtext;column:body;comment:请求Body"`
- Resp string `json:"resp" form:"resp" gorm:"type:longtext;column:resp;comment:响应Body"`
- UserID int `json:"user_id" form:"user_id" gorm:"column:user_id;comment:用户id"`
+ Ip string `json:"ip" form:"ip" gorm:"column:ip;comment:请求ip"` // 请求ip
+ Method string `json:"method" form:"method" gorm:"column:method;comment:请求方法"` // 请求方法
+ Path string `json:"path" form:"path" gorm:"column:path;comment:请求路径"` // 请求路径
+ Status int `json:"status" form:"status" gorm:"column:status;comment:请求状态"` // 请求状态
+ Latency time.Duration `json:"latency" form:"latency" gorm:"column:latency;comment:延迟" swaggertype:"string"` // 延迟
+ Agent string `json:"agent" form:"agent" gorm:"column:agent;comment:代理"` // 代理
+ ErrorMessage string `json:"error_message" form:"error_message" gorm:"column:error_message;comment:错误信息"` // 错误信息
+ Body string `json:"body" form:"body" gorm:"type:longtext;column:body;comment:请求Body"` // 请求Body
+ Resp string `json:"resp" form:"resp" gorm:"type:longtext;column:resp;comment:响应Body"` // 响应Body
+ UserID int `json:"user_id" form:"user_id" gorm:"column:user_id;comment:用户id"` // 用户id
User SysUser `json:"user"`
}
diff --git a/server/model/sys_user.go b/server/model/sys_user.go
index bfd17e38..8ed5c2af 100644
--- a/server/model/sys_user.go
+++ b/server/model/sys_user.go
@@ -7,11 +7,11 @@ import (
type SysUser struct {
global.GVA_MODEL
- UUID uuid.UUID `json:"uuid" gorm:"comment:用户UUID"`
- Username string `json:"userName" gorm:"comment:用户登录名"`
- Password string `json:"-" gorm:"comment:用户登录密码"`
- NickName string `json:"nickName" gorm:"default:系统用户;comment:用户昵称" `
- HeaderImg string `json:"headerImg" gorm:"default:http://qmplusimg.henrongyi.top/head.png;comment:用户头像"`
+ UUID uuid.UUID `json:"uuid" gorm:"comment:用户UUID"` // 用户UUID
+ Username string `json:"userName" gorm:"comment:用户登录名"` // 用户登录名
+ Password string `json:"-" gorm:"comment:用户登录密码"` // 用户登录密码
+ NickName string `json:"nickName" gorm:"default:系统用户;comment:用户昵称"` // 用户昵称"
+ HeaderImg string `json:"headerImg" gorm:"default:http://qmplusimg.henrongyi.top/head.png;comment:用户头像"` // 用户头像
Authority SysAuthority `json:"authority" gorm:"foreignKey:AuthorityId;references:AuthorityId;comment:用户角色"`
- AuthorityId string `json:"authorityId" gorm:"default:888;comment:用户角色ID"`
+ AuthorityId string `json:"authorityId" gorm:"default:888;comment:用户角色ID"` // 用户角色ID
}
diff --git a/web/src/view/systemTools/system/system.vue b/web/src/view/systemTools/system/system.vue
index bdefb59f..f357699a 100644
--- a/web/src/view/systemTools/system/system.vue
+++ b/web/src/view/systemTools/system/system.vue
@@ -247,7 +247,7 @@
- 开启
+ 开启