fix: 统一分页请求的 offset 语义
This commit is contained in:
@@ -63,7 +63,7 @@ func (l *SearchShopInvitationsLogic) SearchShopInvitations(in *pb.SearchShopInvi
|
||||
}
|
||||
|
||||
list, err := query.
|
||||
Offset(int(in.Page * in.Limit)).
|
||||
Offset(int(in.Offset)).
|
||||
Limit(int(in.Limit)).
|
||||
All(l.ctx)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user