diff --git a/kernel-d-file/file-api/src/main/java/cn/stylefeng/roses/kernel/file/pojo/request/SysFileInfoRequest.java b/kernel-d-file/file-api/src/main/java/cn/stylefeng/roses/kernel/file/pojo/request/SysFileInfoRequest.java index 2757bee88..3a0fdea66 100644 --- a/kernel-d-file/file-api/src/main/java/cn/stylefeng/roses/kernel/file/pojo/request/SysFileInfoRequest.java +++ b/kernel-d-file/file-api/src/main/java/cn/stylefeng/roses/kernel/file/pojo/request/SysFileInfoRequest.java @@ -86,6 +86,11 @@ public class SysFileInfoRequest extends BaseRequest { */ private String filePath; + /** + * 文件应用编码 + */ + private String fileAppCode; + /** * 版本回退 */ diff --git a/kernel-d-file/file-api/src/main/java/cn/stylefeng/roses/kernel/file/pojo/response/SysFileInfoListResponse.java b/kernel-d-file/file-api/src/main/java/cn/stylefeng/roses/kernel/file/pojo/response/SysFileInfoListResponse.java index 6c934573c..6276f7f51 100644 --- a/kernel-d-file/file-api/src/main/java/cn/stylefeng/roses/kernel/file/pojo/response/SysFileInfoListResponse.java +++ b/kernel-d-file/file-api/src/main/java/cn/stylefeng/roses/kernel/file/pojo/response/SysFileInfoListResponse.java @@ -20,6 +20,21 @@ public class SysFileInfoListResponse implements Serializable { */ private Long fileId; + /** + * 文件编码 + *

+ * 解决一个文件多个版本问题,多次上传文件编码不变 + *

+ * 版本号升级的依据,code相同id不同视为同一个文件的不同版本 + */ + private Long fileCode; + + + /** + * 是否为机密文件 + */ + private String secretFlag; + /** * 文件应用Code名称 */ @@ -30,6 +45,12 @@ public class SysFileInfoListResponse implements Serializable { */ private String fileOriginName; + + /** + * 文件存储位置:1-阿里云,2-腾讯云,3-minio,4-本地 + */ + private Integer fileLocation; + /** * 文件后缀 */ diff --git a/kernel-d-file/file-business/src/main/java/cn/stylefeng/roses/kernel/file/modular/entity/SysFileInfo.java b/kernel-d-file/file-business/src/main/java/cn/stylefeng/roses/kernel/file/modular/entity/SysFileInfo.java index fbce6119d..6478c0dbc 100644 --- a/kernel-d-file/file-business/src/main/java/cn/stylefeng/roses/kernel/file/modular/entity/SysFileInfo.java +++ b/kernel-d-file/file-business/src/main/java/cn/stylefeng/roses/kernel/file/modular/entity/SysFileInfo.java @@ -107,4 +107,13 @@ public class SysFileInfo extends BaseEntity { @TableField("del_flag") private String delFlag; + + + /** + * 文件应用Code名称 + */ + @TableField(value = "file_app_code") + private String fileAppCodeName; + + } diff --git a/kernel-d-file/file-business/src/main/java/cn/stylefeng/roses/kernel/file/modular/mapper/mapping/SysFileInfoMapper.xml b/kernel-d-file/file-business/src/main/java/cn/stylefeng/roses/kernel/file/modular/mapper/mapping/SysFileInfoMapper.xml index 43368c120..c7ce9a4d6 100644 --- a/kernel-d-file/file-business/src/main/java/cn/stylefeng/roses/kernel/file/modular/mapper/mapping/SysFileInfoMapper.xml +++ b/kernel-d-file/file-business/src/main/java/cn/stylefeng/roses/kernel/file/modular/mapper/mapping/SysFileInfoMapper.xml @@ -28,27 +28,27 @@