feat: add service and model

This commit is contained in:
Jeffrey Duroyon
2020-05-10 23:58:49 +02:00
parent 4369438ff2
commit c8993f1ca3
20 changed files with 89 additions and 29 deletions

11
service/cage_service.go Normal file
View File

@@ -0,0 +1,11 @@
package service
import "hamster-tycoon/storage/dao"
type CageService struct {
serviceContext
}
func NewCageService(database dao.Database) *CageService {
return &CageService{serviceContext{db: database}}
}

11
service/game_service.go Normal file
View File

@@ -0,0 +1,11 @@
package service
import "Game-tycoon/storage/dao"
type GameService struct {
serviceContext
}
func NewGameService(database dao.Database) *GameService {
return &GameService{serviceContext{db: database}}
}

View File

@@ -0,0 +1,11 @@
package service
import "hamster-tycoon/storage/dao"
type HamsterService struct {
serviceContext
}
func NewHamsterService(database dao.Database) *HamsterService {
return &HamsterService{serviceContext{db: database}}
}