import apis from '../utils/request'; const { GET, POST, PUT, DELETE } = apis // 获取充值记录 export const getRechargeList = async function(year = "", codeId = "", pay = "") { const tenement = wx.getStorageSync('tenement')?.id return await GET(`/wx/getRechargeList?year=${year}&tenement=${tenement}&codeId=${codeId}&pay=${pay}`); } // 预备充值请求 export const requestRecharge = async function(data) { return await POST(`/wx/requestRecharge`, data); } // 获取充值记录详情 export const getRechargeDetail = async function(rid) { return await GET(`/wx/getRechargeDetail/${rid}`); } // 退费 export const returnFee = async function(data) { return await POST(`/wx/return`, data); } // 创建对公 export const createPublicTopUp = async function(data) { return await POST(`/wx/createPublicTopUp`, data); }