package service import ( "context" "kontor-api-gin/internal/models" "kontor-api-gin/internal/repository" "log/slog" ) type BookshelfPublisherService struct { repository *repository.BookshelfPublisherRepository } func NewBookshelfPublisherService(repo *repository.BookshelfPublisherRepository) *BookshelfPublisherService { service := &BookshelfPublisherService{repository: repo} return service } func (service *BookshelfPublisherService) List(context context.Context) ([]models.BookshelfPublisher, error) { slog.Info("BookshelfPublisherService#List") return service.repository.FindAll(context) }