package com.yidianling.tests.home.http

import com.ydl.ydlcommon.data.http.BaseResponse
import com.yidianling.tests.home.bean.TestHomeDataBean
import io.reactivex.Observable
import retrofit2.http.FieldMap
import retrofit2.http.FormUrlEncoded
import retrofit2.http.POST

/**
 * @author yuanwai
 * @描述:测评首页API
 * @Copyright Copyright (c) 2018
 * @Company 壹点灵
 * @date 2018/7/26
 */
interface TestHomeApi{

    //测评首页
    @FormUrlEncoded
    @POST("ceshi/new-home")
    fun newHome(@FieldMap params: Map<String, String>): Observable<BaseResponse<List<TestHomeDataBean>>>

    //每日精选 换一批
    @FormUrlEncoded
    @POST("ceshi/flush-daily-selection")
    fun dailySelection(@FieldMap params: Map<String, String>): Observable<BaseResponse<TestHomeDataBean>>
}