riku
2025-10-27 0f58aa8ea118c3bd0b28396febc58fdbd94eef75
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
package cn.flightfeather.thirdappmodule.httpservice;
 
import java.util.List;
 
import cn.flightfeather.thirdappmodule.bean.entity.Evaluation;
import cn.flightfeather.thirdappmodule.bean.entity.Itemevaluation;
import cn.flightfeather.thirdappmodule.model.bean.BaseResponse;
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);
 
    /**
     * 根据场景获取历史评估得分
     * @param sceneId 场景主键id
     * @param page 页码
     * @param pageSize 每页数量
     * @return 历史评估得分
     */
    @GET("evaluation/byScene")
    Observable<Response<BaseResponse<List<Evaluation>>>> getEvaluationListByScene(
            @Query("sceneId") String sceneId,
            @Query("page") int page,
            @Query("pageSize") int pageSize
    );
 
    @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);
}