riku
2022-02-18 d59d55575d913646b7a90fca651904ab889c6723
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
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);
}