This commit is contained in:
‘hanzhixiao’ 2023-07-14 11:57:29 +08:00
parent b7927e0064
commit 874aa1de0f

View File

@ -1196,5 +1196,7 @@ func (m *MsgMongoDriver) searchMessage(ctx context.Context, req *msg.SearchMessa
msgs = append(msgs, msg)
}
}
start := (req.Pagination.PageNumber - 1) * req.Pagination.ShowNumber
msgs = msgs[start : start+req.Pagination.ShowNumber]
return msgs, nil
}