updat
This commit is contained in:
		@ -18,14 +18,14 @@ import (
 | 
				
			|||||||
//
 | 
					//
 | 
				
			||||||
// Date : 9:32 下午 2021/3/1
 | 
					// Date : 9:32 下午 2021/3/1
 | 
				
			||||||
type DBConfig struct {
 | 
					type DBConfig struct {
 | 
				
			||||||
	Host              string `json:"host" yml:"host"`                               // 主机
 | 
						Host              string `json:"host" yaml:"host"`                               // 主机
 | 
				
			||||||
	Port              uint   `json:"port" yml:"port"`                               // 端口
 | 
						Port              uint   `json:"port" yaml:"port"`                               // 端口
 | 
				
			||||||
	Database          string `json:"database" yml:"database"`                       // 数据库
 | 
						Database          string `json:"database" yaml:"database"`                       // 数据库
 | 
				
			||||||
	Username          string `json:"username"  yml:"username"`                      // 账号
 | 
						Username          string `json:"username"  yaml:"username"`                      // 账号
 | 
				
			||||||
	Password          string `json:"password" yml:"password"`                       // 密码
 | 
						Password          string `json:"password" yaml:"password"`                       // 密码
 | 
				
			||||||
	Charset           string `json:"charset" yml:"charset"`                         // 编码
 | 
						Charset           string `json:"charset" yaml:"charset"`                         // 编码
 | 
				
			||||||
	MaxOpenConnection uint   `json:"max_open_connection" yml:"max_open_connection"` // 打开的最大连接数
 | 
						MaxOpenConnection uint   `json:"max_open_connection" yaml:"max_open_connection"` // 打开的最大连接数
 | 
				
			||||||
	MaxIdleConnection uint   `json:"max_idle_connection" yml:"max_idle_connection"` // 最大空闲连接数
 | 
						MaxIdleConnection uint   `json:"max_idle_connection" yaml:"max_idle_connection"` // 最大空闲连接数
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// LogConfig 日志配置
 | 
					// LogConfig 日志配置
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user