package com.ho.datacollect.feignclient;

import com.ho.common.tools.constant.ContextConstant;
import com.ho.flow.vo.Event;
import com.ho.flow.vo.req.event.EventQueryReqVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Description Flow远程调用
 * Author xueweizhi
 * Date 2023/3/07 10:49
 */
@FeignClient(value = ContextConstant.FLOW_CENTER,fallback = DataCollectFlowFeignClientFallback.class,contextId = "DataCollectFlowFeignClient")
public interface DataCollectFlowFeignClient {

    @PostMapping(value = ContextConstant.ROOT_CONTEXT +ContextConstant.FLOW_CONTEXT + "outerApi/selectEventByParams")
    Event selectEventByParams(@RequestBody EventQueryReqVO eventQueryReqVO);

}
