This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user