Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

feat(playlist_track_all): 获取歌单所有歌曲接口新增offset偏移量设置,以此达到分页效果 #1435

Merged
merged 5 commits into from
Jan 15, 2022

Conversation

SnowingFox
Copy link
Contributor

你可以传入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重置为最大偏移量

@vercel
Copy link

vercel bot commented Jan 15, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployments, click below or on the icon next to each commit.

netease-cloud-music-api-binaryify – ./

🔍 Inspect: https://vercel.com/binaryify/netease-cloud-music-api-binaryify/6F4wkSgKzckZi33hE8qBP9Qsv7dP
✅ Preview: https://netease-cloud-music-api-binaryify-git-fork-sno-cb0eef-binaryify.vercel.app

netease-cloud-music-api – ./docs

🔍 Inspect: https://vercel.com/binaryify/netease-cloud-music-api/9vpXSzWJs5UtfkGHMUMvzkD3yDqF
✅ Preview: https://netease-cloud-music-api-git-fork-snowingfox-master-binaryify.vercel.app

@zx122248006
Copy link

大佬们,想问一下。获取全部歌单的接口是暂时不可以用了嘛?还是我使用的姿势不太对。

@SnowingFox
Copy link
Contributor Author

zx122248006

你是怎么使用的,你的版本?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants