19 lines
403 B
Go
19 lines
403 B
Go
package services
|
|
|
|
import (
|
|
"GoMembership/internal/models"
|
|
"GoMembership/internal/repositories"
|
|
)
|
|
|
|
type DriversLicenceInterface interface {
|
|
GetAllCategories() ([]models.LicenceCategory, error)
|
|
}
|
|
|
|
type DriversLicenceService struct {
|
|
Repo repositories.DriversLicenceInterface
|
|
}
|
|
|
|
func (s *DriversLicenceService) GetAllCategories() ([]models.LicenceCategory, error) {
|
|
return s.Repo.GetAllCategories()
|
|
}
|