package org.xyzh.common.dto.system;

import org.xyzh.common.dto.BaseDTO;

/**
 * @description 文件上传记录表
 * @filename TbSysFile.java
 * @author yslg
 * @copyright xyzh
 * @since 2025-10-15
 */
public class TbSysFile extends BaseDTO {
    
    private static final long serialVersionUID = 1L;

    private String fileID;
    
    /**
     * @description 文件名
     */
    private String fileName;
    
    /**
     * @description 原始文件名
     */
    private String originalName;
    
    /**
     * @description 文件路径
     */
    private String filePath;
    
    /**
     * @description 访问URL
     */
    private String fileUrl;
    
    /**
     * @description 文件大小（字节）
     */
    private Long fileSize;
    
    /**
     * @description 文件类型
     */
    private String fileType;
    
    /**
     * @description MIME类型
     */
    private String mimeType;
    
    /**
     * @description 存储类型（local-本地存储、minio-MinIO存储、oss-阿里云OSS等）
     */
    private String storageType;
    
    /**
     * @description 所属模块
     */
    private String module;
    
    /**
     * @description 业务ID
     */
    private String businessID;
    
    /**
     * @description 上传者
     */
    private String uploader;

    public String getFileID() {
        return fileID;
    }

    public void setFileID(String fileID) {
        this.fileID = fileID;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getOriginalName() {
        return originalName;
    }

    public void setOriginalName(String originalName) {
        this.originalName = originalName;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public String getFileUrl() {
        return fileUrl;
    }

    public void setFileUrl(String fileUrl) {
        this.fileUrl = fileUrl;
    }

    public Long getFileSize() {
        return fileSize;
    }

    public void setFileSize(Long fileSize) {
        this.fileSize = fileSize;
    }

    public String getFileType() {
        return fileType;
    }

    public void setFileType(String fileType) {
        this.fileType = fileType;
    }

    public String getMimeType() {
        return mimeType;
    }

    public void setMimeType(String mimeType) {
        this.mimeType = mimeType;
    }

    public String getStorageType() {
        return storageType;
    }

    public void setStorageType(String storageType) {
        this.storageType = storageType;
    }

    public String getModule() {
        return module;
    }

    public void setModule(String module) {
        this.module = module;
    }

    public String getBusinessID() {
        return businessID;
    }

    public void setBusinessID(String businessID) {
        this.businessID = businessID;
    }

    public String getUploader() {
        return uploader;
    }

    public void setUploader(String uploader) {
        this.uploader = uploader;
    }

    @Override
    public String toString() {
        return "TbSysFile{" +
                "fileID='" + fileID + '\'' +
                ", fileName='" + fileName + '\'' +
                ", originalName='" + originalName + '\'' +
                ", fileSize=" + fileSize +
                ", fileType='" + fileType + '\'' +
                ", storageType='" + storageType + '\'' +
                ", module='" + module + '\'' +
                ", businessID='" + businessID + '\'' +
                ", uploader='" + uploader + '\'' +
                '}';
    }
}
