package com.mogo.cloud.network;

import java.util.Map;

import io.reactivex.Observable;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.QueryMap;

/**
 * created by wujifei on 2021/1/21 13:02
 * describe:
 */
public interface ApiService {

    /**
     * 基于目的地预判的道路事件和违章高发情况的停车推荐
     */
    @GET("/yycp-geo-fence-carService/car/road/getRoadDataOfVehiclesRecommend")
    Observable<BaseData<V2XRoadDataRes>> queryRoadDataOfVehiclesRecommend(@QueryMap Map<String, Object> parameters);

    /**
     * 车辆故障求助查询
     *
     * @param param
     * @return
     */
    @FormUrlEncoded
    @POST("eagle-eye-dns/yycp-realtimeLocations/vehicleTypeManage/car/queryVehicleType/v1")
    Observable<BaseData<V2XSeekHelpRes>> queryHelpSignal(@FieldMap Map<String, Object> param);
}
