Files
ipms-sjy/yudao-ui-admin-vue3/src/api/pay/refund/index.ts

35 lines
955 B
TypeScript
Raw Normal View History

2022-07-19 22:33:54 +08:00
import { useAxios } from '@/hooks/web/useAxios'
2022-07-18 19:06:37 +08:00
import type { RefundVO } from './types'
2022-07-19 22:33:54 +08:00
const request = useAxios()
2022-07-18 19:06:37 +08:00
// 查询列表退款订单
2022-07-19 22:33:54 +08:00
export const getRefundPageApi = (params) => {
return request.get({ url: '/pay/refund/page', params })
2022-07-18 19:06:37 +08:00
}
// 查询详情退款订单
export const getRefundApi = (id: number) => {
2022-07-19 22:33:54 +08:00
return request.get({ url: '/pay/refund/get?id=' + id })
2022-07-18 19:06:37 +08:00
}
// 新增退款订单
2022-07-19 22:33:54 +08:00
export const createRefundApi = (data: RefundVO) => {
return request.post({ url: '/pay/refund/create', data })
2022-07-18 19:06:37 +08:00
}
// 修改退款订单
2022-07-19 22:33:54 +08:00
export const updateRefundApi = (data: RefundVO) => {
return request.put({ url: '/pay/refund/update', data })
2022-07-18 19:06:37 +08:00
}
// 删除退款订单
export const deleteRefundApi = (id: number) => {
2022-07-19 22:33:54 +08:00
return request.delete({ url: '/pay/refund/delete?id=' + id })
2022-07-18 19:06:37 +08:00
}
// 导出退款订单
export const exportRefundApi = (params) => {
2022-07-19 22:33:54 +08:00
return request.get({ url: '/pay/refund/export-excel', params, responseType: 'blob' })
2022-07-18 19:06:37 +08:00
}