commit | author | age
|
0613f2
|
1 |
package vip.xiaonuo.core.consts; |
I |
2 |
|
ba780f
|
3 |
import java.util.ArrayList; |
I |
4 |
import java.util.List; |
fae101
|
5 |
|
I |
6 |
import static vip.xiaonuo.core.consts.MyConstant.FileType.fileTypeMp3_4; |
|
7 |
import static vip.xiaonuo.core.consts.MyConstant.FileType.fileTypeVideo_3; |
ba780f
|
8 |
|
0613f2
|
9 |
public interface MyConstant { |
88f419
|
10 |
Integer No = 0; |
0613f2
|
11 |
Integer Yes = 1; |
ba780f
|
12 |
String limit = " limit 1 "; |
bd3bc1
|
13 |
|
42b7d0
|
14 |
|
I |
15 |
String privateComment = "(悄悄话已隐藏)******"; |
|
16 |
String checkComment = "(未审核消息)******"; |
ba780f
|
17 |
String inleft = "inleft"; |
f639b5
|
18 |
String email = "inleft@qq.com"; |
I |
19 |
String url_1 = "http://blog.inleft.com/comment#%d"; |
|
20 |
String url_2 = "http://blog.inleft.com/mdDetail?id=%d#%d"; |
42b7d0
|
21 |
|
eaf26c
|
22 |
int limitRead = 8;//限制最多读取已读评论条数 |
I |
23 |
String msgTitle = "碎碎念"; |
|
24 |
|
ba780f
|
25 |
List<String> myIds = new ArrayList(3) {{ |
I |
26 |
add(MyConstant.inleft); |
|
27 |
add("阿墨"); |
|
28 |
add("笔墨"); |
|
29 |
}}; |
|
30 |
|
bd3bc1
|
31 |
interface AuthStatus { |
I |
32 |
int publicCode = 1; |
|
33 |
int privateCode = 2; |
|
34 |
int authCode = 3; |
|
35 |
} |
88f419
|
36 |
|
20e5fc
|
37 |
/** |
I |
38 |
* 编辑状态 0:草稿 1:发布 |
|
39 |
*/ |
|
40 |
interface EditorStatus { |
|
41 |
int status_0 = 0; |
|
42 |
int status_1 = 1; |
|
43 |
} |
|
44 |
|
dc050f
|
45 |
/** |
I |
46 |
* 月台类型分类,暂时不考虑加入数据库 |
|
47 |
*/ |
|
48 |
interface platformType { |
fae101
|
49 |
String type_1 = "moment";//片刻 |
I |
50 |
String type_2 = "flash";//流影 |
|
51 |
String type_3 = "store";//谱库 |
dc050f
|
52 |
} |
I |
53 |
|
fae101
|
54 |
/** |
I |
55 |
* 首页排除文件类型id |
|
56 |
*/ |
|
57 |
List<Integer> faceExcludeFile = new ArrayList() {{ |
|
58 |
add(fileTypeVideo_3); |
|
59 |
add(fileTypeMp3_4); |
|
60 |
}}; |
88f419
|
61 |
|
I |
62 |
/** |
fae101
|
63 |
* 文件类型(日志主要呈现类型方式) |
I |
64 |
* 1.markdown(日志类型的一种) |
|
65 |
* 2.html(日志类型的第二种,预留) |
|
66 |
* 3.video(视频,也可以是音频类型) |
|
67 |
* 4.mp3(预留) |
|
68 |
* 5.pictures(图组,谱子等) |
|
69 |
* 9.talking(说说,仅显示扼要,可以加表情) |
d80267
|
70 |
*/ |
I |
71 |
interface FileType { |
|
72 |
Integer fileTypeMarkDown_1 = 1; |
|
73 |
Integer fileTypeHtml_2 = 2; |
|
74 |
Integer fileTypeVideo_3 = 3; |
|
75 |
Integer fileTypeMp3_4 = 4; |
fae101
|
76 |
Integer fileTypePictures_5 = 5; |
I |
77 |
Integer fileTypeTalking_9 = 9; |
d80267
|
78 |
} |
I |
79 |
|
|
80 |
List<Integer> FileTypeList = new ArrayList(5) {{ |
|
81 |
add(FileType.fileTypeMarkDown_1); |
|
82 |
add(FileType.fileTypeHtml_2); |
4adb00
|
83 |
add(FileType.fileTypeVideo_3); |
d80267
|
84 |
add(FileType.fileTypeMp3_4); |
fae101
|
85 |
add(FileType.fileTypePictures_5); |
I |
86 |
add(FileType.fileTypeTalking_9); |
d80267
|
87 |
}}; |
I |
88 |
|
fae101
|
89 |
/** |
I |
90 |
* 存储文件夹映射(bucket) |
|
91 |
* article(mark,html等文件) |
|
92 |
* mp4(视频资源) |
|
93 |
* mp3(音频资源) |
|
94 |
* cover(封面) |
|
95 |
* picture(文章引用图库) |
|
96 |
*/ |
d80267
|
97 |
String bucket_article = "article"; |
I |
98 |
String bucket_video = "mp4"; |
|
99 |
String bucket_mp3 = "mp3"; |
|
100 |
String bucket_cover = "cover"; |
fae101
|
101 |
String bucket_picture = "picture"; |
d80267
|
102 |
|
fae101
|
103 |
List<String> uploadFileBucketList = new ArrayList(5) {{ |
I |
104 |
add(bucket_article); |
|
105 |
add(bucket_video); |
|
106 |
add(bucket_mp3); |
|
107 |
add(bucket_picture); |
|
108 |
add(bucket_cover); |
d80267
|
109 |
}}; |
I |
110 |
|
|
111 |
|
|
112 |
/** |
88f419
|
113 |
* 留言类型 1:留言板 2:日志评论 |
I |
114 |
*/ |
|
115 |
interface CommentType { |
|
116 |
int type_1 = 1; |
|
117 |
int type_2 = 2; |
|
118 |
} |
7fe1bd
|
119 |
|
I |
120 |
/** |
|
121 |
* 邮件模板名称 |
|
122 |
*/ |
|
123 |
interface ftlModel { |
|
124 |
String path = "templates"; |
|
125 |
String reply = "emailReplyModel.ftl"; |
|
126 |
String remind = "remindMe.ftl"; |
|
127 |
} |
0613f2
|
128 |
} |