package com.zxhl.cms.net.api

import com.zxhl.cms.ad.upload.model.Response
import com.zxhl.cms.common.NetConfig
import com.zxhl.cms.googlepay.GooglePayResult
import com.zxhl.cms.net.model.box.AddressEntity
import com.zxhl.cms.net.model.shop.ShopEntity
import io.reactivex.Observable
import retrofit2.http.*


interface IShopApi {

    @GET(NetConfig.Shop.SHOP_GOODS_LIST)
    fun getGoodsList(
        @Query("page") page: Int,
        @Query("size") size: Int,
        @Query("category") category: String
    ): Observable<Response<ShopEntity>>

    /**
     * google支付成功后 通知后台
     */
    @POST(NetConfig.User.URL_GOOGLE_NOTIFY)
    fun googlePaySuccess(
        @Body entity: GooglePayResult?
    ): Observable<Response<Any>>

}