Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

我想增加一个获取用户所有喜欢歌曲的方法 #77

Open
rebron1900 opened this issue Sep 28, 2024 · 4 comments
Open

我想增加一个获取用户所有喜欢歌曲的方法 #77

rebron1900 opened this issue Sep 28, 2024 · 4 comments

Comments

@rebron1900
Copy link

请问可以在server.ts中这部分新曾一个,如 /list 的接口,并直接通过 src/modules/list/manage.ts 里的 getListData 函数获取所有数据吗?

switch (endUrl) {
case '/hello':
code = 200
msg = SYNC_CODE.helloMsg
break
case '/id':
code = 200
msg = SYNC_CODE.idPrefix + getServerId()
break
case '/ah':
void authCode(req, res, lx.config.users)
break
default:
code = 401
msg = 'Forbidden'
break
}

@rebron1900
Copy link
Author

麻烦给个大概的思路也可以,主要目的就是想通过这个服务获取当前用户所有喜欢的歌曲,试听列表等等。

@rebron1900
Copy link
Author

emmm,看了下数据,似乎没有时间信息,似乎没用。

@lyswhut
Copy link
Owner

lyswhut commented Sep 30, 2024

可以的,鉴权方式与socket连接一样就行了,目前收藏列表没存有歌曲添加时间,也没有歌曲发行时间

@rebron1900
Copy link
Author

rebron1900 commented Sep 30, 2024

可以的,鉴权方式与socket连接一样就行了,目前收藏列表没存有歌曲添加时间,也没有歌曲发行时间

那没啥用了,hhh,会考虑做下更新吗,既然做了一个单独服务,其实还是可以拓展一下api,提供一些其他玩法。
Spotify目前就能通过api获取播放信息啥的,还是挺有意思的。

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

No branches or pull requests

2 participants