123456789101112131415161718192021222324252627282930 |
- 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)
- }
|