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);
|
}
|