package com.dayu.qiheonlinelibrary.net; 
 | 
  
 | 
  
 | 
import java.util.Map; 
 | 
  
 | 
import io.reactivex.rxjava3.core.Observable; 
 | 
import okhttp3.MultipartBody; 
 | 
import okhttp3.RequestBody; 
 | 
import okhttp3.ResponseBody; 
 | 
import retrofit2.Call; 
 | 
import retrofit2.http.Body; 
 | 
import retrofit2.http.GET; 
 | 
import retrofit2.http.Multipart; 
 | 
import retrofit2.http.POST; 
 | 
import retrofit2.http.Part; 
 | 
import retrofit2.http.PartMap; 
 | 
import retrofit2.http.Path; 
 | 
import retrofit2.http.QueryMap; 
 | 
import retrofit2.http.Streaming; 
 | 
import retrofit2.http.Url; 
 | 
  
 | 
/** 
 | 
 * Copyright (C), 2023, 
 | 
 * Author: zuo 
 | 
 * Date: 2023-03-27 14:56 
 | 
 * Description: 
 | 
 */ 
 | 
public interface ApiService { 
 | 
  
 | 
  
 | 
  
 | 
    //    @FormUrlEncoded 
 | 
    @POST() 
 | 
    Observable<BaseResponse> requestPost(@Url String url, @Body Map<String, Object> params); 
 | 
    @POST() 
 | 
    Observable<BaseResponse> requestPost(@Url String url); 
 | 
    @GET("{url}") 
 | 
    Observable<BaseResponse> requestGet(@Path("url") String url, @QueryMap Map<String, Object> params); 
 | 
  
 | 
    @GET("{url}") 
 | 
    Observable<BaseResponse> requestGet(@Path("url") String url); 
 | 
  
 | 
    @Streaming 
 | 
    @GET() 
 | 
    Observable<ResponseBody> requestGetCall(@Url String url); 
 | 
  
 | 
    @Multipart 
 | 
    @POST("file/upload") 
 | 
    Call<BaseResponse> uploadFiles(@PartMap Map<String, RequestBody> map); 
 | 
  
 | 
    @Multipart 
 | 
    @POST(Constants.BASE_URL + "file/upload") 
 | 
    Call<BaseResponse> uploadFile(@Part("description") RequestBody description, @Part MultipartBody.Part file); 
 | 
  
 | 
} 
 |