Yimaru-BackEnd/internal/ports/faq.go
Yared Yemane 6a4fe68628 Add full FAQ management APIs and integration assets.
Implement public FAQ read endpoints and admin CRUD with RBAC, persistence, and migrations, then regenerate Swagger and add a complete Postman collection so frontend/admin teams can integrate and validate the feature end-to-end.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-11 07:58:17 -07:00

15 lines
526 B
Go

package ports
import (
"Yimaru-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
}