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

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}}
}