补充个人中心页面api & 首页弹唱查看活动 & 联系客服

This commit is contained in:
Eamon
2026-09-08 16:19:40 +08:00
parent f59e929843
commit 7f03dbfb56
45 changed files with 2146 additions and 1359 deletions

14
src/api/funds.ts Normal file
View File

@@ -0,0 +1,14 @@
import type { ApiResponse } from "@/lib/api"
import type { ScoreItem } from "@/lib/models/funds"
import { phpPost } from "./http"
export async function fetchScoreList(
page: number,
): Promise<ApiResponse<ScoreItem[]>> {
const res = await phpPost<ScoreItem[] | unknown>("/user/UserScore/getList", {
cookie: document.cookie,
page,
})
if (!res.success) return res
return { success: true, data: Array.isArray(res.data) ? res.data : [] }
}