package com.zxdmy.excite.system.entity.vo.trace;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 文件痕迹
 * </p>
 *
 * @author 沈松
 * @since 2026-01-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class CloudFileTraceVo implements Serializable {

    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 操作名称
     */
    private String traceName;

    /**
     * 操作者ID
     */
    private Integer traceCreatorId;

    /**
     * 操作者姓名
     */
    private String traceCreatorName;

    /**
     * 操作时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 操作文件ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long fileId;

    private String fileOss;
}
