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 |   79 +++++++++++++++++++++++++++++++++++++++
 1 files changed, 78 insertions(+), 1 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 4a7f851..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,12 +1,89 @@
 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;
     Integer Yes = 1;
-    Integer No = 1;
+    String limit = " limit 1 ";
+
+
+    String privateComment = "(悄悄话已隐藏)******";
+    String checkComment = "(未审核消息)******";
+    String inleft = "inleft";
+    String email = "inleft@qq.com";
+    String url_1 = "http://blog.inleft.com/comment#%d";
+    String url_2 = "http://blog.inleft.com/mdDetail?id=%d#%d";
+
+    int limitRead = 8;//限制最多读取已读评论条数
+    String msgTitle = "碎碎念";
+
+    List<String> myIds = new ArrayList(3) {{
+        add(MyConstant.inleft);
+        add("阿墨");
+        add("笔墨");
+    }};
 
     interface AuthStatus {
         int publicCode = 1;
         int privateCode = 2;
         int authCode = 3;
     }
+
+
+    /**
+     * 文件类型
+     */
+    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