backend moved to separate directory
backend: deleted the old structure
This commit is contained in:
18
go-backend/internal/services/licence_service.go
Normal file
18
go-backend/internal/services/licence_service.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package services
|
||||
|
||||
import (
|
||||
"GoMembership/internal/models"
|
||||
"GoMembership/internal/repositories"
|
||||
)
|
||||
|
||||
type LicenceInterface interface {
|
||||
GetAllCategories() ([]models.Category, error)
|
||||
}
|
||||
|
||||
type LicenceService struct {
|
||||
Repo repositories.LicenceInterface
|
||||
}
|
||||
|
||||
func (s *LicenceService) GetAllCategories() ([]models.Category, error) {
|
||||
return s.Repo.GetAllCategories()
|
||||
}
|
||||
Reference in New Issue
Block a user