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

com.admin4j.oss.entity.vo.UploadFileVO Maven / Gradle / Ivy

Go to download

封装基于Amazon S3的OSS对象存储服务。在SpringBoot 中通过封装,简单地方式将文件存储到 MinIO、阿里云OSS、华为云OBS、七牛云Kodo、腾讯云COS等支持 S3 协议的平台

There is a newer version: 0.10.0
Show newest version
package com.admin4j.oss.entity.vo;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author andanyang
 * @since 2023/2/17 8:51
 */
@Data
@ApiModel("文件上传返回")
public class UploadFileVO {

    //@ApiModelProperty("生成的文件名称")
    //private String filename;
    @ApiModelProperty("文件原始名称")
    private String originalFilename;
    private String bucket;
    @ApiModelProperty("文件大小 Bit")
    private long size;
    private LocalDateTime createTime;
    @ApiModelProperty("文件类型")
    private String contentType;
    private String md5;
    @ApiModelProperty("预览地址")
    private String previewUrl;
    @ApiModelProperty("文件前缀")
    private String prefix = "";
    @ApiModelProperty("文件key")
    private String key;
    /**
     * 文件保存成功之后的fileId
     */
    @ApiModelProperty("文件保存成功之后的fileId")
    private Long fileId;
    @ApiModelProperty("oss配置的名称")
    private String configName;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy