This commit is contained in:
2026-02-11 21:18:57 +08:00
parent 9ca8b4a993
commit 21c4614c39
3 changed files with 149 additions and 92 deletions
+7
View File
@@ -65,6 +65,13 @@ func ApiPurchase(r *gin.RouterGroup) {
fmt.Println(count)
//读取条目
var getorders []models.TabPurchaseOrder
models.DB.Order("created_at DESC").Limit(jsondata.Entries).Find(&getorders)
ReturnJson(ctx, "apiOK", map[string]interface{}{
"all_count": count,
"all_orders": getorders,
})
} else {
ReturnJson(ctx, "jsonErr", nil)