fix: 统一分页请求的 offset 语义
This commit is contained in:
@@ -36,7 +36,7 @@ func (l *SearchPlayerServicesLogic) SearchPlayerServices(in *pb.SearchPlayerServ
|
||||
|
||||
all, err := update.
|
||||
Limit(int(in.Limit)).
|
||||
Offset(int(in.Limit * in.Page)).
|
||||
Offset(int(in.Offset)).
|
||||
All(l.ctx)
|
||||
if err != nil {
|
||||
return nil, errors.New("query all player services err")
|
||||
|
||||
Reference in New Issue
Block a user