优化客服会话筛选
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user