RezinaLMS-BackEnd/internal/ports/faq.go
2026-10-19 17:59:34 +03:00

15 lines
526 B
Go

package ports
import (
"Rezina-Backend/internal/domain"
"context"
)
type FAQStore interface {
CreateFAQ(ctx context.Context, input domain.CreateFAQInput) (domain.FAQ, error)
UpdateFAQ(ctx context.Context, id int64, input domain.UpdateFAQInput) (domain.FAQ, error)
GetFAQByID(ctx context.Context, id int64, includeInactive bool) (domain.FAQ, error)
ListFAQs(ctx context.Context, status *string, category *string, limit int32, offset int32) ([]domain.FAQ, int64, error)
DeleteFAQ(ctx context.Context, id int64) error
}