This commit is contained in:
2023-04-28 07:28:40 +08:00
parent 8b14c7b7ec
commit f264d6921d
3 changed files with 5 additions and 6 deletions

View File

@@ -52,7 +52,6 @@ func models_get(w http.ResponseWriter, r *http.Request) {
listview.Page = ParamInt(r.URL.Query().Get("page"), 1)
listview.PageSize = ParamInt(r.URL.Query().Get("pageSize"), 10)
listview.List = models.QueryModels(listview.Page, listview.PageSize)
fmt.Println(listview.List)
listview.Total = models.CountModels()
listview.Next = listview.Page*listview.PageSize < listview.Total
w.Header().Set("Content-Type", "application/json; charset=utf-8")