update: 后台界面优化

This commit is contained in:
ctwj
2025-08-11 01:34:07 +08:00
parent 1b0fc06bf7
commit b567531a7d
33 changed files with 1186 additions and 419 deletions

View File

@@ -44,6 +44,21 @@ func GetResources(c *gin.Context) {
utils.Error("解析分类ID失败: %v", err)
}
}
if hasSaveURL := c.Query("has_save_url"); hasSaveURL != "" {
if hasSaveURL == "true" {
params["has_save_url"] = true
} else if hasSaveURL == "false" {
params["has_save_url"] = false
}
}
if noSaveURL := c.Query("no_save_url"); noSaveURL != "" {
if noSaveURL == "true" {
params["no_save_url"] = true
}
}
if panName := c.Query("pan_name"); panName != "" {
params["pan_name"] = panName
}
resources, total, err := repoManager.ResourceRepository.SearchWithFilters(params)