All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.jdevelops.file.oss.api.bean.UploadFileInfo Maven / Gradle / Ivy

The newest version!
package cn.jdevelops.file.oss.api.bean;

import io.swagger.v3.oas.annotations.media.Schema;
import org.springframework.web.multipart.MultipartFile;

import java.io.Serializable;

/**
 * 上传文件的文件参数
 *
 * @author tnnn
 * @version V1.0
 * @date 2023-01-10 15:50
 */
public class UploadFileInfo implements Serializable {

    /**
     * 文件流
     */
    @Schema(description = "文件流")
    MultipartFile file;

    /**
     * 业务自定义存储文件名,为空则使用系统默认规则
     * ps: minio 中文可能会有点的问题
     */
    @Schema(description = "业务自定义存储文件名,为空则使用系统默认规则( minio 中文可能会有点的问题)")
    String fileName;


    @Override
    public String toString() {
        return "UploadFileInfo{" +
                "file=" + file +
                ", fileName='" + fileName + '\'' +
                '}';
    }

    public MultipartFile getFile() {
        return file;
    }

    public void setFile(MultipartFile file) {
        this.file = file;
    }

    public String getFileName() {
        return fileName;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy