package customerService import ( "git.ma-al.com/goc_daniel/b2b/app/model" "git.ma-al.com/goc_daniel/b2b/app/repos/customerRepo" ) type CustomerService struct { repo customerRepo.UICustomerRepo } func New() *CustomerService { return &CustomerService{ repo: customerRepo.New(), } } func (s *CustomerService) GetById(id uint) (*model.Customer, error) { return s.repo.Get(id) }