package cn.flightfeather.thirdapp.httpservice;
|
|
import java.util.List;
|
|
import cn.flightfeather.thirdapp.bean.vo.AreaVo;
|
import cn.flightfeather.thirdapp.bean.vo.ChargeInfoVo;
|
import cn.flightfeather.thirdapp.bean.vo.ProblemlistVo;
|
import cn.flightfeather.thirdapp.bean.vo.StatisticsVo;
|
import okhttp3.ResponseBody;
|
import retrofit2.Call;
|
import retrofit2.http.Body;
|
import retrofit2.http.Field;
|
import retrofit2.http.FormUrlEncoded;
|
import retrofit2.http.GET;
|
import retrofit2.http.POST;
|
import retrofit2.http.Query;
|
|
/**
|
* Created by hyhb01 on 2018/3/29.
|
*/
|
|
public interface ProblemListService {
|
@POST("problemlist/getbyarea")
|
Call<List<ProblemlistVo>> getByArea(@Body AreaVo areaVo);
|
|
//获取问题统计结果
|
@POST("problemlist/getStatisticalResult")
|
Call<List<StatisticsVo>> getStatisticalResult(@Body AreaVo areaVo);
|
|
@FormUrlEncoded
|
@POST("problemlist/getStatisticalResultById")
|
Call<List<StatisticsVo>> getStatisticalResultbyId(@Field(value = "id") String id, @Field(value = "curSceneTypeId") String curSceneTypeId);
|
|
@POST("problemlist/getChargeResult")
|
Call<ChargeInfoVo> getChargeResult(@Body AreaVo areaVo);
|
|
//企业用户根据顶层任务和场景获取问题及图片,只能获取已经审核通过的问题
|
@GET("problemlist/getProblemsByScene")
|
Call<List<ProblemlistVo>> getProblemByScene(@Query("sceneId") String sceneId, @Query("date") String date);
|
|
//更新问题
|
@POST("problemlist/")
|
Call<ResponseBody> updateProblemList(@Body ProblemlistVo problemlistVo);
|
}
|