package cn.flightfeather.thirdapp.httpservice; import java.util.List; import cn.flightfeather.thirdapp.bean.Evaluation; import cn.flightfeather.thirdapp.bean.Itemevaluation; 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); @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); }