更新数据类型

This commit is contained in:
白茶清欢 2022-05-15 20:49:35 +08:00
parent 63b497c497
commit 9c1e726f19
1 changed files with 3 additions and 3 deletions

View File

@ -19,13 +19,13 @@ import (
// Date : 9:32 下午 2021/3/1
type DBConfig struct {
Host string `json:"host" yaml:"host"` // 主机
Port uint `json:"port" yaml:"port"` // 端口
Port int `json:"port" yaml:"port"` // 端口
Database string `json:"database" yaml:"database"` // 数据库
Username string `json:"username" yaml:"username"` // 账号
Password string `json:"password" yaml:"password"` // 密码
Charset string `json:"charset" yaml:"charset"` // 编码
MaxOpenConnection uint `json:"max_open_connection" yaml:"max_open_connection"` // 打开的最大连接数
MaxIdleConnection uint `json:"max_idle_connection" yaml:"max_idle_connection"` // 最大空闲连接数
MaxOpenConnection int `json:"max_open_connection" yaml:"max_open_connection"` // 打开的最大连接数
MaxIdleConnection int `json:"max_idle_connection" yaml:"max_idle_connection"` // 最大空闲连接数
}
// LogConfig 日志配置