package com.njcn.event.api;

import com.njcn.common.pojo.constant.ServerInfo;
import com.njcn.common.pojo.response.HttpResult;
import com.njcn.device.pq.pojo.param.DeviceInfoParam;
import com.njcn.event.api.fallback.ReportFeignClientFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;



/**
 * @author wr
 * @description
 * @date 2024/1/3 10:02
 */
@FeignClient(value = ServerInfo.EVENT, path = "/report", fallbackFactory = ReportFeignClientFallbackFactory.class)
public interface ReportFeignClient {


    /**
     * 灿能云获取暂态报告
     * @param businessParam
     * @return
     */
    @PostMapping("/appEventExport")
    HttpResult<String> appEventExport(@RequestBody @Validated DeviceInfoParam.BusinessParam businessParam);
}
