Skip to content

Commit 08606f7

Browse files
committed
feature: swagdoc调整
1 parent d6703e8 commit 08606f7

File tree

4 files changed

+1725
-78
lines changed

4 files changed

+1725
-78
lines changed

server/config/db_list.go

+7-7
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ type DsnProvider interface {
1414

1515
// GeneralDB 也被 Pgsql 和 Mysql 原样使用
1616
type GeneralDB struct {
17-
Prefix string `mapstructure:"prefix" json:"prefix" yaml:"prefix"`
18-
Port string `mapstructure:"port" json:"port" yaml:"port"`
19-
Config string `mapstructure:"config" json:"config" yaml:"config"` // 高级配置
20-
Dbname string `mapstructure:"db-name" json:"db-name" yaml:"db-name"` // 数据库名
21-
Username string `mapstructure:"username" json:"username" yaml:"username"` // 数据库密码
22-
Password string `mapstructure:"password" json:"password" yaml:"password"` // 数据库密码
23-
Path string `mapstructure:"path" json:"path" yaml:"path"`
17+
Prefix string `mapstructure:"prefix" json:"prefix" yaml:"prefix"` // 数据库前缀
18+
Port string `mapstructure:"port" json:"port" yaml:"port"` // 数据库端口
19+
Config string `mapstructure:"config" json:"config" yaml:"config"` // 高级配置
20+
Dbname string `mapstructure:"db-name" json:"db-name" yaml:"db-name"` // 数据库名
21+
Username string `mapstructure:"username" json:"username" yaml:"username"` // 数据库账号
22+
Password string `mapstructure:"password" json:"password" yaml:"password"` // 数据库密码
23+
Path string `mapstructure:"path" json:"path" yaml:"path"` // 数据库地址
2424
Engine string `mapstructure:"engine" json:"engine" yaml:"engine" default:"InnoDB"` // 数据库引擎,默认InnoDB
2525
LogMode string `mapstructure:"log-mode" json:"log-mode" yaml:"log-mode"` // 是否开启Gorm全局日志
2626
MaxIdleConns int `mapstructure:"max-idle-conns" json:"max-idle-conns" yaml:"max-idle-conns"` // 空闲中的最大连接数

0 commit comments

Comments
 (0)