From 0d0da8f9d0aa740d4dc71c48ea611a16efc3d48a Mon Sep 17 00:00:00 2001
From: liujie <liujie>
Date: 星期四, 10 八月 2023 09:33:21 +0800
Subject: [PATCH] 超省2.0

---
 driver/guns-admin/src/main/java/com/supersavedriving/driver/modular/system/service/IDriverService.java |  107 +++++++++++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 99 insertions(+), 8 deletions(-)

diff --git a/driver/guns-admin/src/main/java/com/supersavedriving/driver/modular/system/service/IDriverService.java b/driver/guns-admin/src/main/java/com/supersavedriving/driver/modular/system/service/IDriverService.java
index a0ed0fc..40c58a8 100644
--- a/driver/guns-admin/src/main/java/com/supersavedriving/driver/modular/system/service/IDriverService.java
+++ b/driver/guns-admin/src/main/java/com/supersavedriving/driver/modular/system/service/IDriverService.java
@@ -3,12 +3,9 @@
 import com.baomidou.mybatisplus.service.IService;
 import com.supersavedriving.driver.modular.system.model.Driver;
 import com.supersavedriving.driver.modular.system.util.ResultUtil;
-import com.supersavedriving.driver.modular.system.warpper.DriverPositionWarpper;
-import com.supersavedriving.driver.modular.system.warpper.DriverRegisterWarpper;
-import com.supersavedriving.driver.modular.system.warpper.PromotionWarpper;
-import com.supersavedriving.driver.modular.system.warpper.TokenWarpper;
+import com.supersavedriving.driver.modular.system.warpper.*;
 
-import javax.servlet.http.HttpServletRequest;
+import java.util.HashMap;
 import java.util.List;
 
 /**
@@ -61,10 +58,9 @@
 
     /**
      * 校验token获取用户信息
-     * @param request
      * @return
      */
-    Integer getUserByRequset(HttpServletRequest request) throws Exception;
+    Integer getUserByRequest() throws Exception;
 
 
     /**
@@ -82,7 +78,7 @@
      * @return
      * @throws Exception
      */
-    ResultUtil<List<String>> queryDriverPosition(Integer uid) throws Exception;
+    ResultUtil<HashMap<String, Object>> queryDriverPosition(Integer uid) throws Exception;
 
 
     /**
@@ -99,4 +95,99 @@
      * @throws Exception
      */
     PromotionWarpper queryPromotionQRCode(Integer uid) throws Exception;
+
+
+    /**
+     * 获取司机个人信息
+     * @param uid
+     * @return
+     * @throws Exception
+     */
+    DriverInfoWarpper queryDriverInfo(Integer uid) throws Exception;
+
+
+    /**
+     * 修改个人信息
+     * @param uid
+     * @param driverInfo
+     * @return
+     * @throws Exception
+     */
+    ResultUtil saveDriverInfo(Integer uid, DriverInfo driverInfo) throws Exception;
+
+
+    /**
+     * 清空司机积分
+     */
+    void emptyIntegral();
+
+
+    /**
+     * 司机账户余额充值
+     * @param uid
+     * @param amount
+     * @return
+     * @throws Exception
+     */
+    ResultUtil balanceRecharge(Integer uid, Double amount) throws Exception;
+
+
+    /**
+     * 支付回调通知处理
+     * @param out_trade_no
+     * @throws Exception
+     */
+    void balanceRechargeCallback(String out_trade_no, String transaction_id) throws Exception;
+
+
+    /**
+     * 修改密码
+     * @param uid
+     * @param oldPass
+     * @param newPass
+     * @return
+     * @throws Exception
+     */
+    ResultUtil updatePassword(Integer uid, String oldPass, String newPass) throws Exception;
+
+
+    /**
+     * 设置密码
+     * @param uid
+     * @param password
+     * @return
+     * @throws Exception
+     */
+    ResultUtil recoverPassword(Integer uid, String password) throws Exception;
+
+
+    /**
+     * 打开下单二维码
+     * @param uid
+     * @return
+     */
+    ResultUtil openOrderQRCode(Integer uid) throws Exception;
+
+
+    /**
+     * 关闭下单二维码
+     * @param uid
+     * @return
+     * @throws Exception
+     */
+    ResultUtil closeOrderQRCode(Integer uid) throws Exception;
+
+
+    /**
+     * 开通小微商户
+     * @param name
+     * @param number
+     * @param phone
+     * @return
+     * @throws Exception
+     */
+    ResultUtil microenterprise(Integer uid, String name, String number, String phone) throws Exception;
+
+    ResultUtil<HashMap<String, Object>> queryDriverOrderNum(String time,Integer uid);
+
 }

--
Gitblit v1.7.1