Files
kontor/kontor-gin/internal/service/article_author.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
563 B
Go

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