package com.siwei.recyclebox.http.service;

import com.siwei.recyclebox.entity.DataEntity;

import io.reactivex.Observable;
import me.goldze.mvvmhabit.http.BaseResponse;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;

public interface ApiService {

    @GET("getData")
    Observable<BaseResponse<DataEntity>> get();


    @FormUrlEncoded
    @POST("action/apiv2/banner")
    Observable<BaseResponse<DataEntity>> demoPost(@Field("catalog") String catalog);

}
