package com.stylefeng.guns.modular.system.service;
|
|
import com.baomidou.mybatisplus.service.IService;
|
import com.stylefeng.guns.modular.system.model.ServerCarModel;
|
import com.stylefeng.guns.modular.system.util.ResultUtil;
|
import com.stylefeng.guns.modular.system.warpper.ServerCarModelWarpper;
|
|
import java.util.List;
|
import java.util.Map;
|
|
public interface IServerCarModelService extends IService<ServerCarModel> {
|
|
|
/**
|
* 根据起点和终点获取车型和金额
|
* @param startLonLat
|
* @param endLonLat
|
* @param type 业务类型
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil<List<ServerCarModelWarpper>> queryServerCarModel(String startLonLat, String endLonLat, Integer type) throws Exception;
|
|
/**
|
* 快捷叫车根据起点获取车辆信息,不计算预估价格。
|
* @param startLonLat 起点经纬度
|
* @return 车辆信息
|
* @throws Exception
|
*/
|
ResultUtil<List<ServerCarModelWarpper>> queryQuickCallServerCarModel(String startLonLat) throws Exception;
|
|
|
/**
|
* 获取业务类型对应的所有车型
|
* @param type
|
* @return
|
*/
|
List<Map<String, Object>> queryServerCarModels(Integer type);
|
|
/**
|
* 计算各车型预估金额
|
* @param companyId 企业id
|
* @param distance 预估距离(米)
|
* @param duration 预估时间(秒)
|
* @param wait 等待时长(秒)
|
* @param type 业务类型(专车=1)
|
* @param geocode 地理编码(含 districtCode/cityCode/provinceCode)
|
* @return 车型预估金额列表
|
* @throws Exception
|
*/
|
List<ServerCarModelWarpper> getPrice(Integer companyId, double distance, long duration,
|
long wait, Integer type, Map<String, String> geocode) throws Exception;
|
}
|