package com.fastbee.http.client;

import com.dtflys.forest.annotation.BaseRequest;
import com.dtflys.forest.annotation.Post;
import com.dtflys.forest.annotation.Query;
import com.fastbee.http.model.Gps_r;
import com.fastbee.http.model.YccResult;
import com.dtflys.forest.http.ForestResponse;

import java.util.List;
import java.util.Map;

@BaseRequest(baseURL = "http://47.114.176.71:9999")
public interface Yunchache {
    @Post(url = "/gps-web/api/login.jsp")
    ForestResponse<Map> login(@Query Map<String, Object> base, @Query Map<String, Object> params);

    @Post(url = "/gps-web/api/get_car_list.jsp")
    ForestResponse<Map> getCarList(@Query Map<String, Object> base, @Query Map<String, Object> params);

    @Post(url = "/gps-web/api/get_gps_r.jsp")
    ForestResponse<YccResult<List<Gps_r>>> getGpsR(@Query Map<String, Object> base, @Query Map<String, Object> params);
}
