27 lines
607 B
Go
27 lines
607 B
Go
package jwtService
|
|
|
|
import (
|
|
"git.ma-al.com/goc_daniel/b2b/app/model"
|
|
"git.ma-al.com/goc_daniel/b2b/repository/jwtFieldsRepo"
|
|
)
|
|
|
|
// JWTService handles retrieving JWT fields (languages and countries)
|
|
type JWTService struct {
|
|
repo jwtFieldsRepo.UIJWTFieldsRepo
|
|
}
|
|
|
|
// NewJWTService creates a new JWT service
|
|
func New() *JWTService {
|
|
return &JWTService{
|
|
repo: jwtFieldsRepo.New(),
|
|
}
|
|
}
|
|
|
|
func (s *JWTService) GetLanguages() ([]model.Language, error) {
|
|
return s.repo.GetLanguages()
|
|
}
|
|
|
|
func (s *JWTService) GetCountriesAndCurrencies() ([]model.Country, error) {
|
|
return s.repo.GetCountriesAndCurrencies()
|
|
}
|