mirror of
https://github.com/ctwj/urldb.git
synced 2025-11-25 03:15:04 +08:00
update: 后台界面优化
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user