package com.shkpr.service.alambizplugin.dto; import com.fasterxml.jackson.annotation.JsonFormat; import lombok.Data; import org.springframework.format.annotation.DateTimeFormat; import java.time.LocalDateTime; import java.util.List; /** * 通用异步缓存 * * @author 欧阳劲驰 * @since 1.0.0 */ @Data public class CommAsyncCache { /** * 启动时间 */ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh_CN", timezone = "Asia/Shanghai") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime startTime; /** * 操作人 */ private String operator; /** * 启动的子项key */ private List subitemKeys; public CommAsyncCache(LocalDateTime startTime, String operator) { this.startTime = startTime; this.operator = operator; } public CommAsyncCache(LocalDateTime startTime, String operator, List subitemKeys) { this.startTime = startTime; this.operator = operator; this.subitemKeys = subitemKeys; } }