程序员必备宝典https://tmxkj.top/#/
-
在此声明,本内容仅供个人学习、研究或娱乐之用,严禁任何形式的商业用途。若您发现本内容被用于商业目的,请立即与我们联系,我们将删除原代码。
-
我们尊重并保护所有原创作品的知识产权。
-
为了营造一个健康、积极的网络环境,我们鼓励用户遵守相关法律法规,尊重他人劳动成果,不进行任何形式的侵权行为。同时,我们也将持续优化内容审核机制,加强对侵权行为的打击力度,保障广大用户的合法权益。
-
如有任何疑问或建议,欢迎随时联系小编。我们将竭诚为您提供帮助,共同维护一个和谐、有序的网络空间。
<!-- fastjson格式 -->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>1.2.78</version>
</dependency>
<!--实体类参数校验-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>
<!-- gson转实体类配置-->
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.11.0</version>
</dependency>
(1)歌曲查找请求返回示例:
{
"code": 200,
"msg": "成功!",
"data": [
{
"id": "64563865",
"fileName": "小贱、星弟 - 不想做朋友",
"albumName": "不想做朋友",
"singerName": "小贱、星弟",
"albumId": "975285",
"duration": 236,
"singers": [
{
"name": "小贱",
"ip_id": 0,
"id": 3227
},
{
"name": "星弟",
"ip_id": 0,
"id": 3161
}
],
"mvHash": "D42F35525BDA84550E01177191D17B0D",
"type": "audio",
"image": "http://imge.kugou.com/stdmusic/{size}/20210112/20210112235153293725.jpg",
"suffix": "",
"transParam": {
"unionCover": "http://imge.kugou.com/stdmusic/{size}/20210112/20210112235153293725.jpg",
"language": "国语"
},
"timestamp": 1726210030,
"isHaveMv": true,
"playDuration": "3:56",
"playUrl": null,
"hash": null,
"lyrics": null,
"emixSongId": "12ftsp9e"
},
{
"id": "313917307",
"fileName": "钟小明 - 不想做朋友",
"albumName": "翻唱",
"singerName": "钟小明",
"albumId": "44694996",
"duration": 236,
"singers": [
{
"name": "钟小明",
"ip_id": 0,
"id": 5281518
}
],
"mvHash": "CFEF1B0B2A1E2C2309442113CF506994",
"type": "audio",
"image": "http://imge.kugou.com/stdmusic/{size}/20210516/20210516100230949417.jpg",
"suffix": "",
"transParam": {
"unionCover": "http://imge.kugou.com/stdmusic/{size}/20210516/20210516100230949417.jpg",
"language": "国语"
},
"timestamp": 1726210030,
"isHaveMv": true,
"playDuration": "3:56",
"playUrl": null,
"hash": null,
"lyrics": null,
"emixSongId": "56wc574a"
}]
(2)歌曲下载请求返回示例:
{
"code": 200,
"msg": "获