import { request } from '@/api' // 获取入金渠道列表 export const getChannelList = () => { return request.get('/channel/getChannelList') } // 创建入金渠道列表 export const createChannel = (params: any) => { return request.post('/channel/createChannel', { ...params }) } // 编辑入金渠道列表 export const editChannel = (params: any) => { return request.post('/channel/editChannel', { ...params }) } // 删除入金渠道列表 export const delChannel = (params: any) => { return request.post('/channel/delChannel', { ...params }) } // 获取用户充值渠道列表 export const getRechargeChannelList = () => { return request.get('/user/regchargeChannel') } // 用户充值 export const rechargeApi = (params: any) => { return request.post('/user/recharge', { ...params }) } // 获取支付申请引用(扫码支付前必须调用) export const getApplyCustomerRef = () => { return request.post('/delphiPay/getApplyCustomerRef', undefined, { showMessage: false }) } // 获取KYC详情 export const getKycDetail = () => { return request.post('/delphiPay/getKycDetail', undefined, { showMessage: false }) } // 创建买入订单 export const createBuyEx = (data: { channel_id: number amount: string payment_method: string bh?: string pass?: string }) => { return request.post('/delphiPay/createBuyEx', data, { showMessage: false }) }