From 00e122b6b32c07839b944ea47d1775f5793020ba Mon Sep 17 00:00:00 2001 From: xuhy <3313886187@qq.com> Date: 星期五, 17 二月 2023 18:28:05 +0800 Subject: [PATCH] 用户信息模块,登录功能,优惠券 --- driver/guns-admin/src/main/java/com/supersavedriving/driver/modular/system/service/IDriverService.java | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 51 insertions(+), 0 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 863f992..fb44015 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 @@ -4,6 +4,9 @@ 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 javax.servlet.http.HttpServletRequest; /** * 司机 @@ -20,4 +23,52 @@ * @throws Exception */ ResultUtil driverRegister(DriverRegisterWarpper driverRegisterWarpper) throws Exception; + + + /** + * 司机登录 + * @param receiver 国家代码+86 + * @param phone 登录手机号 + * @param code 短信验证码 + * @return + * @throws Exception + */ + ResultUtil<TokenWarpper> driverLogin(String receiver, String phone, String code) throws Exception; + + + /** + * 司机密码登录 + * @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 + * @throws Exception + */ + ResultUtil<TokenWarpper> flushedToken(Integer uid) throws Exception; + + + /** + * 校验token获取用户信息 + * @param request + * @return + */ + Integer getUserByRequset(HttpServletRequest request) throws Exception; + + + /** + * 设置司机密码 + * @param uid + * @param password + * @throws Exception + */ + void setPassword(Integer uid, String password) throws Exception; } -- Gitblit v1.7.1