Browse Source
Merge branch 'master' of https://github.com/flipped-aurora/gin-vue-admin into gva_gormv2_dev
Merge branch 'master' of https://github.com/flipped-aurora/gin-vue-admin into gva_gormv2_dev
Conflicts: server/model/request/common.gomain
pixel
4 years ago
32 changed files with 884 additions and 391 deletions
-
8README.md
-
6server/config/captcha.go
-
2server/config/casbin.go
-
14server/config/email.go
-
8server/config/gorm.go
-
6server/config/jwt.go
-
16server/config/oss.go
-
4server/config/redis.go
-
10server/config/system.go
-
18server/config/zap.go
-
331server/docs/docs.go
-
329server/docs/swagger.json
-
315server/docs/swagger.yaml
-
8server/global/model.go
-
10server/model/exa_customer.go
-
2server/model/exa_excel.go
-
8server/model/exa_file_upload_download.go
-
6server/model/request/common.go
-
4server/model/request/sys_api.go
-
6server/model/request/sys_casbin.go
-
10server/model/request/sys_init.go
-
2server/model/request/sys_menu.go
-
18server/model/request/sys_user.go
-
8server/model/sys_api.go
-
8server/model/sys_authority.go
-
34server/model/sys_auto_code.go
-
32server/model/sys_base_menu.go
-
8server/model/sys_dictionary.go
-
10server/model/sys_dictionary_detail.go
-
20server/model/sys_operation_record.go
-
12server/model/sys_user.go
-
2web/src/view/systemTools/system/system.vue
@ -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"` // 图片高度
|
|||
} |
@ -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路径
|
|||
} |
@ -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"` // 昵称
|
|||
} |
@ -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"` // 缓冲时间
|
|||
} |
@ -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"` // 多点登录拦截
|
|||
} |
@ -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"` // 输出控制台
|
|||
} |
331
server/docs/docs.go
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
329
server/docs/swagger.json
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
315
server/docs/swagger.yaml
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -1,6 +1,6 @@ |
|||
package model |
|||
|
|||
type ExcelInfo struct { |
|||
FileName string `json:"fileName"` |
|||
FileName string `json:"fileName"` // 文件名
|
|||
InfoList []SysBaseMenu `json:"infoList"` |
|||
} |
@ -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"` // 数据库名
|
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue