fix: 统一分页请求的 offset 语义
This commit is contained in:
@@ -44,7 +44,7 @@ func (l *SearchUserVerificationsLogic) SearchUserVerifications(in *pb.SearchUser
|
||||
}
|
||||
|
||||
verifications, err := l.svcCtx.UserVeriModelRO.Query().Where(predicates...).
|
||||
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