25 lines
762 B
Go
25 lines
762 B
Go
package services
|
|
|
|
import (
|
|
"context"
|
|
|
|
filehandling "github.com/KristianJBorgwarth/dendrite.daemon/core/file_handling"
|
|
"github.com/KristianJBorgwarth/dendrite.daemon/persistence"
|
|
"github.com/KristianJBorgwarth/dendrite.daemon/persistence/repositories"
|
|
)
|
|
|
|
type ILinkService interface {
|
|
CreateLinks(ctx context.Context, dbCtx persistence.IDbContext, noteID string, links []*filehandling.ExtractedLink) error
|
|
}
|
|
|
|
type linkService struct {
|
|
linkRepo repositories.ILinkRepository
|
|
}
|
|
|
|
func NewLinkService(linkRepo repositories.ILinkRepository) ILinkService {
|
|
return &linkService{linkRepo}
|
|
}
|
|
|
|
func (s *linkService) CreateLinks(ctx context.Context, dbCtx persistence.IDbContext, noteID string, links []*filehandling.ExtractedLink) error {
|
|
panic("not implemented")
|
|
}
|