补充个人中心下的页面
This commit is contained in:
16
src/api/httpRecharge.ts
Normal file
16
src/api/httpRecharge.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import type { ApiResponse } from "@/lib/api"
|
||||
import type { HttpRechargeItem } from "@/lib/models/httpRecharge"
|
||||
import { callByUser } from "./base"
|
||||
|
||||
// ==================== HTTP 充值记录 ====================
|
||||
// TODO: 接口路径待后端确认(旧后台为 php-api /http/* 充值列表接口)。
|
||||
|
||||
export async function fetchHttpRechargeList(
|
||||
params: Record<string, unknown>,
|
||||
): Promise<ApiResponse<HttpRechargeItem[]>> {
|
||||
return await callByUser<HttpRechargeItem[]>(
|
||||
"/api/course/v1/order/HttpRecharges",
|
||||
params,
|
||||
"GET",
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user