support logger auto call

This commit is contained in:
yanghao05
2023-01-29 15:27:50 +08:00
parent 34b3978c5a
commit 7151c52543
13 changed files with 284 additions and 589 deletions

10
contracts/migration.go Normal file
View File

@@ -0,0 +1,10 @@
package contracts
import "gorm.io/gorm"
// Migration route interface
type Migration interface {
ID() string
Up(tx *gorm.DB) error
Down(tx *gorm.DB) error
}