package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.system.enums.OssFileEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @Author 吴凯程
 * @Date 2025/6/16
 **/
@Data
@TableName("oss_file_data")
public class OssFile {
    /** uuid */
    @ApiModelProperty(value = "uuid",notes = "")
    @TableId
    private String fileId ;
    /** 文件名 */
    @ApiModelProperty(value = "文件名",notes = "")
    private String fileName ;
    /** 文件类型 */
    @ApiModelProperty(value = "文件类型",notes = "")
    private String contentType ;
    /** 文件url */
    @ApiModelProperty(value = "文件url",notes = "")
    private String fileUrl ;

    private String userName;

    private OssFileEnum fileEnum;

    private String originalFileName;

    private Double fileSize;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
}
