feat: 追番追剧

This commit is contained in:
lanyeeee
2025-08-21 04:49:57 +08:00
parent e1088cb8f5
commit 7cafb754ae
8 changed files with 412 additions and 6 deletions
+8
View File
@@ -48,6 +48,14 @@ async getNormalInfo(params: GetNormalInfoParams) : Promise<Result<NormalInfo, Co
else return { status: "error", error: e as any };
}
},
async getBangumiInfo(params: GetBangumiInfoParams) : Promise<Result<BangumiInfo, CommandError>> {
try {
return { status: "ok", data: await TAURI_INVOKE("get_bangumi_info", { params }) };
} catch (e) {
if(e instanceof Error) throw e;
else return { status: "error", error: e as any };
}
},
async getUserVideoInfo(params: GetUserVideoInfoParams) : Promise<Result<UserVideoInfo, CommandError>> {
try {
return { status: "ok", data: await TAURI_INVOKE("get_user_video_info", { params }) };