feat: pay api
This commit is contained in:
24
apps/web-antd/src/api/pay/wallet/transaction/index.ts
Normal file
24
apps/web-antd/src/api/pay/wallet/transaction/index.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
import type { PageParam, PageResult } from '@vben/request';
|
||||
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
export namespace WalletTransactionApi {
|
||||
/** 钱包交易流水信息 */
|
||||
export interface Transaction {
|
||||
id: number;
|
||||
walletId: number;
|
||||
title: string;
|
||||
price: number;
|
||||
balance: number;
|
||||
}
|
||||
}
|
||||
|
||||
/** 查询钱包交易流水列表 */
|
||||
export function getTransactionPage(params: PageParam) {
|
||||
return requestClient.get<PageResult<WalletTransactionApi.Transaction>>(
|
||||
'/pay/wallet-transaction/page',
|
||||
{
|
||||
params,
|
||||
},
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user