mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-10-31 18:28:43 +08:00 
			
		
		
		
	refactor: refactor axios
This commit is contained in:
		| @@ -1,8 +1,6 @@ | ||||
| import { useAxios } from '@/hooks/web/useAxios' | ||||
| import request from '@/config/axios' | ||||
| import type { AppVO } from './types' | ||||
|  | ||||
| const request = useAxios() | ||||
|  | ||||
| // 查询列表支付应用 | ||||
| export const getAppPageApi = (params) => { | ||||
|   return request.get({ url: '/pay/app/page', params }) | ||||
|   | ||||
| @@ -1,8 +1,6 @@ | ||||
| import { useAxios } from '@/hooks/web/useAxios' | ||||
| import request from '@/config/axios' | ||||
| import type { ChannelVO } from './types' | ||||
|  | ||||
| const request = useAxios() | ||||
|  | ||||
| // 查询列表支付渠道 | ||||
| export const getChannelPageApi = (params) => { | ||||
|   return request.get({ url: '/pay/channel/page', params }) | ||||
|   | ||||
| @@ -1,8 +1,6 @@ | ||||
| import { useAxios } from '@/hooks/web/useAxios' | ||||
| import request from '@/config/axios' | ||||
| import type { MerchantVO } from './types' | ||||
|  | ||||
| const request = useAxios() | ||||
|  | ||||
| // 查询列表支付商户 | ||||
| export const getMerchantPageApi = (params) => { | ||||
|   return request.get({ url: '/pay/merchant/page', params }) | ||||
|   | ||||
| @@ -1,8 +1,6 @@ | ||||
| import { useAxios } from '@/hooks/web/useAxios' | ||||
| import request from '@/config/axios' | ||||
| import type { OrderVO } from './types' | ||||
|  | ||||
| const request = useAxios() | ||||
|  | ||||
| // 查询列表支付订单 | ||||
| export const getOrderPageApi = async (params) => { | ||||
|   return await request.get({ url: '/pay/order/page', params }) | ||||
|   | ||||
| @@ -1,8 +1,6 @@ | ||||
| import { useAxios } from '@/hooks/web/useAxios' | ||||
| import request from '@/config/axios' | ||||
| import type { RefundVO } from './types' | ||||
|  | ||||
| const request = useAxios() | ||||
|  | ||||
| // 查询列表退款订单 | ||||
| export const getRefundPageApi = (params) => { | ||||
|   return request.get({ url: '/pay/refund/page', params }) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 xingyu4j
					xingyu4j