优化客服会话筛选

This commit is contained in:
yml
2026-06-18 01:08:54 +08:00
parent 272b2cb71e
commit 7dc7368367
8 changed files with 567 additions and 98 deletions
@@ -13,9 +13,11 @@ func (h *Handler) AdminList(c *gin.Context) {
return
}
filter := c.DefaultQuery("filter", "all")
stage := c.DefaultQuery("stage", "all")
keyword := c.Query("keyword")
page, pageSize := parsePagination(c)
principal := Principal{Type: "admin", ID: adminID}
result, err := h.service.ListConversationsWithFilter(c.Request.Context(), principal, page, pageSize, filter)
result, err := h.service.ListConversationsWithFilter(c.Request.Context(), principal, page, pageSize, filter, stage, keyword)
if err != nil {
writeChatError(c, err)
return