Pu Zhibing
2025-04-07 4109495b9c51a4bbd8b0a7c3c69093909d2e33e1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package com.ruoyi.dataInterchange.api.feignClient;
 
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.dataInterchange.api.factory.UPWarnMsgAdptInfoClientFallbackFactory;
import com.ruoyi.dataInterchange.api.vo.UPWarnMsgAdptInfoVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
 
import java.util.List;
 
/**
 * @author zhibing.pu
 * @Date 2025/4/2 10:29
 */
@FeignClient(contextId = "UPWarnMsgAdptInfoClient", value = ServiceNameConstants.DATA_INTERCHANGE_SERVICE, fallbackFactory = UPWarnMsgAdptInfoClientFallbackFactory.class)
public interface UPWarnMsgAdptInfoClient {
    
    
    /**
     * 查询大于给定日期的所有报警数据
     *
     * @param createTime
     * @return
     */
    @PostMapping("/warnMsgAdptInfo/findByCreateTimeAfter")
    R<List<UPWarnMsgAdptInfoVo>> findByCreateTimeAfter(@RequestParam("createTime") Long createTime);
    
    
    /**
     * 根据信息id查询报警原始数据
     *
     * @param infoId
     * @return
     */
    @PostMapping("/warnMsgAdptInfo/findByInfoId")
    R<UPWarnMsgAdptInfoVo> findByInfoId(@RequestParam("infoId") Integer infoId);
}