package cn.flightfeather.thirdapp.httpservice; import java.util.List; import cn.flightfeather.thirdapp.bean.entity.Gitlist; import cn.flightfeather.thirdapp.bean.entity.Inspection; import cn.flightfeather.thirdapp.bean.vo.LastSubtaskPack; import cn.flightfeather.thirdapp.bean.entity.Mediafile; import cn.flightfeather.thirdapp.bean.entity.Problemlist; import cn.flightfeather.thirdapp.bean.entity.Scense; import cn.flightfeather.thirdapp.bean.entity.Site; import cn.flightfeather.thirdapp.bean.entity.Subtask; import cn.flightfeather.thirdapp.bean.vo.TaskPack; import cn.flightfeather.thirdapp.bean.vo.GitlistVo; import cn.flightfeather.thirdapp.bean.vo.InspectionInfoVo; import cn.flightfeather.thirdapp.bean.vo.InspectionVo; import cn.flightfeather.thirdapp.bean.vo.ProblemlistVo; 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 note_ff_1602 on 2018/3/1. */ public interface InspectionService { @GET("subtask/{Date}/{ExecutorID}/{Type}") Call> loadThreeMonthTasks(@Path("Date") String date, @Path("ExecutorID") String executorID, @Path("Type") String Type); @GET("subtask/{Date}/{ExecutorID}/{Type}/{UserType}") Call> loadThreeMonthTasks(@Path("Date") String date, @Path("ExecutorID") String executorID, @Path("Type") String Type, @Path("UserType")String userType); @GET("inspection/find/{SubTaskID}") Call loadInspectionData(@Path("SubTaskID") String subTaskId); @PUT("problemlist/") Call putOneProblemList(@Body Problemlist problemlist); @POST("inspection/") Call updateInspection(@Body Inspection inspection); @POST("subtask/") Call updateSubTask(@Body Subtask subtask); @GET(" inspection/{InspectionID}/problemlist/") Call> loadProblemList(@Path("InspectionID") String inspectionId); @GET("inspection/{ScenseID}/{Date}/lastproblemlist/") Call loadLastProblemList(@Path("ScenseID") String scenseID, @Path("Date") String date); @GET("mediafile/{InspectionID}/{BusinessTypeID}/") Call> loadMediaFileList(@Path("InspectionID") String inspectionID, @Path("BusinessTypeID") int businessTypeID); @GET("mediafile/{InspectionID}/{BusinessTypeID}/") Observable>> getMediaFileList(@Path("InspectionID") String inspectionID, @Path("BusinessTypeID") int businessTypeID); @PUT("gitlist/") Call putGitList(@Body Gitlist gitlist); @GET(" inspection/{id}/gitlist/") Call> loadGitList(@Path("id") String inspectionID); @POST("site/") Call updateSite(@Body Site site); @POST("problemlist/") Call updateProblemList(@Body ProblemlistVo problemlistVo); @POST("scense/") Call updateScense(@Body Scense scense); @GET("inspection/getInspectionInfoByScene") Call getInspectionInfoByScene(@Query("sceneId") String sceneId, @Query("topTaskId") String topTaskId); }