package com.stylefeng.guns.modular.system.service;
|
|
import com.baomidou.mybatisplus.service.IService;
|
import com.stylefeng.guns.modular.system.model.Driver;
|
import com.stylefeng.guns.modular.system.util.ResultUtil;
|
import com.stylefeng.guns.modular.system.warpper.ActivityWarpper;
|
import com.stylefeng.guns.modular.system.warpper.BaseWarpper;
|
import com.stylefeng.guns.modular.system.warpper.LoginWarpper;
|
import com.stylefeng.guns.modular.system.warpper.RegisteredWarpper;
|
|
import javax.servlet.http.HttpServletRequest;
|
import java.util.Date;
|
import java.util.List;
|
import java.util.Map;
|
|
public interface IDriverService extends IService<Driver> {
|
|
/**
|
* 获取短信验证码
|
* @param phone
|
* @return
|
*/
|
ResultUtil queryCaptcha(String phone, Integer type) throws Exception;
|
|
|
/**
|
* 验证短信验证码
|
* @param phone
|
* @param code
|
* @return
|
* @throws Exception
|
*/
|
boolean checkCaptcha(String phone, String code) throws Exception;
|
|
|
/**
|
* 司机提交注册申请
|
* @throws Exception
|
*/
|
ResultUtil registeredDriver(String phone, String code, String password, Integer uid, Integer type, Integer userType) throws Exception;
|
|
|
/**
|
* 司机注册
|
* @param phone
|
* @param code
|
* @param password
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil<LoginWarpper> registeredDriver(String phone, String code, String password) throws Exception;
|
|
|
/**
|
* 根据城市code获取是否需要网约车资格证
|
* @param code
|
* @return
|
* @throws Exception
|
*/
|
Integer queryNeedCertificate(String code) throws Exception;
|
|
|
/**
|
* 完善个人信息
|
* @param registeredWarpper
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil updateDriver(RegisteredWarpper registeredWarpper, Integer uid) throws Exception;
|
|
|
|
/**
|
* 重置密码
|
* @param phone
|
* @param code
|
* @param password
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil resetPassword(String phone, String code, String password) throws Exception;
|
|
|
/**
|
* 根据定位的城市行政编号获取分公司的客服电话
|
* @param code
|
* @return
|
* @throws Exception
|
*/
|
Map<String, Object> queryPhone(String code) throws Exception;
|
|
|
/**
|
* 司机登录
|
* @param phone
|
* @param password
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil<LoginWarpper> driverLogin(String phone, String password) throws Exception;
|
|
|
/**
|
* 获取首页统计数据
|
* @param uid
|
* @return
|
* @throws Exception
|
*/
|
Map<String, Object> queryHomeData(Integer uid) throws Exception;
|
|
|
/**
|
* 从redis中获取用户id
|
* @param request
|
* @return
|
* @throws Exception
|
*/
|
Integer getUserIdFormRedis(HttpServletRequest request) throws Exception;
|
|
|
/**
|
* 上下班操作
|
* @param uid
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil work(Integer uid, String type) throws Exception;
|
|
|
|
/**
|
* 上下班操作
|
* @param uid
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil work2(Integer uid, String type) throws Exception;
|
|
|
/**
|
* 获取首页统计数据
|
* @param uid
|
* @return
|
* @throws Exception
|
*/
|
Map<String, Object> queryHomeNum(Integer uid) throws Exception;
|
|
|
/**
|
* 获取司机的业务类型
|
* @param uid
|
* @return
|
* @throws Exception
|
*/
|
List<BaseWarpper> queryMyBusiness(Integer uid) throws Exception;
|
|
|
/**
|
* 获取个人中心详情
|
* @param uid
|
* @return
|
* @throws Exception
|
*/
|
Map<String, Object> queryInfo(Integer uid) throws Exception;
|
|
|
/**
|
* 修改手机号码
|
* @param phone
|
* @param code
|
* @param uid
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil updatePhone(String phone, String code, Integer uid) throws Exception;
|
|
|
/**
|
* 电话号码查询司机
|
* @param phone
|
* @return
|
* @throws Exception
|
*/
|
Driver queryByPhone(String phone) throws Exception;
|
|
|
/**
|
* 修改密码
|
* @param password
|
* @param uid
|
* @throws Exception
|
*/
|
void updatePassword(String password, Integer uid) throws Exception;
|
|
|
/**
|
* 更换车辆
|
* @param carId
|
* @param uid
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil replaceCar(Integer carId, Integer uid) throws Exception;
|
|
|
/**
|
* 获取客服电话
|
* @param uid
|
* @return
|
* @throws Exception
|
*/
|
Map<String, Object> queryPhone(Integer uid) throws Exception;
|
|
|
/**
|
* 获取处罚历史数据
|
* @param pageNum
|
* @param size
|
* @param uid
|
* @return
|
* @throws Exception
|
*/
|
List<Map<String, Object>> queryPenalties(Integer pageNum, Integer size, Integer uid) throws Exception;
|
|
|
/**
|
* 获取活动奖励列表
|
* @param uid
|
* @param pageNum
|
* @param size
|
* @return
|
* @throws Exception
|
*/
|
List<Map<String, Object>> queryActivityIncome(Integer uid, Integer pageNum, Integer size) throws Exception;
|
|
|
/**
|
* 获取历史总收入(业务)
|
* @param uid
|
* @param pageNum
|
* @param size
|
* @return
|
* @throws Exception
|
*/
|
List<Map<String, Object>> queryTotalRevenue(Integer uid, Integer pageNum, Integer size) throws Exception;
|
|
|
/**
|
* 获取当天有效的活动
|
* @param uid
|
* @return
|
* @throws Exception
|
*/
|
List<ActivityWarpper> queryMyActivity(Integer uid, Date time) throws Exception;
|
|
|
/**
|
* 获取历史活动
|
* @param uid
|
* @return
|
* @throws Exception
|
*/
|
List<Map<String, Object>> queryHistory(Integer uid, Integer pageNum, Integer size) throws Exception;
|
|
|
/**
|
* 给所有司机添加当天有效的活动数据
|
* @throws Exception
|
*/
|
void addTodayActivity() throws Exception;
|
|
|
/**
|
* 每分钟执行的定时任务
|
* @throws Exception
|
*/
|
void taskMinute() throws Exception;
|
|
|
/**
|
* 使用工号登录
|
* @param jobNum
|
* @return
|
*/
|
ResultUtil loginByJobNumber(String jobNum);
|
|
|
/**
|
* 获取上班中的司机
|
* @return
|
* @throws Exception
|
*/
|
List<Driver> queryWorkDriver() throws Exception;
|
|
|
/**
|
* 身份证号码登录
|
* @param identification
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil loginByIdentification(String identification) throws Exception;
|
|
|
/**
|
* 出租车资格证号码登录
|
* @param taxiAptitudeCard
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil loginByTaxiAptitudeCard(String taxiAptitudeCard) throws Exception;
|
|
|
/**
|
* 定时下班操作
|
* @throws Exception
|
*/
|
void taskOffWork() throws Exception;
|
|
|
/**
|
* 验证登录密码是否有效
|
* @param password
|
* @param driverId
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil verificationPassword(String password, Integer driverId) throws Exception;
|
|
|
/**
|
* 设置提现密码
|
* @param withdrawPassword
|
* @param driverId
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil setWithdrawPassword(String withdrawPassword, Integer driverId) throws Exception;
|
|
|
/**
|
* 验证提现密码是否有效
|
* @param withdrawPassword
|
* @param driverId
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil verificationWithdrawPassword(String withdrawPassword, Integer driverId) throws Exception;
|
|
|
/**
|
* 退出登录
|
* @param id
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil loginOut(Integer id) throws Exception;
|
|
|
/**
|
* 获取收款二维码
|
* @param driverId
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil getMoneyReceivingQRCode(Integer driverId) throws Exception;
|
}
|