2018-01-17 17:51:53 +08:00
|
|
|
package cn.keking.model;
|
|
|
|
|
|
2020-12-25 22:47:30 +08:00
|
|
|
import cn.keking.config.ConfigConstants;
|
|
|
|
|
|
2018-01-17 17:51:53 +08:00
|
|
|
/**
|
|
|
|
|
* Created by kl on 2018/1/17.
|
|
|
|
|
* Content :
|
|
|
|
|
*/
|
|
|
|
|
public class FileAttribute {
|
|
|
|
|
|
|
|
|
|
private FileType type;
|
|
|
|
|
|
|
|
|
|
private String suffix;
|
|
|
|
|
|
|
|
|
|
private String name;
|
|
|
|
|
|
|
|
|
|
private String url;
|
|
|
|
|
|
2020-12-25 22:47:30 +08:00
|
|
|
private String officePreviewType = ConfigConstants.getOfficePreviewType();
|
|
|
|
|
|
2018-01-17 17:51:53 +08:00
|
|
|
public FileAttribute() {
|
|
|
|
|
}
|
|
|
|
|
|
2020-05-15 18:09:19 +08:00
|
|
|
public FileAttribute(FileType type, String suffix, String name, String url) {
|
2018-01-17 17:51:53 +08:00
|
|
|
this.type = type;
|
|
|
|
|
this.suffix = suffix;
|
|
|
|
|
this.name = name;
|
|
|
|
|
this.url = url;
|
|
|
|
|
}
|
|
|
|
|
|
2020-12-25 22:47:30 +08:00
|
|
|
public FileAttribute(FileType type, String suffix, String name, String url, String officePreviewType) {
|
|
|
|
|
this.type = type;
|
|
|
|
|
this.suffix = suffix;
|
|
|
|
|
this.name = name;
|
|
|
|
|
this.url = url;
|
|
|
|
|
this.officePreviewType = officePreviewType;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getOfficePreviewType() {
|
|
|
|
|
return officePreviewType;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setOfficePreviewType(String officePreviewType) {
|
|
|
|
|
this.officePreviewType = officePreviewType;
|
|
|
|
|
}
|
|
|
|
|
|
2018-01-17 17:51:53 +08:00
|
|
|
public FileType getType() {
|
|
|
|
|
return type;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setType(FileType type) {
|
|
|
|
|
this.type = type;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getSuffix() {
|
|
|
|
|
return suffix;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setSuffix(String suffix) {
|
|
|
|
|
this.suffix = suffix;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getName() {
|
|
|
|
|
return name;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setName(String name) {
|
|
|
|
|
this.name = name;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getUrl() {
|
|
|
|
|
return url;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setUrl(String url) {
|
|
|
|
|
this.url = url;
|
|
|
|
|
}
|
|
|
|
|
}
|