package com.ym.library.wechat

import com.ym.library.module.*
import com.ym.library.net.NetConfig
import com.ym.library.net.Response
import com.ym.modulecommon.module.UserInfoEntity
import io.reactivex.Observable
import okhttp3.ResponseBody
import retrofit2.http.*

/**
 * Created by Antonio on 2019/5/15.
 */
interface IUserInfoApi {
    /**
     * 拉取提现配置
     *
     * @return
     */
    @POST(NetConfig.Withdraw.URL_USER_WITHDRA_LIST)
    fun getWithdrawList(): Observable<Response<List<WithdrawEntity>>>





    /**
     * 微信提现
     *
     * @return
     */
    @POST(NetConfig.Withdraw.URL_USER_GS_DO_WD)
    fun getUserWxWithdraw(@Query("wdId") wdId: Int): Observable<Response<WithdrawEntity>>


    /**
     * 微信是否绑定
     *
     * @return
     */
    @GET(NetConfig.User.URL_USER_ISBINDWITHDRAWWX)
    fun getIsBindWithdrawWx(@Query("token") token: String):
            Observable<Response<UserInfoEntity>>

    /**
     * 提现记录
     *
     * @return
     */
    @GET(NetConfig.Withdraw.URL_USER_WD_HISTORY)
    fun getUserhiWithdrawHistory(): Observable<Response<List<WithdrawEntity>>>

    /**
     * 注意事项
     *
     * @return
     */
    @GET(NetConfig.User.URL_USER_MIND)
    fun getUserMind(): Observable<Response<UserInfoEntity>>

    /**
     * 注意事项
     *
     * @return
     */
    @GET(NetConfig.User.URL_USER_COIN2CASH_CHECK)
    fun getUserCoin2cash_check(): Observable<Response<WithdrawEntity>>

    /**
     * 我的抽奖提现
     *
     * @return
     */
    @POST(NetConfig.Withdraw.URL_USER_GS_DO_LOTTERY_WD)
    fun getUserWxWithdrawLottery(@Query("sessionId") sessionId: String): Observable<Response<WithdrawEntity>>

    /**
     * h5-post接口
     *
     * @param
     * @param
     * @return
     */
    @POST
    fun webApiPost(@Url url: String): Observable<retrofit2.Response<ResponseBody>>


    /**
     * h5-get接口
     *
     * @param
     * @param
     * @return
     */
    @GET
    fun webApiGet(@Url url: String): Observable<retrofit2.Response<ResponseBody>>


}