17 lines
549 B
TypeScript
17 lines
549 B
TypeScript
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",
|
|
)
|
|
}
|