package com.ydl.js.http

import com.ydl.js.bean.TimeDataBean
import com.ydl.ydlcommon.base.config.YDL_DOMAIN
import com.ydl.ydlcommon.base.config.YDL_DOMAIN_JAVA
import com.ydl.ydlcommon.data.http.BaseResponse
import io.reactivex.Observable
import retrofit2.http.GET
import retrofit2.http.Headers
import retrofit2.http.Query

interface JsApi {
    /**
     * 获取时间选择器数据
     */
    @GET("consult/user/order/selectWorriesReducibleTime")
    @Headers(YDL_DOMAIN + YDL_DOMAIN_JAVA)
    fun getTimePickerData(
        @Query("day") day: String,
        @Query("doctorId") doctorId: String,
        @Query("orderId") orderId: String
    ): Observable<BaseResponse<ArrayList<TimeDataBean>>>

}