23 lines
527 B
Go
23 lines
527 B
Go
package service
|
|
|
|
import (
|
|
"context"
|
|
"kontor-api-gin/internal/models"
|
|
"kontor-api-gin/internal/repository"
|
|
"log/slog"
|
|
)
|
|
|
|
type MediaLoFiService struct {
|
|
repository *repository.MediaLoFiRepository
|
|
}
|
|
|
|
func NewMediaLoFiService(repo *repository.MediaLoFiRepository) *MediaLoFiService {
|
|
service := &MediaLoFiService{repository: repo}
|
|
return service
|
|
}
|
|
|
|
func (service *MediaLoFiService) List(context context.Context) ([]models.MediaLoFi, error) {
|
|
slog.Info("MediaLoFiService#List")
|
|
return service.repository.FindAll(context)
|
|
}
|