mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-13 09:28:14 +08:00
28 lines
669 B
TypeScript
28 lines
669 B
TypeScript
/**
|
|
* @file plugins Hutao request getOverview.ts
|
|
* @description 获取深渊概览数据
|
|
* @author BTMuli <bt-muli@outlook.com>
|
|
* @since Alpha v0.2.0
|
|
*/
|
|
|
|
// tauri
|
|
import { http } from "@tauri-apps/api";
|
|
// api
|
|
import HutaoApi from "../api";
|
|
|
|
/**
|
|
* @description 获取深渊概览数据
|
|
* @since Alpha v0.2.0
|
|
* @return {Promise<TGApp.Plugins.Hutao.AbyssOverview>}
|
|
*/
|
|
async function getOverview (): Promise<TGApp.Plugins.Hutao.AbyssOverview> {
|
|
const url = HutaoApi.Abyss.overview;
|
|
return await http.fetch<TGApp.Plugins.Hutao.AbyssOverviewResponse>(url, {
|
|
method: "GET",
|
|
}).then((res) => {
|
|
return res.data.data;
|
|
});
|
|
}
|
|
|
|
export default getOverview;
|