From 12b75ea8869fa6e65b1bd53d4460328e73a66125 Mon Sep 17 00:00:00 2001
From: puzhibing <393733352@qq.com>
Date: 星期三, 22 三月 2023 22:35:20 +0800
Subject: [PATCH] 新增加司机端接口

---
 driver/guns-admin/src/main/java/com/supersavedriving/driver/modular/system/service/IDriverService.java |   87 +++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 82 insertions(+), 5 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 8316f97..5d32466 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,10 +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.DriverRegisterWarpper;
-import com.supersavedriving.driver.modular.system.warpper.TokenWarpper;
+import com.supersavedriving.driver.modular.system.warpper.*;
 
-import javax.servlet.http.HttpServletRequest;
+import java.util.List;
 
 /**
 * 司机
@@ -37,6 +36,17 @@
 
 
     /**
+     * 司机密码登录
+     * @param receiver  国家代码+86
+     * @param phone     手机号
+     * @param password  密码
+     * @return
+     * @throws Exception
+     */
+    ResultUtil<TokenWarpper> driverPassLogin(String receiver, String phone, String password) throws Exception;
+
+
+    /**
      * 刷新token
      * @param uid
      * @return
@@ -47,10 +57,9 @@
 
     /**
      * 校验token获取用户信息
-     * @param request
      * @return
      */
-    Integer getUserByRequset(HttpServletRequest request) throws Exception;
+    Integer getUserByRequest() throws Exception;
 
 
     /**
@@ -60,4 +69,72 @@
      * @throws Exception
      */
     void setPassword(Integer uid, String password) throws Exception;
+
+
+    /**
+     * 获取5公里范围内的司机坐标
+     * @param uid
+     * @return
+     * @throws Exception
+     */
+    ResultUtil<List<String>> queryDriverPosition(Integer uid) throws Exception;
+
+
+    /**
+     * 存储司机实时位置
+     * @throws Exception
+     */
+    void addDriverPosition(DriverPositionWarpper driverPositionWarpper) throws Exception;
+
+
+    /**
+     * 获取分享二维码数据
+     * @param uid
+     * @return
+     * @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;
 }

--
Gitblit v1.7.1