endpoint to update JWT cookies
This commit is contained in:
@@ -5,14 +5,16 @@ import (
|
||||
"git.ma-al.com/goc_daniel/b2b/repository/jwtFieldsRepo"
|
||||
)
|
||||
|
||||
// jwtService handles updating JWT cookies
|
||||
// JWTService handles retrieving JWT fields (languages and countries)
|
||||
type JWTService struct {
|
||||
repo jwtFieldsRepo.JWTFieldsRepo
|
||||
repo jwtFieldsRepo.UIJWTFieldsRepo
|
||||
}
|
||||
|
||||
// NewJWTService creates a new JWT service
|
||||
func New() *JWTService {
|
||||
return &JWTService{}
|
||||
return &JWTService{
|
||||
repo: jwtFieldsRepo.New(),
|
||||
}
|
||||
}
|
||||
|
||||
func (s *JWTService) GetLanguages() ([]model.Language, error) {
|
||||
@@ -22,7 +24,3 @@ func (s *JWTService) GetLanguages() ([]model.Language, error) {
|
||||
func (s *JWTService) GetCountriesAndCurrencies() ([]model.Country, error) {
|
||||
return s.repo.GetCountriesAndCurrencies()
|
||||
}
|
||||
|
||||
func (s *JWTService) UpdateChoice() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user