feat(session): 优化工作台会话分页与筛选
CI / Backend (go vet + test) (push) Failing after 3m18s
CI / Frontend (typecheck + lint + build) (push) Successful in 10m42s

This commit is contained in:
yml2213
2026-11-06 19:05:41 +08:00
parent 93ef9f2040
commit 723989f039
6 changed files with 524 additions and 135 deletions
+11 -9
View File
@@ -84,15 +84,17 @@ func (h *SessionHandler) SendMessage(c *gin.Context) {
func (h *SessionHandler) List(c *gin.Context) {
page, pageSize := middleware.GetPageParams(c)
f := service.SessionFilter{
Status: c.Query("status"),
Priority: c.Query("priority"),
AgentID: c.Query("agent_id"),
ChannelID: c.Query("channel_id"),
Search: strings.TrimSpace(c.Query("search")),
From: c.Query("from"),
To: c.Query("to"),
Page: page,
PageSize: pageSize,
Scope: c.Query("scope"),
Status: c.Query("status"),
Priority: c.Query("priority"),
AgentID: c.Query("agent_id"),
ChannelID: c.Query("channel_id"),
CustomerID: c.Query("customer_id"),
Search: strings.TrimSpace(c.Query("search")),
From: c.Query("from"),
To: c.Query("to"),
Page: page,
PageSize: pageSize,
}
items, total, err := service.ListSessions(sessionActor(c), middleware.GetTenantID(c), f)
if err != nil {