From a1aca8be99e62ea683fd8d7db82d7a480f5d0305 Mon Sep 17 00:00:00 2001 From: web <candymxq888@outlook.com> Date: 星期二, 08 七月 2025 09:58:05 +0800 Subject: [PATCH] feat:增加取水能力 --- api/index.js | 34 ++++++++++++++++++++++++++++++++-- 1 files changed, 32 insertions(+), 2 deletions(-) diff --git a/api/index.js b/api/index.js index 1d996ca..846220c 100644 --- a/api/index.js +++ b/api/index.js @@ -5,12 +5,42 @@ return request('/user/wxLogin',data,'POST') } +// 用户信息 +export function getUserInfo(){ + return request('/api/user/getUser',{},'GET') +} + +// 修改用户信息 +export function setUserInfo(data){ + return request('/api/user/editUser',data,'POST') +} + //微信支付 export function wxPayApi(data){ return request('/pay/service/wxPay',data,'POST') } -//水卡充值 +//生成订单 export function rechargeApi(data){ - return request('/rechargeRecords/fees',data,'POST') + return request('/api/user/fees',data,'POST') +} + +// 设备列表 +export function getFacitily(data) { + return request('/api/user/searchFacility', data, 'POST') +} + +// 取水记录 +export function getqushuiRecord(data) { + return request('/api/user/searchPaymentRecords', data, 'POST') +} + +// 充值记录 +export function getrechargeRecord(data) { + return request('/api/user/searchRechargeRecords', data, 'POST') +} + +// 取水 +export function getWater(data) { + return request('/api/user/userWaterInTaking', data, 'POST') } \ No newline at end of file -- Gitblit v1.9.3