import http from './index.js';

// 分页查询提现明细
export const pageMerchantWithdraw = (params) => http.get('/shop/merchant-withdraw/page', {params})

// 查询全部提现明细
export const listMerchantWithdraw = (params) => http.get('/shop/merchant-withdraw', {params})

// 获取提现明细
export const getMerchantWithdraw = (id) => http.get('/shop/merchant-withdraw/page', {id})

// 添加提现明细
export const addMerchantWithdraw = (data) => http.post('/shop/merchant-withdraw', data)

// 修改提现明细
export const updateMerchantWithdraw = (data) => http.put('/shop/merchant-withdraw/', data)

export default {
	pageMerchantWithdraw,
	listMerchantWithdraw,
	getMerchantWithdraw,
	addMerchantWithdraw,
	updateMerchantWithdraw
}
