This repository has been archived by the owner on Apr 16, 2024. It is now read-only.
feat(playlist_track_all): 获取歌单所有歌曲接口新增offset偏移量设置,以此达到分页效果 #1435
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
你可以传入
offset
参数来设置偏移量,从而设置分页,其中offset
默认为0,如
你传入limit=10&offset=0等价于limit=10,你会得到第1-10首歌曲
你传入limit=10&offset=1,你会得到第11-20首歌曲
如果你设置limit=10&offset=2,你就会得到第21-30首歌曲
如果你offset超出了最大偏移量,即超出了
歌曲数量
/limit
,则offset重置为最大偏移量