TenantCommonAttributeService.java 784 B

123456789101112131415161718192021222324252627282930313233343536
  1. package com.inspur.customer.client.tenant;
  2. import com.alibaba.cola.dto.Response;
  3. import com.inspur.customer.object.tenant.TenantAttributeCO;
  4. /**
  5. * @Author wangbo13
  6. * @Date 2023/2/14 11:16
  7. * @Version 1.0
  8. */
  9. public interface TenantCommonAttributeService {
  10. /**
  11. * 存在相同key-更新,不存在则保存
  12. *
  13. * @param attributeCO
  14. * @return Response
  15. */
  16. Response saveOrUpdate(TenantAttributeCO attributeCO);
  17. /**
  18. * 获取租户下某个属性值
  19. *
  20. * @param attributeCO
  21. * @return 属性值
  22. */
  23. TenantAttributeCO queryTenantAttribute(TenantAttributeCO attributeCO);
  24. /**
  25. * 获取设备重启时间
  26. *
  27. * @param tenant
  28. * @return LocalTime
  29. */
  30. String queryAutorestartValue(String tenant);
  31. }