package com.gingersoft.gsa.cloud.user.login.mvp.server;


import com.gingersoft.gsa.cloud.user.login.mvp.bean.LoginBean;

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

/**
 * Created by Wyh on 2019/12/20.
 */
public interface LoginService {

    @POST("gsa/login" + RetrofitUrlManager.IDENTIFICATION_PATH_SIZE + 2)
    Observable<LoginBean> login(@Body RequestBody requestBody);

    @POST("gsa/logout" + RetrofitUrlManager.IDENTIFICATION_PATH_SIZE + 2)
    Observable<Object> loginOut(@Body RequestBody requestBody);
}
