findme-backend-merchant-java/src/main/java/com/xjhs/findmemerchant/file/dao/FileMetaInfo.java
guotao cf2295b85f 完成以下第三方接口对接:
1.地图功能-地理/逆地理编码
2.发送短信验证码
3.COS云对象存储对接
其他:
完成文件上传/预览公共接口
2026-01-12 18:50:25 +08:00

41 lines
No EOL
1,023 B
Java

package com.xjhs.findmemerchant.file.dao;
import com.xjhs.findmemerchant.common.jpa.id.SnowflakeGenerated;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import lombok.Data;
import org.hibernate.annotations.Comment;
import java.time.LocalDateTime;
/**
* 文件信息表
*/
@Data
@Entity
@Comment("文件信息表")
public class FileMetaInfo {
@Id
@SnowflakeGenerated
@Comment("主键")
private Long id;
@Comment("文件原始名称")
private String name;
@Comment("文件媒体类型")
private String contentType;
@Comment("文件扩展名称")
@Column(length = 10)
private String extension;
@Comment("本地存储路径")
private String savePath;
@Comment("是否已迁移到云服务")
private boolean moveToCloud = false;
@Comment("云对象id")
@Column(length = 50)
private String cloudObjectId;
@Comment("创建时间")
private LocalDateTime createTime = LocalDateTime.now();
}