From 9c1e726f198780ee23bae01a2fd1a4313e7bc623 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Sun, 15 May 2022 20:49:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=95=B0=E6=8D=AE=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- define.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/define.go b/define.go index 4faed82..611160a 100644 --- a/define.go +++ b/define.go @@ -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 日志配置