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 | 67 ++++++++++++++++++++++++++------- 1 files changed, 53 insertions(+), 14 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 26c7d52..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,9 +1,10 @@ package vip.xiaonuo.core.consts; import java.util.ArrayList; -import java.util.HashMap; import java.util.List; -import java.util.Map; + +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; @@ -33,17 +34,47 @@ 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 fileTypeShort_5 = 5; - Integer fileTypePhoto_9 = 9; + Integer fileTypePictures_5 = 5; + Integer fileTypeTalking_9 = 9; } List<Integer> FileTypeList = new ArrayList(5) {{ @@ -51,22 +82,30 @@ add(FileType.fileTypeHtml_2); add(FileType.fileTypeVideo_3); add(FileType.fileTypeMp3_4); - add(FileType.fileTypeShort_5); - add(FileType.fileTypePhoto_9); + 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"; - 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); + List<String> uploadFileBucketList = new ArrayList(5) {{ + add(bucket_article); + add(bucket_video); + add(bucket_mp3); + add(bucket_picture); + add(bucket_cover); }}; -- Gitblit v1.9.1