package com.gh.gamecenter.setting.compose.retrofit

import io.reactivex.Single
import okhttp3.RequestBody
import okhttp3.ResponseBody
import retrofit2.http.Body
import retrofit2.http.Headers
import retrofit2.http.POST
import retrofit2.http.Query

interface ApiService {
    /**
     * 绑定手机
     */
    @Headers("Content-Type: application/json", "Accept: application/json")
    @POST("./mobile:bind")
    fun bindPhone(@Query("step") step: Int, @Body body: RequestBody): Single<ResponseBody>

    /**
     * 换绑手机
     */
    @Headers("Content-Type: application/json", "Accept: application/json")
    @POST("./mobile:rebind")
    fun reBindPhone(@Query("step") step: Int, @Body body: RequestBody): Single<ResponseBody>

}