doum
10 小时以前 59b1f0e9967902aa10f5e017d5a0bdfd1b60c9ea
server/services/src/main/java/com/doumee/service/business/DriverInfoService.java
@@ -4,6 +4,7 @@
import com.doumee.core.model.PageWrap;
import com.doumee.dao.dto.DriverActiveOrderDTO;
import com.doumee.dao.dto.DriverGrabOrderDTO;
import com.doumee.dao.dto.DriverOrderPageDTO;
import com.doumee.dao.business.model.DriverInfo;
import com.doumee.dao.dto.DriverLoginRequest;
import com.doumee.dao.dto.DriverDeliverDTO;
@@ -11,9 +12,10 @@
import com.doumee.dao.dto.DriverRegisterRequest;
import com.doumee.dao.dto.DriverVerifyRequest;
import com.doumee.dao.vo.AccountResponse;
import com.doumee.dao.vo.DriverActiveOrderCountVO;
import com.doumee.dao.vo.DriverGrabOrderVO;
import java.util.List;
import java.util.Map;
/**
 * 司机注册信息Service定义
@@ -263,14 +265,39 @@
     * @param newPassword 新密码
     * @param token       当前token(修改成功后清除)
     */
    void changePassword(Integer driverId, String newPassword, String token);
    void changePassword(Integer driverId, String oldPassword, String newPassword, String token);
    /**
     * 获取司机进行中订单数量
     *
     * @param driverId 司机主键
     * @return [已抢单数量, 派送中数量]
     * @return 进行中订单数量
     */
    Map<String, Integer> getActiveOrderCount(Integer driverId);
    DriverActiveOrderCountVO getActiveOrderCount(Integer driverId);
    /**
     * 司机订单分页查询
     *
     * @param driverId 司机主键
     * @param pageWrap 分页参数(model.status: null=全部, 3=待取件, 4=配送中, 7=已完成)
     * @return 分页结果
     */
    PageData<DriverGrabOrderVO> driverOrderPage(Integer driverId, PageWrap<DriverOrderPageDTO> pageWrap);
    /**
     * 查询司机今日可取消次数
     *
     * @param driverId 司机主键
     * @return DriverCancelLimitVO
     */
    com.doumee.dao.vo.DriverCancelLimitVO getTodayCancelLimit(Integer driverId);
    /**
     * 校验司机token是否有效
     *
     * @param token 司机token
     * @return true=有效 false=无效
     */
    boolean checkDriverToken(String token);
}