| | |
| | | export function wxLoginApi(data){ |
| | | return request('/user/wxLogin',data,'POST') |
| | | } |
| | | //文件上传 |
| | | export function uploadApi(data){ |
| | | return request('/file/upload',data,'POST') |
| | | } |
| | | //首页 |
| | | export function getVipInfoApi(){ |
| | | return request('/waterCard/getUserCard',{},'GET') |
| | |
| | | export function getRegionApi(code){ |
| | | return request(`/sysRegion/getListChild?code=${code}`,{},'GET') |
| | | } |
| | | //创建用户档案、送水地址 |
| | | //开卡、用户档案、送水地址 |
| | | export function creatUserArchive(data){ |
| | | return request('/userArchives/realName',data,'POST') |
| | | } |
| | |
| | | export function searchAddress(data){ |
| | | return request('/userAddress/search',data,'POST') |
| | | } |
| | | //编辑地址 |
| | | export function editAddressApi(data){ |
| | | return request('/userAddress/modify',data,'POST') |
| | | } |
| | | //根据id获取地址 |
| | | export function getAddressApi(id){ |
| | | return request(`/userAddress/get?id=${id}`,{},'GET') |
| | | } |
| | | //删除 |
| | | export function deleteAddressApi(id){ |
| | | return request(`/userAddress/remove?id=${id}`,{},'GET') |
| | | } |
| | | //设置地址默认值 |
| | | export function setAddressDefaultApi(id){ |
| | | return request(`/userAddress/editDefault?id=${id}`,{},'GET') |
| | | } |
| | | //获取设备列表 |
| | | export function searchFacilityApi(data){ |
| | | return request('/waterFacility/search',data,'POST') |
| | | } |
| | | //获取设备站点、营业网点列表 |
| | | export function siteApi(data){ |
| | | return request('/waterDrinkingSite/getSearchList',data,'POST') |
| | | } |
| | | //修改用户信息 |
| | | export function editUserInfoApi(data){ |
| | | return request('/userArchives/modify',data,'POST') |
| | | } |
| | | //微信支付 |
| | | export function wxPayApi(data){ |
| | | return request('/pay/service/wxPay',data,'POST') |
| | | } |
| | | //余额记录 |
| | | export function balanceChangeApi(date){ |
| | | return request(`/userCapitalChange/getListByUser?date=${date}`,{},'GET') |
| | | } |
| | | //用户充值消费金额统计 |
| | | export function balanceStatisticsApi(date){ |
| | | return request(`/userCapitalChange/getAmountStatistics?date=${date}`,{},'GET') |
| | | } |
| | | //消费记录 |
| | | export function paymentChangeApi(date){ |
| | | return request(`/paymentRecords/getListByUser?date=${date}`,{},'GET') |
| | | } |
| | | //充值记录 |
| | | export function rechargeChangeApi(date){ |
| | | return request(`/rechargeRecords/getListByUser?date=${date}`,{},'GET') |
| | | } |
| | | //会员卡挂失 |
| | | export function reportLossApi(cardNumber){ |
| | | return request(`/waterCard/reportLoss?cardNumber=${cardNumber}`,{},'GET') |
| | | } |
| | | //会员卡删除 |
| | | export function removeCardApi(cardNumber){ |
| | | return request(`/waterCard/remove?cardNumber=${cardNumber}`,{},'GET') |
| | | } |
| | | //故障上报 |
| | | export function infoBreakdownApi(data){ |
| | | return request('/waterFacilityMalfunction/create',data,'POST') |
| | | } |
| | | //会员卡共享 |
| | | export function askShareApi(data){ |
| | | return request('/waterCardShare/askShare',data,'POST') |
| | | } |
| | | //会员卡共享列表 |
| | | export function askShareListApi(id){ |
| | | return request(`/waterCardShare/getListByUser?userId=${id}`,{},'GET') |
| | | } |
| | | //控制共享状态 |
| | | export function editShareTypeApi(data){ |
| | | return request('/waterCardShare/editShareType',data,'POST') |
| | | } |
| | | //扫码购水消费 |
| | | export function buyWaterApi(data){ |
| | | return request('/api/facility/buyWater',data,'POST') |
| | | } |
| | | //扫码获取水价 |
| | | export function getPriceBySnApi(sn){ |
| | | return request(`/waterFacility/getPriceBySn?sn=${sn}`,{},'GET') |
| | | } |
| | | //水卡充值 |
| | | export function rechargeApi(data){ |
| | | return request('/rechargeRecords/fees',data,'POST') |
| | | } |
| | | //积分相关------------------------------------------------------------------------------------------------------------------------ |
| | | //积分获取明细 |
| | | export function pointsSearchApi(data){ |
| | | return request('/userIntegralAcquire/search',data,'POST') |
| | | } |
| | | //积分兑换记录 |
| | | export function pointsExchangeApi(data){ |
| | | return request('/userIntegralConvert/search',data,'POST') |
| | | } |
| | | //查询积分商品 |
| | | export function goodsGetApi(id){ |
| | | return request(`/shopGoods/getListByCategoryId?categoryId=${id}`,{},'GET') |
| | | } |
| | | //根据id查商品 |
| | | export function goodsGetByIdApi(id){ |
| | | return request(`/shopGoods/get?id=${id}`,{},'GET') |
| | | } |
| | | //查询积分商品类型 |
| | | export function goodsSearchTypeApi(data){ |
| | | return request('/shopGoodsCategory/search',data,'POST') |
| | | } |
| | | |
| | | //积分兑换 |
| | | export function integralConvertApi(data){ |
| | | return request('/userIntegralConvert/create',data,'POST') |
| | | } |
| | | //积分规则 |
| | | export function getRuleDetailApi(data){ |
| | | return request('/userIntegralRuleDetail/search',data,'POST') |
| | | } |
| | | //运维平台----------------------------------------------------------------------------------------------------------------------------- |
| | | //管理员信息 |
| | | export function adminLoginApi(data){ |
| | | return request('/admin/user/login',data,'POST') |
| | | } |
| | | export function adminDetailApi(id){ |
| | | return request(`/admin/user/detail?userId=${id}`,{},'GET') |
| | | } |
| | | //设备状态统计 |
| | | export function getRunStateApi(data){ |
| | | return request(`/homePage/getFacilityRunState`,data,'POST') |
| | | } |
| | | //营收总览统计 |
| | | export function getTotalRevenueApi(data){ |
| | | return request(`/homePage/getTotalRevenue`,data,'POST') |
| | | } |
| | | //用水量统计 |
| | | export function getWaterConsumptionApi(data){ |
| | | return request(`/homePage/getWaterConsumption`,data,'POST') |
| | | } |
| | | //获取区域数据 |
| | | export function getParentAreaApi(){ |
| | | return request(`/waterArea/getParentArea`,{},'GET') |
| | | } |
| | | //获取设备列表 |
| | | export function searchWaterFacilityApi(data){ |
| | | return request(`/waterFacility/search`,data,'POST') |
| | | } |
| | | //根据id获取设备详情 |
| | | export function getFacilityApi(id){ |
| | | return request(`/waterFacility/get?id=${id}`,{},'GET') |
| | | } |
| | | //设备开阀 |
| | | export function openFacilityApi(data){ |
| | | return request('/api/facility/open',data,'POST') |
| | | } |
| | | //设备关阀 |
| | | export function closeFacilityApi(data){ |
| | | return request('/api/facility/close',data,'POST') |
| | | } |
| | | //获取设备参数 |
| | | export function getParameterApi(sn){ |
| | | return request(`/waterFacility/getParameter?sn=${sn}`,{},'GET') |
| | | } |
| | | //修改设备参数 |
| | | export function editParameterApi(data){ |
| | | return request('/waterFacility/editParameter',data,'POST') |
| | | } |
| | | |
| | | //查询设备故障上报 |
| | | export function searchBreakdownApi(data){ |
| | | return request('/waterFacilityMalfunction/search',data,'POST') |
| | | } |
| | | //设备维护记录 |
| | | export function searchMaintainApi(data){ |
| | | return request('/facilityMaintainRecord/search',data,'POST') |
| | | } |
| | | //设备巡检记录 |
| | | export function searchExamineApi(data){ |
| | | return request('/facilityExamineRecord/search',data,'POST') |
| | | } |
| | | //设备故障编辑 |
| | | export function editExamineApi(data){ |
| | | return request('/waterFacilityMalfunction/modify',data,'POST') |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |