CommAsyncCache.java 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. package com.shkpr.service.alambizplugin.dto;
  2. import com.fasterxml.jackson.annotation.JsonFormat;
  3. import lombok.Data;
  4. import org.springframework.format.annotation.DateTimeFormat;
  5. import java.time.LocalDateTime;
  6. import java.util.List;
  7. /**
  8. * 通用异步缓存
  9. *
  10. * @author 欧阳劲驰
  11. * @since 1.0.0
  12. */
  13. @Data
  14. public class CommAsyncCache {
  15. /**
  16. * 启动时间
  17. */
  18. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh_CN", timezone = "Asia/Shanghai")
  19. @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  20. private LocalDateTime startTime;
  21. /**
  22. * 操作人
  23. */
  24. private String operator;
  25. /**
  26. * 启动的子项key
  27. */
  28. private List<String> subitemKeys;
  29. public CommAsyncCache(LocalDateTime startTime, String operator) {
  30. this.startTime = startTime;
  31. this.operator = operator;
  32. }
  33. public CommAsyncCache(LocalDateTime startTime, String operator, List<String> subitemKeys) {
  34. this.startTime = startTime;
  35. this.operator = operator;
  36. this.subitemKeys = subitemKeys;
  37. }
  38. }