Files
kontor/kontor-echo/internal/service/profile.go
T
tpeetz 074abd3c85
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 11s
Gitea Actions Demo / build-and-test (push) Failing after 21s
WIP: add missing handlers, services amd repositories
2026-11-08 00:51:02 +01:00

23 lines
511 B
Go

package service
import (
"context"
"kontor-api-echo/internal/models"
"kontor-api-echo/internal/repository"
"log/slog"
)
type ProfileService struct {
repository *repository.ProfileRepository
}
func NewProfileService(repo *repository.ProfileRepository) *ProfileService {
service := &ProfileService{repository: repo}
return service
}
func (service *ProfileService) List(context context.Context) ([]models.Profile, error) {
slog.Info("ProfileService#List")
return service.repository.FindAll(context)
}