package service import ( "city_chips/internal/model" "city_chips/internal/repository" "context" ) type PropertyService interface { GetProperty(ctx context.Context, id int64) (*model.Property, error) } func NewPropertyService( service *Service, propertyRepository repository.PropertyRepository, ) PropertyService { return &propertyService{ Service: service, propertyRepository: propertyRepository, } } type propertyService struct { *Service propertyRepository repository.PropertyRepository } func (s *propertyService) GetProperty(ctx context.Context, id int64) (*model.Property, error) { return s.propertyRepository.GetProperty(ctx, id) }