From a5bde3ca5bea0198d6f9d712506b7044c9bcd01f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Mon, 13 Jun 2022 14:51:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E4=B8=AD=EF=BC=8C=E5=8E=BB=E9=99=A4=E5=AE=9A=E4=B9=89=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E6=96=87=E4=BB=B6=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- define.go | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) 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 连接数配置