CacheFacade.java 624 B

123456789101112131415161718192021222324
  1. package com.diagbot.facade;
  2. import com.diagbot.client.CdssCoreClient;
  3. import com.diagbot.dto.RespDTO;
  4. import com.diagbot.util.RespDTOUtil;
  5. import org.springframework.beans.factory.annotation.Autowired;
  6. import org.springframework.stereotype.Component;
  7. /**
  8. * @author wangfeng
  9. * @Description:
  10. * @date 2021-03-11 11:16
  11. */
  12. @Component
  13. public class CacheFacade {
  14. @Autowired
  15. CdssCoreClient cdssCoreClient;
  16. public boolean clearRuleInfoAll() {
  17. RespDTO<Boolean> resData = cdssCoreClient.clearRuleAll();
  18. RespDTOUtil.respNGDeal(resData, "加载数据失败!");
  19. return resData.data;
  20. }
  21. }