package com.ho.xxljob.feignclient;

import com.ho.business.vo.req.MonitorQuery;
import com.ho.common.tools.constant.ContextConstant;
import com.ho.common.tools.exception.DataResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Description flow模块的远程调用
 * Author yule
 * Date 2023/3/17 10:20
 */
@FeignClient(value = ContextConstant.FLOW_CENTER, fallback = FlowFeignClientFallback.class)
public interface FlowFeignClient {

    //判断电站接入点状态
    @PostMapping(value = ContextConstant.ROOT_CONTEXT + ContextConstant.FLOW_CONTEXT + "outerApi/accessPointEvent")
    void accessPointEvent();
    //删除图片及文件数据
    @PostMapping(value = ContextConstant.ROOT_CONTEXT + ContextConstant.FLOW_CONTEXT + "outerApi/deletedPicture")
    void deletedPicture();

    //判断告警类型为告警等级(等级为3)定时发生短信任务
    @PostMapping(value = ContextConstant.ROOT_CONTEXT + ContextConstant.FLOW_CONTEXT + "outerApi/regularlySendNotifications")
    void regularlySendNotifications(@RequestBody MonitorQuery monitorQuery);

}
