From 5168aaba2911a9fa457000c3457eae25ff83fe7f Mon Sep 17 00:00:00 2001 From: zhora Date: Thu, 16 Oct 2025 16:05:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=A4=9A=E6=B8=A0=E9=81=93?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../backend/handler/statistics/reviewData.go | 3 +++ modules/backend/values/statistics.go | 17 +++++++++-------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/modules/backend/handler/statistics/reviewData.go b/modules/backend/handler/statistics/reviewData.go index 4dd9904..f8e05c6 100644 --- a/modules/backend/handler/statistics/reviewData.go +++ b/modules/backend/handler/statistics/reviewData.go @@ -42,6 +42,9 @@ func ReviewData(c *gin.Context) { cids = append(cids, &a.User.SChannels[i]) } } + if req.ChannelIDs != nil { + cids = *(req.ChannelIDs) + } // resp.CompaireData = GetCompaireData(compairCIDs) // } total := &values.ReviewData{} diff --git a/modules/backend/values/statistics.go b/modules/backend/values/statistics.go index 0dd4e23..c69fbfb 100644 --- a/modules/backend/values/statistics.go +++ b/modules/backend/values/statistics.go @@ -47,14 +47,15 @@ type KeepData struct { // End 结束时间 // Page 页码 type ReviewDataReq struct { - Area int `json:"Area" binding:"required"` - Games *string `json:"Games"` - Platform *int `json:"Platform"` - ChannelID *int `json:"ChannelID"` - Start string `json:"Start"` - End string `json:"End"` - Page int `json:"Page" binding:"required"` - Num int `json:"Num" binding:"required"` + Area int `json:"Area" binding:"required"` + Games *string `json:"Games"` + Platform *int `json:"Platform"` + ChannelID *int `json:"ChannelID"` + ChannelIDs *[]*int `json:"ChannelIDs"` + Start string `json:"Start"` + End string `json:"End"` + Page int `json:"Page" binding:"required"` + Num int `json:"Num" binding:"required"` } // ReviewDataResp 请求数据总览返回