fix: 一些基本功能
This commit is contained in:
61
apps/web-antd/src/views/finance/withdrawal/api/index.ts
Normal file
61
apps/web-antd/src/views/finance/withdrawal/api/index.ts
Normal file
@@ -0,0 +1,61 @@
|
||||
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,
|
||||
});
|
||||
}
|
||||
51
apps/web-antd/src/views/finance/withdrawal/api/settlement.ts
Normal file
51
apps/web-antd/src/views/finance/withdrawal/api/settlement.ts
Normal file
@@ -0,0 +1,51 @@
|
||||
import { requestClient } from '#/api/request';
|
||||
const prefix = 'settlement/';
|
||||
/**
|
||||
* 分页查询用户列表
|
||||
* @param data
|
||||
*/
|
||||
export async function getSettlementList(data: any) {
|
||||
return requestClient.get<any>(`${prefix}list`, { params: data });
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取管理员详情
|
||||
* @param id
|
||||
*/
|
||||
export async function getSettlementInfo(id: number) {
|
||||
return requestClient.get<any>(`${prefix}detail`, { params: { id } });
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增管理员
|
||||
* @param data
|
||||
*/
|
||||
export async function createSettlement(data: Record<string, any>) {
|
||||
return requestClient.post<any>(`${prefix}create`, data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑管理员
|
||||
* @param data
|
||||
*/
|
||||
export async function updateSettlement(data: Record<string, any>) {
|
||||
return requestClient.post<any>(`${prefix}update`, data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除管理员
|
||||
* @param data
|
||||
*/
|
||||
export async function deleteSettlement(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,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user