package com.hh.arome;


import static com.hh.lib_base.Constants.Url.API_CONFIG_QUERY;
import static com.hh.lib_base.Constants.Url.API_CONFIG_UPDATE;
import static com.hh.lib_base.Constants.Url.BASE_API_URL;


import com.hh.arome.bean.HeartBeatRequestBean;
import com.hh.arome.bean.SimpleResultBean;
import com.hh.arome.bean.device.DeviceConfigRequestBean;
import com.hh.lib_base.bean.device.DeviceConfigResultBean;
import com.hh.lib_base.log.bean.LogcatAddRequestBean;
import com.hh.lib_base.retrofit.bean.BaseBean;
import com.hh.lib_face.bean.AlipayUserInfoRequestBean;
import com.hh.lib_face.bean.AlipayUserInfoResultBean;
import com.hh.lib_face.bean.ThreeElementsBean;

import java.util.Map;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.POST;
import retrofit2.http.Url;

public interface ApiService {


    // 获取设备在线配置
//    @POST("hanghui/outapi/api/v1/iot/device/config/sn/config")
    @POST(BASE_API_URL + API_CONFIG_QUERY)
    Observable<BaseBean<DeviceConfigResultBean>> requestDeviceConfig(@Body DeviceConfigRequestBean body);

    // 设备-修改配置信息
    @POST(BASE_API_URL + API_CONFIG_UPDATE)
    Observable<BaseBean<SimpleResultBean>> requestDeviceConfigUpdate(@Body DeviceConfigResultBean body);


    // 动态修改baseurl
    // 业务app心跳
    @POST
    Observable<BaseBean<SimpleResultBean>> requestHeartBeat(@Url String url, @Body HeartBeatRequestBean login);

    // 在线日志
//    @POST(BASE_API_URL + API_LOGCAT_ADD)
    @POST
    Observable<BaseBean<SimpleResultBean>> requestLogcatAdd(@Url String url,@Body LogcatAddRequestBean body);

    //公安网换取三要素
//    @POST(BASE_API_URL + API_LOGCAT_ADD)
    @POST
    Observable<BaseBean<ThreeElementsBean>> requestThreeElements(@Url String url, @Body Map body);
    // 获取支付宝用户三要素
    @POST
    Observable<BaseBean<AlipayUserInfoResultBean>> requestAlipayUserInfo(@Url String url, @Body AlipayUserInfoRequestBean login);


}
