From 4adb0063ef324e235218cc73eea63e39a6e8e59f Mon Sep 17 00:00:00 2001 From: inleft <inleft@qq.com> Date: Fri, 26 Aug 2022 18:44:55 +0800 Subject: [PATCH] 微调字段 --- snowy-base/snowy-core/src/main/java/vip/xiaonuo/core/consts/MyConstant.java | 124 +++++++++++++++++++++++++++++++++++++++++ 1 files changed, 123 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 6fbc65d..c3a5a3a 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,6 +1,128 @@ package vip.xiaonuo.core.consts; +import java.util.ArrayList; +import java.util.List; + +import static vip.xiaonuo.core.consts.MyConstant.FileType.fileTypeMp3_4; +import static vip.xiaonuo.core.consts.MyConstant.FileType.fileTypeVideo_3; + 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; + } + + /** + * 编辑状态 0:草稿 1:发布 + */ + interface EditorStatus { + int status_0 = 0; + int status_1 = 1; + } + + /** + * 月台类型分类,暂时不考虑加入数据库 + */ + interface platformType { + String type_1 = "moment";//片刻 + String type_2 = "flash";//流影 + String type_3 = "store";//谱库 + } + + /** + * 首页排除文件类型id + */ + List<Integer> faceExcludeFile = new ArrayList() {{ + add(fileTypeVideo_3); + add(fileTypeMp3_4); + }}; + + /** + * 文件类型(日志主要呈现类型方式) + * 1.markdown(日志类型的一种) + * 2.html(日志类型的第二种,预留) + * 3.video(视频,也可以是音频类型) + * 4.mp3(预留) + * 5.pictures(图组,谱子等) + * 9.talking(说说,仅显示扼要,可以加表情) + */ + interface FileType { + Integer fileTypeMarkDown_1 = 1; + Integer fileTypeHtml_2 = 2; + Integer fileTypeVideo_3 = 3; + Integer fileTypeMp3_4 = 4; + Integer fileTypePictures_5 = 5; + Integer fileTypeTalking_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.fileTypePictures_5); + add(FileType.fileTypeTalking_9); + }}; + + /** + * 存储文件夹映射(bucket) + * article(mark,html等文件) + * mp4(视频资源) + * mp3(音频资源) + * cover(封面) + * picture(文章引用图库) + */ + String bucket_article = "article"; + String bucket_video = "mp4"; + String bucket_mp3 = "mp3"; + String bucket_cover = "cover"; + String bucket_picture = "picture"; + + List<String> uploadFileBucketList = new ArrayList(5) {{ + add(bucket_article); + add(bucket_video); + add(bucket_mp3); + add(bucket_picture); + add(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