package com.zxhl.cms.net.api

import com.zxhl.cms.ad.upload.model.NewsEntity
import com.zxhl.cms.ad.upload.model.Response
import com.zxhl.cms.common.NetConfig
import io.reactivex.Observable
import okhttp3.ResponseBody
import retrofit2.http.GET
import retrofit2.http.Query
import retrofit2.http.Url

/**
 * Created by gaoleichao on 2020-05-07
 */
interface IAdApi{

    @GET
    fun showAd(@Url url: String): Observable<ResponseBody>


    @GET(NetConfig.Ad.HOME_BANNER_DATA_URL)
    fun getAds(@Query("slotName") slotId: String): Observable<Response<List<NewsEntity>>>

}