Consult.java 750 Bytes
package com.shunzhi.parent.api;

import com.google.gson.JsonObject;

import io.reactivex.Observable;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

/**
 * Created by ToaHanDong on 2018/3/16.
 */

public interface Consult {

    @GET("/api/ParentService/GetAds")
    Observable<JsonObject> getBanners(@Query("position") String position, @Query("areaName") String areaName);


    @FormUrlEncoded
    @POST("/api/ParentService/GetChannelInfo")
    Observable<JsonObject> getConsultContent(@Field("areaName") String areaName, @Field("channel") int channel
            , @Field("toFirstPage") int toFirstPage, @Field("pageIndex") int pageIndex);

}