From 1aab961b8d1e01a57a713f9e0c612ab3d0540131 Mon Sep 17 00:00:00 2001 From: Rogee Date: Sat, 20 Dec 2025 23:34:59 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E8=B4=AD=E4=B9=B0?= =?UTF-8?q?=E8=AE=B0=E5=BD=95=E5=88=86=E9=A1=B5=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend_v1/app/services/posts.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend_v1/app/services/posts.go b/backend_v1/app/services/posts.go index 45b898b..3431be4 100644 --- a/backend_v1/app/services/posts.go +++ b/backend_v1/app/services/posts.go @@ -115,6 +115,8 @@ func (m *posts) Bought(ctx context.Context, userId int64, pagination *requests.P RightJoin(tblUserPost, tbl.ID.EqCol(tblUserPost.PostID)). Where(tblUserPost.UserID.Eq(userId)). Order(tblUserPost.CreatedAt.Desc()). + Limit(int(pagination.Limit)). + Offset(int(pagination.Offset())). Scan(&retItems) if err != nil { return nil, err