1.暂降预览页面接口

This commit is contained in:
2025-11-25 09:11:58 +08:00
parent f7477ea8ff
commit 9ae17b14f5
12 changed files with 669 additions and 0 deletions

View File

@@ -22,4 +22,10 @@ public interface CsCommTerminalFeignClient {
@GetMapping("lineUnitDetail")
HttpResult<PqsDeviceUnit> lineUnitDetail(@RequestParam("lineId") String lineId);
@PostMapping("getDevIdsByUser")
HttpResult<List<String>> getDevIdsByUser(@RequestBody String userId);
@PostMapping("getLineIdsByUser")
HttpResult<List<String>> getLineIdsByUser(@RequestBody String userId);
}

View File

@@ -9,6 +9,8 @@ import feign.hystrix.FallbackFactory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import java.util.List;
/**
* @author xy
*/
@@ -31,6 +33,18 @@ public class CsCommTerminalFeignClientFallbackFactory implements FallbackFactory
log.error("{}异常,降级处理,异常为:{}","查询分组",cause.toString());
throw new BusinessException(finalExceptionEnum);
}
@Override
public HttpResult<List<String>> getDevIdsByUser(String userId) {
log.error("{}异常,降级处理,异常为:{}","查询分组",cause.toString());
throw new BusinessException(finalExceptionEnum);
}
@Override
public HttpResult<List<String>> getLineIdsByUser(String userId) {
log.error("{}异常,降级处理,异常为:{}","查询分组",cause.toString());
throw new BusinessException(finalExceptionEnum);
}
};
}
}