From 2709cd41e732e6578e195989d59d76520230a84e 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, 6 Jun 2022 11:26:30 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=84=E5=88=92=E8=8E=B7=E5=8F=96gorm=20clie?= =?UTF-8?q?nt=E6=96=B9=E6=B3=95=20to=20=E5=BE=85=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/client.go b/client.go index 7d3df80..1a5d481 100644 --- a/client.go +++ b/client.go @@ -140,6 +140,15 @@ func (c *client) getLogInstance(logConf *LogConfig, loggerInstance *zap.Logger) return loggerInstance, nil } +// getGormClient 获取GORM client方法 +// +// Author : go_developer@163.com<白茶清欢> +// +// Date : 11:24 2022/6/6 +func (c *client) getGormClient() (*gorm.DB, error) { + return nil, nil +} + // BatchNewDBClient 批量设置数据库实例, 读取指定目录下的yaml文件, 文件名作为标识, 内容是数据库具体配置 // // Author : go_developer@163.com<白茶清欢>