Files
xk-admin/apps/web-antd/src/views/finance/withdrawal/api/index.ts

72 lines
1.8 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { requestClient } from '#/api/request';
const prefix = 'withdrawal-application/';
/**
* 分页查询用户列表
* @param data
*/
export async function getWithdrawalApplicationList(data: any) {
return requestClient.get<any>(`${prefix}list`, { params: data });
}
/**
* 获取提现记录详情
* @param id
*/
export async function getWithdrawalApplicationInfo(id: number) {
return requestClient.get<any>(`${prefix}detail`, { params: { id } });
}
/**
* 新增提现记录
* @param data
*/
export async function createWithdrawalApplicationWithdrawal(
data: Record<string, any>,
) {
return requestClient.post<any>(`${prefix}withdrawal`, data);
}
/**
* 新增提现记录
* @param data
*/
export async function createWithdrawalApplication(data: Record<string, any>) {
return requestClient.post<any>(`${prefix}create`, data);
}
/**
* 编辑提现记录
* @param data
*/
export async function updateWithdrawalApplication(data: Record<string, any>) {
return requestClient.post<any>(`${prefix}update`, data);
}
/**
* 删除提现记录
* @param data
*/
export async function deleteWithdrawalApplication(data: Record<string, any>) {
return requestClient.post<any>(`${prefix}delete`, data);
}
/**
* 删除提现记录
* @param id
*/
export async function resetPassword(id: number) {
return requestClient.post<any>(`${prefix}reset-password`, {
id,
});
}
/** 可提订单明细分页 xk-api GET /withdrawal-application/withdrawable-orders */
export async function getWithdrawableOrders(data: Record<string, any>) {
return requestClient.get<any>(`${prefix}withdrawable-orders`, { params: data });
}
/** 提现规则文案 xk-api GET /withdrawal-application/rules(系统配置) */
export async function getWithdrawalRules() {
return requestClient.get<any>(`${prefix}rules`);
}