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