package cn.iocoder.yudao.module.system.dal.dataobject.storage;
|
|
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
|
import com.baomidou.mybatisplus.annotation.KeySequence;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import lombok.*;
|
|
/**
|
* 文件主表 DO
|
*
|
* @author 芋道源码
|
*/
|
@TableName("system_storage_blob")
|
@KeySequence("system_storage_blob_seq")
|
@Data
|
@EqualsAndHashCode(callSuper = true)
|
@ToString(callSuper = true)
|
@Builder
|
@NoArgsConstructor
|
@AllArgsConstructor
|
public class SystemStorageBlobDO extends BaseDO {
|
|
/**
|
* 主键
|
*/
|
@TableId
|
private Long id;
|
|
/**
|
* 资源唯一标识(公共访问key)
|
*/
|
private String resourceKey;
|
|
/**
|
* 资源类型,例如 image/jpeg
|
*/
|
private String contentType;
|
|
/**
|
* 原文件名
|
*/
|
private String originalFilename;
|
|
/**
|
* 唯一文件名(UUID_原文件名)
|
*/
|
private String uidFilename;
|
|
/**
|
* 文件大小(字节)
|
*/
|
private Long byteSize;
|
|
/**
|
* 文件相对路径(如 2026/0430)
|
*/
|
private String path;
|
|
}
|