import http from './index.js';

// 分页查询商户列表
export const pageMerchant = (params) => http.get('/shop/merchant/page', {params})

// 查询全部商户
export const listMerchant = (params) => http.get('/shop/merchant', {params})

// 获取商户详情
export const getMerchant = (merchantId) => http.get('/shop/merchant/page', {merchantId})

// 申请退款
export const addWithdraw = (data) => http.post('/shop/merchant-withdraw/apply', data)

export const withdrawPage = (params) => http.get('/shop/merchant-withdraw/page/app', {params})

export default {
	pageMerchant,
	listMerchant,
	getMerchant,
	addWithdraw,
	withdrawPage
}
