add checkbox styling, driverslicence handling and validation
This commit is contained in:
18
internal/services/drivers_licence_service.go
Normal file
18
internal/services/drivers_licence_service.go
Normal file
@@ -0,0 +1,18 @@
|
||||
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()
|
||||
}
|
||||
Reference in New Issue
Block a user