package usecase import ( "truck-company/internal/domain" "truck-company/internal/repository" ) type UseCase struct { AppRepo repository.AppRepo } func NewUseCase(r repository.AppRepo) *UseCase { return &UseCase{ AppRepo: r, } } func (u *UseCase) GetAllRoutes() ([]domain.Route, error) { return u.AppRepo.GetAllRoutes() }