package service import ( "city_chips/internal/model" "city_chips/internal/repository" "context" ) type InformationService interface { GetInformation(ctx context.Context, id int64) (*model.Information, error) } func NewInformationService( service *Service, informationRepository repository.InformationRepository, ) InformationService { return &informationService{ Service: service, informationRepository: informationRepository, } } type informationService struct { *Service informationRepository repository.InformationRepository } func (s *informationService) GetInformation(ctx context.Context, id int64) (*model.Information, error) { return s.informationRepository.GetInformation(ctx, id) }