feat:Extract global configuration

This commit is contained in:
zhangwenjian committed 2020-07-06 07:53:34 +08:00
1 parent a6970e9c67
commit bfbc5081ea
15 files changed
+155 -207

No files matched your search

+1
View File
@@ -3,6 +3,7 @@ package database
import "github.com/jinzhu/gorm"
type Database interface {
Setup()
Open(dbType string, conn string) (db *gorm.DB, err error)
GetConnect() string
}