package cn.flightfeather.thirdappmodule.httpservice; import java.util.List; import cn.flightfeather.thirdappmodule.bean.entity.Evaluation; import cn.flightfeather.thirdappmodule.bean.entity.Itemevaluation; import cn.flightfeather.thirdappmodule.model.bean.BaseResponse; import io.reactivex.Observable; import okhttp3.ResponseBody; import retrofit2.Call; import retrofit2.Response; import retrofit2.http.Body; import retrofit2.http.GET; import retrofit2.http.POST; import retrofit2.http.PUT; import retrofit2.http.Path; import retrofit2.http.Query; /** * Created by hyhb01 on 2018/3/8. */ public interface EvaluationService { @PUT("evaluation/") Call putEvaluation(@Body Evaluation evaluation); @GET("evaluation/") Call> takeAllEvaluations(); @GET("evaluation/byInspection") Call> findByInspectionId(@Query("inspectionId") String inspectionId); @POST("evaluation/") Call uploadEvaluation(@Body Evaluation evaluation); @POST("evaluation/rankofscense") Call> getRank0fScene(@Query("tguid") String tguid, @Query("scensetypeid") String scensetypeid, @Query("ruletypeid") Byte ruletypeid); @POST("evaluation/rankoftown") Call> getRankofTown(@Query("tguid") String tguid, @Query("scensetypeid") String scensetypeid); /** * 根据场景获取历史评估得分 * @param sceneId 场景主键id * @param page 页码 * @param pageSize 每页数量 * @return 历史评估得分 */ @GET("evaluation/byScene") Observable>>> getEvaluationListByScene( @Query("sceneId") String sceneId, @Query("page") int page, @Query("pageSize") int pageSize ); @PUT("itemevaluation/addlist/") Call putItemEvaluationList(@Body List itemevaluationList); @GET("itemevaluation/subtask/{SubTakGuid}/") Observable>> getItemEvaluationList(@Path("SubTakGuid") String subtaskGuid); @POST("itemevaluation/uplist/") Call uploadItemEvaluationList(@Body List itemevaluationList); }