gaoluyang
2026-06-24 c0cb161bb52ce0fbdce5c66ec391d107c75e2452
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import type { PageParam, PageResult } from '..\..\..\packages\effects\request\src';
 
import { requestClient } from '#/api/request';
 
export namespace PayNotifyApi {
  /** 支付通知日志 */
  export interface NotifyLog {
    id?: number;
    status?: number;
    notifyTimes?: number;
    lastExecuteTime?: Date;
    createTime?: Date;
    response?: string;
  }
 
  /** 支付通知任务 */
  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?: NotifyLog[];
  }
}
 
/** 获得支付通知明细 */
export function getNotifyTaskDetail(id: number) {
  return requestClient.get<PayNotifyApi.NotifyTask>(`/pay/notify/get-detail?id=${id}`);
}
 
/** 获得支付通知分页 */
export function getNotifyTaskPage(params: PageParam) {
  return requestClient.get<PageResult<PayNotifyApi.NotifyTask>>(
    '/pay/notify/page',
    {
      params,
    },
  );
}