feat:【antd】【ele】【pay 支付】pay/notify 迁移 ele 版本

This commit is contained in:
YunaiV
2025-10-06 11:11:51 +08:00
parent c168045639
commit 0627f5072d
5 changed files with 274 additions and 133 deletions

View File

@@ -1,15 +1,52 @@
import type { PageParam } from '@vben/request';
import type { PageParam, PageResult } from '@vben/request';
import { requestClient } from '#/api/request';
export namespace PayNotifyApi {
/** 支付通知任务 */
export interface NotifyTask {
id: number;
appId: number;
appName: string;
type: number;
dataId: number;
status: number;
merchantOrderId: string;
merchantRefundId?: string;
merchantTransferId?: string;
lastExecuteTime: Date;
nextNotifyTime: Date;
notifyTimes: number;
maxNotifyTimes: number;
createTime: Date;
updateTime: Date;
logs?: any[];
}
/** 支付通知任务分页请求 */
export interface NotifyTaskPageReqVO extends PageParam {
appId?: number;
type?: number;
dataId?: number;
status?: number;
merchantOrderId?: string;
merchantRefundId?: string;
merchantTransferId?: string;
createTime?: Date[];
}
}
/** 获得支付通知明细 */
export function getNotifyTaskDetail(id: number) {
return requestClient.get(`/pay/notify/get-detail?id=${id}`);
}
/** 获得支付通知分页 */
export function getNotifyTaskPage(params: PageParam) {
return requestClient.get('/pay/notify/page', {
params,
});
export function getNotifyTaskPage(params: PayNotifyApi.NotifyTaskPageReqVO) {
return requestClient.get<PageResult<PayNotifyApi.NotifyTask>>(
'/pay/notify/page',
{
params,
},
);
}