feat: modify pkg

This commit is contained in:
Rogee
2024-11-28 19:30:36 +08:00
parent 900b260698
commit 554db07758
14 changed files with 100 additions and 241 deletions

View File

View File

@@ -1,6 +0,0 @@
package contracts
type MicroService interface {
Serve() error
GetEngine() any
}

View File

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

View File

@@ -1,13 +0,0 @@
package contracts
import (
"github.com/brianvoe/gofakeit/v6"
"gorm.io/gorm"
)
// Migration route interface
type Seeder interface {
Run(*gofakeit.Faker, *gorm.DB)
}
type SeederProvider func() Seeder