| | |
| | | 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; |
| | |
| | | |
| | | |
| | | /** |
| | | * 文件类型 |
| | | */ |
| | | 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"; |
| | | } |
| | | } |