Yimaru-BackEnd/internal/services/assessment/service.go

29 lines
650 B
Go

package assessment
import (
"Yimaru-Backend/internal/config"
"Yimaru-Backend/internal/ports"
notificationservice "Yimaru-Backend/internal/services/notification"
)
type Service struct {
userStore ports.UserStore
questionStore ports.QuestionStore
notificationSvc *notificationservice.Service
config *config.Config
}
func NewService(
userStore ports.UserStore,
questionStore ports.QuestionStore,
notificationSvc *notificationservice.Service,
cfg *config.Config,
) *Service {
return &Service{
userStore: userStore,
questionStore: questionStore,
notificationSvc: notificationSvc,
config: cfg,
}
}