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