This commit is contained in:
Mrx
2026-05-27 12:11:26 +08:00
parent 2a33369639
commit b7fb2a73c9
3 changed files with 144 additions and 0 deletions

View File

@@ -426,6 +426,16 @@ func (h *ApiHandler) GetAdminApiCalls(c *gin.Context) {
filters["user_id"] = userId
}
// 用户ID列表筛选
if userIds := c.Query("user_ids"); userIds != "" {
filters["user_ids"] = userIds
}
// 产品ID列表筛选
if productIds := c.Query("product_ids"); productIds != "" {
filters["product_ids"] = productIds
}
// 时间范围筛选
if startTime := c.Query("start_time"); startTime != "" {
if t, err := time.Parse("2006-01-02 15:04:05", startTime); err == nil {