19 lines
345 B
Go
19 lines
345 B
Go
package service
|
|
|
|
import (
|
|
"epic-ent/internal/domain/vo"
|
|
"epic-ent/internal/repository"
|
|
)
|
|
|
|
type HealthService struct {
|
|
repo *repository.HealthRepository
|
|
}
|
|
|
|
func NewHealthService(repo *repository.HealthRepository) *HealthService {
|
|
return &HealthService{repo: repo}
|
|
}
|
|
|
|
func (s *HealthService) Check() vo.HealthStatus {
|
|
return s.repo.Check()
|
|
}
|