package com.njcn.csdevice.api;

import com.njcn.common.pojo.constant.ServerInfo;
import com.njcn.common.pojo.response.HttpResult;
import com.njcn.csdevice.api.fallback.CsTerminalLogsClientFallbackFactory;
import com.njcn.csdevice.api.fallback.IcdFallbackFactory;
import com.njcn.csdevice.param.IcdBzParam;
import io.swagger.annotations.ApiOperation;
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 xy
 */
@FeignClient(value = ServerInfo.CS_DEVICE_BOOT, path = "/icd", fallbackFactory = IcdFallbackFactory.class,contextId = "icd")

public interface IcdFeignClient {

    @PostMapping("/bzEvent")
    @ApiOperation("补召事件")
    HttpResult<String> bzEvent(@RequestBody @Validated IcdBzParam param);

    @PostMapping("/bzFile")
    @ApiOperation("补召波形")
    HttpResult<String> bzFile(@RequestBody @Validated IcdBzParam param);

}
