liusuyi
2026-05-14 9958bc1501d0daee954d9bba383475e55e24ebab
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
package com.ard.work.api;
 
import com.ard.common.core.constant.SecurityConstants;
import com.ard.common.core.constant.ServiceNameConstants;
import com.ard.common.core.domain.R;
import com.ard.work.api.domian.AlertInfoDto;
import com.ard.work.api.factory.RemoteHealthFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
 
import java.util.List;
 
/**
 * 设备健康服务
 *
 * @author ard
 */
@FeignClient(contextId = "remoteHealthService", value = ServiceNameConstants.WORK_SERVICE, fallbackFactory = RemoteHealthFallbackFactory.class)
public interface RemoteHealthService
{
    /**
     * 获取设备健康报警信息
     *
     * @param source source
     * @return 结果
     */
    @GetMapping(value = "/health/getAlertInfoInner")
    public R<List<AlertInfoDto>> getAlertInfo(@RequestHeader(SecurityConstants.FROM_SOURCE) String source);
}