package com.qimai.yttgrass.api

import com.qimai.android.fetch.model.BaseData
import com.qimai.yttgrass.model.BannerInfoBean
import com.qimai.yttgrass.model.GoodsDetailBean
import com.qimai.yttgrass.model.MiniProgramInfoBean
import retrofit2.http.*

interface HomeService {

    @GET("web/reta/shop/rotation-images")
    suspend fun getBannerUrl(@Query("store_id") store_id: String = "123"): BaseData<BannerInfoBean>


    @FormUrlEncoded
    @POST("web/goods/store-goods/shop/code-shop")
    suspend fun getGoodsInfo(
        @Field("product_no") product_no: String,
        @Field("store_multistores_id") store_multistores_id: String,
        @Field("store_id") store_id: String
    ): BaseData<GoodsDetailBean>


    @GET("web/retamarketing/no-state/ytt-qr-code")
    suspend fun getMiniProgramCode(@Query("goods_id") goods_id: String): BaseData<MiniProgramInfoBean>

}