From a1d7e81859f554f3a53680cc35f0f49bf1f77098 Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期四, 14 五月 2026 14:37:02 +0800
Subject: [PATCH] 导入项目

---
 src/api/pay/refund/index.ts |  116 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 116 insertions(+), 0 deletions(-)

diff --git a/src/api/pay/refund/index.ts b/src/api/pay/refund/index.ts
new file mode 100644
index 0000000..4b587f2
--- /dev/null
+++ b/src/api/pay/refund/index.ts
@@ -0,0 +1,116 @@
+import request from '@/config/axios'
+
+export interface RefundVO {
+  id: number
+  merchantId: number
+  appId: number
+  channelId: number
+  channelCode: string
+  orderId: string
+  tradeNo: string
+  merchantOrderId: string
+  merchantRefundNo: string
+  notifyUrl: string
+  notifyStatus: number
+  status: number
+  type: number
+  payAmount: number
+  refundAmount: number
+  reason: string
+  userIp: string
+  channelOrderNo: string
+  channelRefundNo: string
+  channelErrorCode: string
+  channelErrorMsg: string
+  channelExtras: string
+  expireTime: Date
+  successTime: Date
+  notifyTime: Date
+  createTime: Date
+}
+
+export interface RefundPageReqVO extends PageParam {
+  merchantId?: number
+  appId?: number
+  channelId?: number
+  channelCode?: string
+  orderId?: string
+  tradeNo?: string
+  merchantOrderId?: string
+  merchantRefundNo?: string
+  notifyUrl?: string
+  notifyStatus?: number
+  status?: number
+  type?: number
+  payAmount?: number
+  refundAmount?: number
+  reason?: string
+  userIp?: string
+  channelOrderNo?: string
+  channelRefundNo?: string
+  channelErrorCode?: string
+  channelErrorMsg?: string
+  channelExtras?: string
+  expireTime?: Date[]
+  successTime?: Date[]
+  notifyTime?: Date[]
+  createTime?: Date[]
+}
+
+export interface PayRefundExportReqVO {
+  merchantId?: number
+  appId?: number
+  channelId?: number
+  channelCode?: string
+  orderId?: string
+  tradeNo?: string
+  merchantOrderId?: string
+  merchantRefundNo?: string
+  notifyUrl?: string
+  notifyStatus?: number
+  status?: number
+  type?: number
+  payAmount?: number
+  refundAmount?: number
+  reason?: string
+  userIp?: string
+  channelOrderNo?: string
+  channelRefundNo?: string
+  channelErrorCode?: string
+  channelErrorMsg?: string
+  channelExtras?: string
+  expireTime?: Date[]
+  successTime?: Date[]
+  notifyTime?: Date[]
+  createTime?: Date[]
+}
+
+// 鏌ヨ鍒楄〃閫�娆捐鍗�
+export const getRefundPage = (params: RefundPageReqVO) => {
+  return request.get({ url: '/pay/refund/page', params })
+}
+
+// 鏌ヨ璇︽儏閫�娆捐鍗�
+export const getRefund = (id: number) => {
+  return request.get({ url: '/pay/refund/get?id=' + id })
+}
+
+// 鏂板閫�娆捐鍗�
+export const createRefund = (data: RefundVO) => {
+  return request.post({ url: '/pay/refund/create', data })
+}
+
+// 淇敼閫�娆捐鍗�
+export const updateRefund = (data: RefundVO) => {
+  return request.put({ url: '/pay/refund/update', data })
+}
+
+// 鍒犻櫎閫�娆捐鍗�
+export const deleteRefund = (id: number) => {
+  return request.delete({ url: '/pay/refund/delete?id=' + id })
+}
+
+// 瀵煎嚭閫�娆捐鍗�
+export const exportRefund = (params: PayRefundExportReqVO) => {
+  return request.download({ url: '/pay/refund/export-excel', params })
+}

--
Gitblit v1.8.0