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>
15 lines
526 B
Go
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
|
|
}
|