This commit is contained in:
2024-12-16 13:57:33 +08:00
parent eb7ea4acc3
commit a8d1748fc9

View File

@@ -41,7 +41,7 @@ var SearchItems = &graphql.Field{
var searchs []Search
// 发送 GET 请求
resp, err := http.Get(fmt.Sprintf("http://localhost:6005/api/get_search/hot?page=%d", p.Args["first"]))
resp, err := http.Get(fmt.Sprintf("http://localhost:6005/api/get_search/hot?pagesize=%d", p.Args["first"]))
if err != nil {
log.Fatalf("Failed to fetch data: %v", err)
}