19 lines
368 B
Go
19 lines
368 B
Go
package services
|
|
|
|
import (
|
|
"GoMembership/internal/models"
|
|
"GoMembership/internal/repositories"
|
|
)
|
|
|
|
type LicenceServiceInterface interface {
|
|
GetAllCategories() ([]models.Category, error)
|
|
}
|
|
|
|
type LicenceService struct {
|
|
Repo repositories.LicenceInterface
|
|
}
|
|
|
|
func (s *LicenceService) GetAllCategories() ([]models.Category, error) {
|
|
return s.Repo.GetAllCategories()
|
|
}
|