Files
zfile/src/main/java/im/zhaojun/common/model/dto/FileItemDTO.java
2019-12-21 12:08:24 +08:00

80 lines
1.5 KiB
Java

package im.zhaojun.common.model.dto;
import im.zhaojun.common.model.enums.FileTypeEnum;
import java.io.Serializable;
import java.util.Date;
/**
* @author zhaojun
*/
public class FileItemDTO implements Serializable {
private String name;
private Date time;
private Long size;
private FileTypeEnum type;
private String path;
private String url;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Date getTime() {
return time;
}
public void setTime(Date time) {
this.time = time;
}
public Long getSize() {
return size;
}
public void setSize(Long size) {
this.size = size;
}
public FileTypeEnum getType() {
return type;
}
public void setType(FileTypeEnum type) {
this.type = type;
}
public String getPath() {
return path;
}
public void setPath(String path) {
this.path = path;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
@Override
public String toString() {
return "FileItemDTO{" +
"name='" + name + '\'' +
", time=" + time +
", size=" + size +
", type=" + type +
", path='" + path + '\'' +
", url='" + url + '\'' +
'}';
}
}