release v7.1

This commit is contained in:
xiaopeng
2024-07-14 21:17:26 +08:00
parent 9425517d6e
commit 14f9897569
195 changed files with 11269 additions and 2 deletions
@@ -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;
}
}