Files
kontor/kontor-gin/internal/service/issuework.go
T
Thomas Peetz f5abb44466
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4s
WIP: Export Kontor DB
2026-09-30 18:55:59 +02:00

23 lines
527 B
Go

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