migrate controllers
Some checks failed
build quyun / Build (push) Failing after 1m30s

This commit is contained in:
2025-12-19 23:33:02 +08:00
parent 557a641f41
commit 49072ddd79
37 changed files with 1944 additions and 69 deletions

View File

@@ -10,6 +10,8 @@ var _db *gorm.DB
var (
Medias *medias
Orders *orders
Posts *posts
Users *users
)
// @provider(model)
@@ -18,6 +20,8 @@ type services struct {
// define Services
medias *medias
orders *orders
posts *posts
users *users
}
func (svc *services) Prepare() error {
@@ -26,6 +30,8 @@ func (svc *services) Prepare() error {
// set exported Services here
Medias = svc.medias
Orders = svc.orders
Posts = svc.posts
Users = svc.users
return nil
}