Complete API handlers refactoring to eliminate type switching and use repository pattern consistently
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user