package com.supersavedriving.driver.modular.system.service;
|
|
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 javax.servlet.http.HttpServletRequest;
|
|
/**
|
* 司机
|
* @author pzb
|
* @Date 2023/2/8 18:52
|
*/
|
public interface IDriverService extends IService<Driver> {
|
|
|
/**
|
* 司机注册
|
* @param driverRegisterWarpper
|
* @return
|
* @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;
|
}
|