diff --git a/define.go b/define.go index 32eb17c..13aaaa0 100644 --- a/define.go +++ b/define.go @@ -64,15 +64,14 @@ type Database struct { // // Date : 18:44 2022/5/14 type Mysql struct { - Host string `json:"host" yaml:"host"` // 数据库地址 - Port int `json:"port" yaml:"port"` // 数据库端口 - Username string `json:"username" yaml:"username"` // 用户名 - Password string `json:"password" yaml:"password"` // 密码 - Database string `json:"database" yaml:"database"` // 数据库 - Charset string `json:"charset" yaml:"charset"` // 数据库编码 - Connection *Connection `json:"connection" yaml:"connection"` // 连接配置 - LogFileName string `json:"log_file_name" yaml:"log_file_name"` // 日志文件名 - Timezone string `json:"timezone" yaml:"timezone"` // 时区 + Host string `json:"host" yaml:"host"` // 数据库地址 + Port int `json:"port" yaml:"port"` // 数据库端口 + Username string `json:"username" yaml:"username"` // 用户名 + Password string `json:"password" yaml:"password"` // 密码 + Database string `json:"database" yaml:"database"` // 数据库 + Charset string `json:"charset" yaml:"charset"` // 数据库编码 + Connection *Connection `json:"connection" yaml:"connection"` // 连接配置 + Timezone string `json:"timezone" yaml:"timezone"` // 时区 } // Connection 连接数配置