riku
2025-10-31 1897c4ad5fa73b3f0a36e1aa0e1e9000302a6ace
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
package cn.flightfeather.thirdappmodule.httpservice;
 
import java.util.ArrayList;
import java.util.List;
 
import cn.flightfeather.thirdappmodule.bean.vo.AreaVo;
import cn.flightfeather.thirdappmodule.bean.vo.ChargeInfoVo;
import cn.flightfeather.thirdappmodule.bean.vo.ProblemDetailVo;
import cn.flightfeather.thirdappmodule.bean.vo.ProblemlistVo;
import cn.flightfeather.thirdappmodule.bean.vo.StatisticsVo;
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.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Path;
import retrofit2.http.Query;
 
/**
 * Created by hyhb01 on 2018/3/29.
 */
 
public interface ProblemListService {
    @POST("problemlist/getbyarea")
    Call<List<ProblemlistVo>> getByArea(@Body AreaVo areaVo);
 
    //获取问题统计结果
    @POST("problemlist/getStatisticalResult")
    Call<List<StatisticsVo>> getStatisticalResult(@Body AreaVo areaVo);
 
    @FormUrlEncoded
    @POST("problemlist/getStatisticalResultById")
    Call<List<StatisticsVo>> getStatisticalResultbyId(@Field(value = "id") String id, @Field(value = "curSceneTypeId") String curSceneTypeId);
 
    @POST("problemlist/getChargeResult")
    Call<ChargeInfoVo> getChargeResult(@Body AreaVo areaVo);
 
    //企业用户根据顶层任务和场景获取问题及图片,只能获取已经审核通过的问题
    @GET("problemlist/getProblemsByScene")
    Call<List<ProblemlistVo>> getProblemByScene(@Query("sceneId") String sceneId, @Query("date") String date);
 
    //更新问题
    @POST("problemlist/")
    Call<ResponseBody> updateProblemList(@Body ProblemlistVo problemlistVo);
 
    @GET("problemtype/byScene")
    Observable<Response<ArrayList<ProblemDetailVo>>> getBySceneType(@Query("sceneTypeId") int sceneTypeId);
 
    /**
     * 设置问题为删除状态
     */
    @POST("problemlist/{id}")
    Call<BaseResponse<Integer>> deleteProblem(@Path("id") String problemId);
}