package langsAndCountriesService import ( "git.ma-al.com/goc_daniel/b2b/app/model" "git.ma-al.com/goc_daniel/b2b/repository/langsAndCountriesRepo" ) // LangsAndCountriesService literally sends back language and countries information. type LangsAndCountriesService struct { repo langsAndCountriesRepo.UILangsAndCountriesRepo } // NewLangsAndCountriesService creates a new LangsAndCountries service func New() *LangsAndCountriesService { return &LangsAndCountriesService{ repo: langsAndCountriesRepo.New(), } } func (s *LangsAndCountriesService) GetLanguages() ([]model.Language, error) { return s.repo.GetLanguages() } func (s *LangsAndCountriesService) GetCountriesAndCurrencies() ([]model.Country, error) { return s.repo.GetCountriesAndCurrencies() }