fix: 统一分页请求的 offset 语义

This commit is contained in:
zetaloop
2026-04-07 17:56:38 +08:00
parent 424b2b1cca
commit d153b5cf51
46 changed files with 334 additions and 346 deletions
@@ -96,7 +96,7 @@ func (l *SearchShopsLogic) SearchShops(in *pb.SearchShopsReq) (*pb.SearchShopsRe
}
list, err := query.
Offset(int(in.Page * in.Limit)).
Offset(int(in.Offset)).
Limit(int(in.Limit)).
All(l.ctx)
if err != nil {