package com.medical.ydl.medical.http

import com.medical.ydl.medical.bean.CreatePayRespose
import com.medical.ydl.medical.bean.PayTimeRespose
import com.ydl.ydlcommon.base.config.YDL_DOMAIN
import com.ydl.ydlcommon.base.config.YDL_DOMAIN_JAVA_URL
import com.ydl.ydlcommon.data.http.BaseResponse
import io.reactivex.Observable
import okhttp3.RequestBody
import retrofit2.http.*

interface MedicalPayServices {
    /**
     * 问诊订单创建支付
     */
    @POST("api/pay/createPay")
    @Headers(YDL_DOMAIN + YDL_DOMAIN_JAVA_URL)
    fun getOrderInfo(@Body body: RequestBody): Observable<BaseResponse<CreatePayRespose>>


    /**
     * 获取订单结束时间
     */
    @GET("api/client/inquiry/v1/getSurplusPayTime")
    @Headers(YDL_DOMAIN + YDL_DOMAIN_JAVA_URL)
    fun getSurplusPayTime(@Query("inquiryOrderId") inquiryOrderId: String): Observable<BaseResponse<PayTimeRespose>>

}