feat: auth user feedbacks
This commit is contained in:
@@ -92,6 +92,12 @@ func (s *FeedbackService) Submit(ctx context.Context, userID *string, category,
|
||||
return f, nil
|
||||
}
|
||||
|
||||
// ListForUser returns the signed-in user's own submissions (newest
|
||||
// first) with status and any admin reply, for the "My feedback" page.
|
||||
func (s *FeedbackService) ListForUser(ctx context.Context, userID string, limit int) ([]model.Feedback, error) {
|
||||
return s.repo.ListByUser(ctx, userID, limit)
|
||||
}
|
||||
|
||||
// ErrAlreadyResolved is returned by Resolve when the row was already
|
||||
// closed (or doesn't exist). The handler maps it to a benign redirect
|
||||
// rather than an error — the end state the admin wanted is already true.
|
||||
|
||||
Reference in New Issue
Block a user