package com.zd.system.api.alarm;

import com.zd.common.core.constant.ServiceNameConstants;
import com.zd.common.core.web.domain.AjaxResult;
import com.zd.system.api.alarm.domain.AlarmEntrty;
import com.zd.system.api.factory.RemoteAlarmFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 报警系统Feign调用接口
 *
 * @Author: liubo
 */
@FeignClient(contextId = "remoteAlarmService", value = ServiceNameConstants.ALARM_SERVICE, fallbackFactory = RemoteAlarmFallbackFactory.class)
public interface RemoteAlarmService {

    @PostMapping("/alarm/send")
    public AjaxResult send(@RequestBody AlarmEntrty alarmEntrty);
}
