|
@@ -15,16 +15,17 @@ import java.util.Date;
|
|
|
@AutoMapper(target = Attachment.class, reverseConvertGenerate = false)
|
|
|
public class AttachmentBo {
|
|
|
|
|
|
- public AttachmentBo(String category, Long userId, String url, String imageType, String fileName, Date createTime, Date updateTime, Date uploadTime, String ossId) {
|
|
|
+ public AttachmentBo(String category, Long userId, String url, String imageType, String fileName, String mimetype, Date createTime, Date updateTime, Date uploadTime) {
|
|
|
this.category = category;
|
|
|
this.userId = userId;
|
|
|
this.url = url;
|
|
|
this.imageType = imageType;
|
|
|
this.fileName = fileName;
|
|
|
+ this.mimetype = mimetype;
|
|
|
this.createTime = createTime;
|
|
|
this.updateTime = updateTime;
|
|
|
this.uploadTime = uploadTime;
|
|
|
- this.ossId = ossId;
|
|
|
+ this.storage = "local";
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -80,7 +81,7 @@ public class AttachmentBo {
|
|
|
/**
|
|
|
* 文件大小
|
|
|
*/
|
|
|
- private int fileSize;
|
|
|
+ private Long fileSize;
|
|
|
|
|
|
/**
|
|
|
* mime类型
|
|
@@ -103,9 +104,9 @@ public class AttachmentBo {
|
|
|
private Date uploadTime;
|
|
|
|
|
|
/**
|
|
|
- * ossId
|
|
|
+ * 存储位置
|
|
|
*/
|
|
|
- private String ossId;
|
|
|
+ private String storage;
|
|
|
|
|
|
/**
|
|
|
* sha1
|