Start refactoring
This commit is contained in:
12
data/datasource/datasource.go
Normal file
12
data/datasource/datasource.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package datasource
|
||||
|
||||
import (
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
type (
|
||||
Datasource interface {
|
||||
Connect(dsn string) error
|
||||
DB() *gorm.DB
|
||||
}
|
||||
)
|
||||
Reference in New Issue
Block a user