udpate
This commit is contained in:
@@ -8,7 +8,7 @@ var _db *gorm.DB
|
||||
|
||||
// exported CamelCase Services
|
||||
var (
|
||||
Medias *medias
|
||||
Media *media
|
||||
Orders *orders
|
||||
Posts *posts
|
||||
Users *users
|
||||
@@ -18,7 +18,7 @@ var (
|
||||
type services struct {
|
||||
db *gorm.DB
|
||||
// define Services
|
||||
medias *medias
|
||||
media *media
|
||||
orders *orders
|
||||
posts *posts
|
||||
users *users
|
||||
@@ -28,7 +28,7 @@ func (svc *services) Prepare() error {
|
||||
_db = svc.db
|
||||
|
||||
// set exported Services here
|
||||
Medias = svc.medias
|
||||
Media = svc.media
|
||||
Orders = svc.orders
|
||||
Posts = svc.posts
|
||||
Users = svc.users
|
||||
|
||||
Reference in New Issue
Block a user