补充个人中心页面api & 首页弹唱查看活动 & 联系客服
This commit is contained in:
14
src/api/funds.ts
Normal file
14
src/api/funds.ts
Normal 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 : [] }
|
||||
}
|
||||
Reference in New Issue
Block a user