Files
kontor/kontor-gin/internal/service/bookshelf_publisher.go
T
tpeetz d9007ba0e4
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 5s
add missing models
2026-10-04 01:56:25 +02:00

23 lines
608 B
Go

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