refactor(sdk): musicSdk 全量迁移至 TypeScript

This commit is contained in:
snowy-yang committed 2026-08-29 00:23:50 +08:00
1 parent f289df4cd7
commit 1dfb7a59ca
83 files changed
+924 -732

No files matched your search

+30
View File
@@ -0,0 +1,30 @@
// 虾米音乐 —— 服务已关停,全部接口返回失败(保留桩实现)
import type { PlatformModule, SongInfo, Quality } from './types.ts'
const xm: PlatformModule = {
comment: {
getComment(_songInfo: SongInfo) {
return Promise.reject(new Error('fail'))
},
getHotComment(_songInfo: SongInfo) {
return Promise.reject(new Error('fail'))
},
},
getMusicUrl(_songInfo: SongInfo, _type: Quality) {
return {
promise: Promise.reject(new Error('fail')),
cancelHttp() {},
}
},
getLyric(_songInfo: SongInfo) {
return {
promise: Promise.reject(new Error('fail')),
cancelHttp() {},
}
},
getPic(_songInfo: SongInfo) {
return Promise.reject(new Error('fail'))
},
}
export default xm