diff --git a/timeline-component-common/src/main/java/com/timeline/common/constants/CommonConstants.java b/timeline-component-common/src/main/java/com/timeline/common/constants/CommonConstants.java index 77f36e6..7396bab 100644 --- a/timeline-component-common/src/main/java/com/timeline/common/constants/CommonConstants.java +++ b/timeline-component-common/src/main/java/com/timeline/common/constants/CommonConstants.java @@ -13,4 +13,5 @@ public class CommonConstants { public static final int DELETED = 1; public static final int NOT_DELETED = 0; + public static final String LOW_RESOLUTION_PREFIX = "low_res_"; } diff --git a/timeline-component-common/src/main/java/com/timeline/common/response/ResponseEnum.java b/timeline-component-common/src/main/java/com/timeline/common/response/ResponseEnum.java index 60e821b..0246a8a 100644 --- a/timeline-component-common/src/main/java/com/timeline/common/response/ResponseEnum.java +++ b/timeline-component-common/src/main/java/com/timeline/common/response/ResponseEnum.java @@ -28,7 +28,8 @@ public enum ResponseEnum { GATEWAY_TIMEOUT(504, "网关超时"), // 操作错误 - SEARCH_ERROR(4001, "查询数据库错误"); + SEARCH_ERROR(4001, "查询数据库错误"), + NOT_FOUND_ERROR(4002, "未找到该资源"); private final int code; private final String message; diff --git a/timeline-component-common/src/main/resources/com/timeline/dao/CommonRelationMapper.xml b/timeline-component-common/src/main/resources/com/timeline/dao/CommonRelationMapper.xml deleted file mode 100644 index 2afb3b1..0000000 --- a/timeline-component-common/src/main/resources/com/timeline/dao/CommonRelationMapper.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - INSERT INTO common_relation (rela_id, sub_rela_id, rela_type, user_id) - VALUES (#{imageInstanceId}, #{storyItemId}, 1, #{userId}) - - - - - - - - UPDATE common_relation - SET is_delete = 1 - WHERE rela_id = #{imageInstanceId} AND sub_rela_id = #{storyItemId} - - - - INSERT INTO common_relation (rela_id, sub_rela_id, rela_type, user_id) - VALUES (#{relaId}, #{subRelaId}, #{relationType}, #{userId}) - - diff --git a/timeline-file-service/pom.xml b/timeline-file-service/pom.xml index 2b0c885..e8a0ba5 100644 --- a/timeline-file-service/pom.xml +++ b/timeline-file-service/pom.xml @@ -34,6 +34,11 @@ minio 8.5.2 + + net.coobird + thumbnailator + 0.4.17 +