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<ResponseBody> putEvaluation(@Body Evaluation evaluation);
|
|
@GET("evaluation/")
|
Call<List<Evaluation>> takeAllEvaluations();
|
|
@GET("evaluation/byInspection")
|
Call<List<Evaluation>> findByInspectionId(@Query("inspectionId") String inspectionId);
|
|
@POST("evaluation/")
|
Call<ResponseBody> uploadEvaluation(@Body Evaluation evaluation);
|
|
@POST("evaluation/rankofscense")
|
Call<List<Evaluation>> getRank0fScene(@Query("tguid") String tguid, @Query("scensetypeid") String scensetypeid, @Query("ruletypeid") Byte ruletypeid);
|
|
@POST("evaluation/rankoftown")
|
Call<List<Evaluation>> getRankofTown(@Query("tguid") String tguid, @Query("scensetypeid") String scensetypeid);
|
|
@PUT("itemevaluation/addlist/")
|
Call<ResponseBody> putItemEvaluationList(@Body List<Itemevaluation> itemevaluationList);
|
|
@GET("itemevaluation/subtask/{SubTakGuid}/")
|
Observable<Response<List<Itemevaluation>>> getItemEvaluationList(@Path("SubTakGuid") String subtaskGuid);
|
|
@POST("itemevaluation/uplist/")
|
Call<ResponseBody> uploadItemEvaluationList(@Body List<Itemevaluation> itemevaluationList);
|
}
|