Complete API handlers refactoring to eliminate type switching and use repository pattern consistently

This commit is contained in:
2025-10-08 20:36:20 +02:00
parent 01b921bfa3
commit bbf728d110
16 changed files with 268 additions and 2654 deletions

View File

@@ -6,7 +6,6 @@ import (
)
// ContentRepository interface for accessing content data
// This replaces the ContentClient interface from engine package
type ContentRepository interface {
GetContent(ctx context.Context, siteID, contentID string) (*ContentItem, error)
GetBulkContent(ctx context.Context, siteID string, contentIDs []string) (map[string]ContentItem, error)