✏️ 完善基本 Response 类型 #51

This commit is contained in:
BTMuli
2023-10-26 18:58:06 +08:00
parent 1d408b5d24
commit 9a221f9b64
33 changed files with 266 additions and 238 deletions

View File

@@ -1,11 +1,9 @@
/**
* @file web request getGachaLog.ts
* @file web/request/getGachaLog.ts
* @description 获取抽卡记录请求函数
* @author BTMuli <bt-muli@outlook.com>
* @since Beta v0.3.0
*/
// tauri
import { http } from "@tauri-apps/api";
/**
@@ -33,7 +31,7 @@ export async function getGachaLog(
end_id: endId,
};
return await http
.fetch<TGApp.Game.Gacha.GachaLogResponse>(url, {
.fetch<TGApp.Game.Gacha.GachaLogResponse | TGApp.BBS.Response.Base>(url, {
method: "GET",
query: params,
})