Consult.java 1.04 KB
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);

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

}