feat(conversations): align filter payload basics

This commit is contained in:
2026-06-07 04:13:02 +08:00
parent 50a9160f82
commit 615c071168
4 changed files with 191 additions and 34 deletions
@@ -503,6 +503,10 @@ func (h *ConversationHandler) Filter(c *gin.Context) {
result, svcErr := h.conversationSvc.Filter(c.Request.Context(), accountID, userID, req, p.Offset, p.PerPage)
if svcErr != nil {
if len(req.Payload) > 0 {
c.JSON(http.StatusUnprocessableEntity, gin.H{"error": svcErr.Error()})
return
}
handleServiceError(c, svcErr)
return
}