From 7fe1bd7734e8a1f80523d5fce34290e3f20a7403 Mon Sep 17 00:00:00 2001 From: inleft <inleft@qq.com> Date: Sun, 21 Aug 2022 21:09:23 +0800 Subject: [PATCH] 新增邮件消息自提醒 --- snowy-base/snowy-core/src/main/java/vip/xiaonuo/core/consts/MyConstant.java | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 47 insertions(+), 0 deletions(-) diff --git a/snowy-base/snowy-core/src/main/java/vip/xiaonuo/core/consts/MyConstant.java b/snowy-base/snowy-core/src/main/java/vip/xiaonuo/core/consts/MyConstant.java index cbf34a4..26c7d52 100644 --- a/snowy-base/snowy-core/src/main/java/vip/xiaonuo/core/consts/MyConstant.java +++ b/snowy-base/snowy-core/src/main/java/vip/xiaonuo/core/consts/MyConstant.java @@ -1,7 +1,9 @@ package vip.xiaonuo.core.consts; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; public interface MyConstant { Integer No = 0; @@ -33,10 +35,55 @@ /** + * 文件类型 + */ + interface FileType { + Integer fileTypeMarkDown_1 = 1; + Integer fileTypeHtml_2 = 2; + Integer fileTypeVideo_3 = 3; + Integer fileTypeMp3_4 = 4; + Integer fileTypeShort_5 = 5; + Integer fileTypePhoto_9 = 9; + } + + List<Integer> FileTypeList = new ArrayList(5) {{ + add(FileType.fileTypeMarkDown_1); + add(FileType.fileTypeHtml_2); + add(FileType.fileTypeVideo_3); + add(FileType.fileTypeMp3_4); + add(FileType.fileTypeShort_5); + add(FileType.fileTypePhoto_9); + }}; + + //存储文件夹映射 + String bucket_article = "article"; + String bucket_video = "mp4"; + String bucket_mp3 = "mp3"; + String bucket_cover = "cover"; + + Map<Integer, String> uploadFileBucketMap = new HashMap(5) {{ + put(FileType.fileTypeMarkDown_1, bucket_article); + put(FileType.fileTypeHtml_2, bucket_article); + put(FileType.fileTypeVideo_3, bucket_video); + put(FileType.fileTypeMp3_4, bucket_mp3); + put(FileType.fileTypePhoto_9, bucket_cover); + }}; + + + /** * 留言类型 1:留言板 2:日志评论 */ interface CommentType { int type_1 = 1; int type_2 = 2; } + + /** + * 邮件模板名称 + */ + interface ftlModel { + String path = "templates"; + String reply = "emailReplyModel.ftl"; + String remind = "remindMe.ftl"; + } } -- Gitblit v1.9.1