package com.hh.hhomc.http;

import com.common.lib_base.bean.StringResultBean;
import com.common.lib_base.common.http.bean.BaseBean;

import io.reactivex.Observable;
import okhttp3.MultipartBody;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;
import retrofit2.http.Streaming;

public interface ApiService {


    @Multipart
    @POST("/middle-management/api/v1/upload/file")
    Observable<BaseBean<StringResultBean>> uploadFile(@Part MultipartBody.Part file);


    @Streaming
    @POST("middle-management/api/v1/download/download")
    Observable<BaseBean<StringResultBean>> downloadApk(@Body RequestBody body);



}
