buhuazhen
8 天以前 d1c296f59ea0ac750763ccaaa6c2132ce9166085
ruoyi-common/src/main/java/com/ruoyi/basic/entity/dto/SimpleStorageDto.java
@@ -21,16 +21,36 @@
    private String contentType;
    /**
     * 用于下载
     */
    private String url;
    private String downloadUrl;
    /**
     * 预览
     */
    private String previewUrl;
    private Date createTime;
    // 配合前端添加有一些字段
    private Long uid;
    private String name;
    private String status = "success";
    public SimpleStorageDto(Long id, String contentType, String originalFilename, Date createTime) {
        this.id = id;
        this.contentType = contentType;
        this.originalFilename = originalFilename;
        this.createTime = createTime;
    }
    public Long getUid() {
        return getId();
    }
    public String getName() {
        return getOriginalFilename();
    }
}