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.CsTerminalReplyClientFallbackFactory;
import com.njcn.csdevice.param.IcdBzReplyParam;
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 = "/csTerminalReply", fallbackFactory = CsTerminalReplyClientFallbackFactory.class,contextId = "csTerminalReply")

public interface CsTerminalReplyFeignClient {

    @PostMapping("/updateData")
    @ApiOperation("更新推送结果")
    HttpResult<String> updateData(@RequestBody @Validated IcdBzReplyParam param);


    @PostMapping("/updateBzData")
    @ApiOperation("更新补召推送结果")
    HttpResult<String> updateBzData(@RequestBody @Validated IcdBzReplyParam param);


}
