Compare commits

..

No commits in common. "63b497c49702b932b4a8b6f9d04c2204110bd3d1" and "520bf437cd462b78c0f76e656ccad1b5dbebe232" have entirely different histories.

2 changed files with 0 additions and 40 deletions

View File

@ -97,9 +97,6 @@ func getLogInstance(logConf *LogConfig, loggerInstance *zap.Logger) (*zap.Logger
if nil != loggerInstance { if nil != loggerInstance {
return loggerInstance, nil return loggerInstance, nil
} }
if nil == logConf {
return nil, nil
}
logConfList := []logger.SetLoggerOptionFunc{logger.WithEncoder(logConf.Encoder), logger.WithCallerSkip(logConf.Skip), logger.WithCaller()} logConfList := []logger.SetLoggerOptionFunc{logger.WithEncoder(logConf.Encoder), logger.WithCallerSkip(logConf.Skip), logger.WithCaller()}
if logConf.ConsoleOutput { if logConf.ConsoleOutput {
logConfList = append(logConfList, logger.WithConsoleOutput()) logConfList = append(logConfList, logger.WithConsoleOutput())

View File

@ -1,37 +0,0 @@
// Package mysql ...
//
// Description : mysql ...
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 2022-05-15 19:32
package mysql
import (
"gorm.io/gorm"
)
// SystemDao 执行一些系统的mysql命令
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 19:32 2022/5/15
type SystemDao struct {
}
// GetTableList 查询数据表
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 19:36 2022/5/15
func (sd *SystemDao) GetTableList(dbInstance *gorm.DB) ([]string, error) {
var (
err error
result []string
)
if err = dbInstance.Raw("SHOW TABLES").Scan(&result).Error; nil != err {
return nil, err
}
return result, nil
}