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
package cn.flightfeather.thirdappmodule.httpservice
 
import cn.flightfeather.thirdappmodule.bean.entity.Subtask
import cn.flightfeather.thirdappmodule.model.bean.BaseResponse
import cn.flightfeather.thirdappmodule.model.bean.ExcelConfigVo
import cn.flightfeather.thirdappmodule.util.Constant
import io.reactivex.Observable
import okhttp3.ResponseBody
import retrofit2.Response
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Query
 
/**
 * @author riku
 * Date: 2020/4/23
 */
interface SearchService {
 
    /**
     * 上传崩溃信息
     */
    @POST("search/subtask/excel")
    fun getExcel(
            @Body config: ExcelConfigVo
    ): Observable<Response<ResponseBody>>
 
    @GET("search/subtask/keyword")
    fun searchSubtask(
        @Query("userId") userId: String,
        @Query("keyword") keyword:String,
        @Query("page") page: Int,
        @Query("perPage") perPage: Int = Constant.PAGE_SIZE
    ): Observable<Response<BaseResponse<List<Subtask>>>>
}