TenantCommonAttributeService.java 804 B

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