package com.gh.gamecenter.acloud.push.retrofit

import io.reactivex.Observable
import io.reactivex.Single
import okhttp3.RequestBody
import okhttp3.ResponseBody
import retrofit2.http.*

interface ApiService {
    /**
     * 绑定别名
     */
    @POST("ali/emas_push/alias/bind")
    @Headers("Content-Type: application/json", "Accept: application/json")
    fun bindAlias(@Body body: RequestBody): Single<ResponseBody>

    /**
     * 解绑别名
     */
    @POST("ali/emas_push/alias/unbind")
    @Headers("Content-Type: application/json", "Accept: application/json")
    fun unbindAlias(@Body body: RequestBody): Single<ResponseBody>

    /**
     * 绑定标签
     */
    @POST("ali/emas_push/tag/bind")
    @Headers("Content-Type: application/json", "Accept: application/json")
    fun bindTag(@Body body: RequestBody): Single<ResponseBody>

    /**
     * 解绑标签
     */
    @POST("ali/emas_push/tag/unbind")
    @Headers("Content-Type: application/json", "Accept: application/json")
    fun unbindTag(@Body body: RequestBody): Single<ResponseBody>
}