mirror of
https://github.com/cool-team-official/cool-admin-java.git
synced 2026-10-07 16:18:25 +08:00
release v7.1
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
package com.cool.modules.space.entity;
|
||||
|
||||
import com.cool.core.base.BaseEntity;
|
||||
import com.mybatisflex.annotation.Column;
|
||||
import com.tangzc.autotable.annotation.Ignore;
|
||||
import com.tangzc.autotable.annotation.Index;
|
||||
|
||||
import com.tangzc.mybatisflex.autotable.annotation.ColumnDefine;
|
||||
import com.mybatisflex.annotation.Table;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* 文件空间信息
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@Table(value = "space_info", comment = "文件空间信息")
|
||||
public class SpaceInfoEntity extends BaseEntity<SpaceInfoEntity> {
|
||||
@ColumnDefine(comment = "地址", notNull = true)
|
||||
private String url;
|
||||
|
||||
@ColumnDefine(comment = "类型", notNull = true)
|
||||
private String type;
|
||||
|
||||
@ColumnDefine(comment = "分类ID", type = "tinyint")
|
||||
private Integer classifyId;
|
||||
|
||||
@Index()
|
||||
@ColumnDefine(comment = "文件id")
|
||||
private String fileId;
|
||||
|
||||
@ColumnDefine(comment = "文件名")
|
||||
private String name;
|
||||
|
||||
@ColumnDefine(comment = "文件大小")
|
||||
private Integer size;
|
||||
|
||||
@ColumnDefine(comment = "文档版本", defaultValue = "1")
|
||||
private Long version;
|
||||
|
||||
@ColumnDefine(comment = "文件位置")
|
||||
private String filePath;
|
||||
|
||||
@Ignore
|
||||
@Column(ignore = true)
|
||||
private String key;
|
||||
|
||||
public void setFilePath(String filePath) {
|
||||
this.filePath = filePath;
|
||||
this.key = filePath;
|
||||
}
|
||||
|
||||
public void setKey(String key) {
|
||||
this.key = key;
|
||||
this.filePath = key;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user