package com.njcn.gather.detection.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * 检测锁持有者信息，用于在抢锁失败响应中返回给前端。
 */
@Data
public class DetectionLockHolderVO {

    private String holderUserId;
    private String holderUserName;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date acquireTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date expireAt;
}
