go-tell/internal/repository/interfaces.go

15 lines
452 B
Go
Raw Normal View History

package repository
import (
"context"
"github.com/example/cms/internal/domain"
)
type IContentRepository interface {
2026-09-19 15:24:27 +02:00
List(context.Context, int, int, string, string, []string) ([]domain.Content, error)
2026-09-19 15:11:12 +02:00
ListCategories(context.Context) ([]domain.Category, error)
2026-09-19 15:14:16 +02:00
ListBadges(context.Context) ([]domain.Badge, error)
FindBySlug(context.Context, string) (domain.Content, error)
Update(context.Context, domain.Content, domain.ContentHistory) error
}