diff --git a/interface.d.ts b/interface.d.ts index 40156ee..36dc3bc 100644 --- a/interface.d.ts +++ b/interface.d.ts @@ -1474,6 +1474,10 @@ export function artist_new_song( } & RequestBaseConfig, ): Promise +export function artist_new_song_playall( + params: RequestBaseConfig, +): Promise + export function artist_detail( params: { id: number | string diff --git a/module/artist_new_song_playall.js b/module/artist_new_song_playall.js new file mode 100644 index 0000000..8f8b387 --- /dev/null +++ b/module/artist_new_song_playall.js @@ -0,0 +1,10 @@ +// 获取所有关注歌手最近的 50 首新歌 + +const createOption = require('../util/option.js') +module.exports = (query, request) => { + return request( + `/api/sub/artist/new/works/song/playall`, + {}, + createOption(query, 'eapi'), + ) +} diff --git a/public/docs/home.md b/public/docs/home.md index fb1f355..84fdbe7 100644 --- a/public/docs/home.md +++ b/public/docs/home.md @@ -3612,6 +3612,14 @@ type='1009' 获取其 id, 如`/search?keywords= 代码时间 &type=1009` **调用例子 :** `/artist/new/song?limit=1` `/artist/new/song?limit=1&before=1602777625000` +### 关注歌手最近新歌 - 播放全部 + +说明 : 登录后调用此接口可获取所有关注歌手最近的 50 首新歌 + +**接口地址 :** `/artist/new/song/playall` + +**调用例子 :** `/artist/new/song/playall` + ### 关注歌手新 MV 说明 :登录后调用此接口可获取关注歌手新 MV