package com.xuqm.base.repository;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Streaming;
import retrofit2.http.Url;

public interface CommonService {
    @Streaming
    @GET
    Observable<ResponseBody> download(@Url String url);

    @POST
    @Streaming
    Observable<Object> upload(@Url String url, @Body RequestBody body);
}
