package com.gingersoft.gsa.cloud.main.mvp.model.service;

import com.gingersoft.gsa.cloud.main.mvp.model.bean.CheckVersionRequest;

import io.reactivex.Observable;
import me.jessyan.retrofiturlmanager.RetrofitUrlManager;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.Headers;
import retrofit2.http.POST;

/**
 * Created by Wyh on 2020/2/22.
 */
public interface MainService {

    @Headers({"Domain-Name: system_url"})
    @POST("user/logout" + RetrofitUrlManager.IDENTIFICATION_PATH_SIZE + 2)
    Observable<Object> loginOut(@Body RequestBody requestBody);

    @Headers({"Domain-Name: update_version"})
    @POST("system/checkAppVersion" + RetrofitUrlManager.IDENTIFICATION_PATH_SIZE + 2)
    Observable<CheckVersionRequest> checkAppVersion(@Body RequestBody requestBody);

    @Headers({"Domain-Name: update_version"})
    @POST("restaurant/clearHeartbeat" + RetrofitUrlManager.IDENTIFICATION_PATH_SIZE + 2)
    Observable<Object> clearHeartbeat(@Body RequestBody requestBody);

}
