package com.ym.library.net;


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;
import retrofit2.http.Url;

/**
 * Created by gaoleichao on 2018/5/2.
 */

public interface ITaskInfoApi {

    /**
     * 获取邀请配置
     *
     * @return
     */
    @POST(NetConfig.Other.URL_EVENT)
    Observable<Response<Object>> requestEvent(@Query("module") String module, @Body Object data);
    /**
     * 广告上报
     *
     * @return
     */
    @GET()
    Observable<retrofit2.Response<ResponseBody>> requestEvent(@Url String url);
}
