commit | author | age
|
0613f2
|
1 |
package vip.xiaonuo.core.consts; |
I |
2 |
|
ba780f
|
3 |
import java.util.ArrayList; |
d80267
|
4 |
import java.util.HashMap; |
ba780f
|
5 |
import java.util.List; |
d80267
|
6 |
import java.util.Map; |
ba780f
|
7 |
|
0613f2
|
8 |
public interface MyConstant { |
88f419
|
9 |
Integer No = 0; |
0613f2
|
10 |
Integer Yes = 1; |
ba780f
|
11 |
String limit = " limit 1 "; |
bd3bc1
|
12 |
|
42b7d0
|
13 |
|
I |
14 |
String privateComment = "(悄悄话已隐藏)******"; |
|
15 |
String checkComment = "(未审核消息)******"; |
ba780f
|
16 |
String inleft = "inleft"; |
f639b5
|
17 |
String email = "inleft@qq.com"; |
I |
18 |
String url_1 = "http://blog.inleft.com/comment#%d"; |
|
19 |
String url_2 = "http://blog.inleft.com/mdDetail?id=%d#%d"; |
42b7d0
|
20 |
|
eaf26c
|
21 |
int limitRead = 8;//限制最多读取已读评论条数 |
I |
22 |
String msgTitle = "碎碎念"; |
|
23 |
|
ba780f
|
24 |
List<String> myIds = new ArrayList(3) {{ |
I |
25 |
add(MyConstant.inleft); |
|
26 |
add("阿墨"); |
|
27 |
add("笔墨"); |
|
28 |
}}; |
|
29 |
|
bd3bc1
|
30 |
interface AuthStatus { |
I |
31 |
int publicCode = 1; |
|
32 |
int privateCode = 2; |
|
33 |
int authCode = 3; |
|
34 |
} |
88f419
|
35 |
|
I |
36 |
|
|
37 |
/** |
d80267
|
38 |
* 文件类型 |
I |
39 |
*/ |
|
40 |
interface FileType { |
|
41 |
Integer fileTypeMarkDown_1 = 1; |
|
42 |
Integer fileTypeHtml_2 = 2; |
|
43 |
Integer fileTypeVideo_3 = 3; |
|
44 |
Integer fileTypeMp3_4 = 4; |
|
45 |
Integer fileTypeShort_5 = 5; |
|
46 |
Integer fileTypePhoto_9 = 9; |
|
47 |
} |
|
48 |
|
|
49 |
List<Integer> FileTypeList = new ArrayList(5) {{ |
|
50 |
add(FileType.fileTypeMarkDown_1); |
|
51 |
add(FileType.fileTypeHtml_2); |
|
52 |
add(FileType.fileTypeVideo_3); |
|
53 |
add(FileType.fileTypeMp3_4); |
|
54 |
add(FileType.fileTypeShort_5); |
|
55 |
add(FileType.fileTypePhoto_9); |
|
56 |
}}; |
|
57 |
|
|
58 |
//存储文件夹映射 |
|
59 |
String bucket_article = "article"; |
|
60 |
String bucket_video = "mp4"; |
|
61 |
String bucket_mp3 = "mp3"; |
|
62 |
String bucket_cover = "cover"; |
|
63 |
|
|
64 |
Map<Integer, String> uploadFileBucketMap = new HashMap(5) {{ |
|
65 |
put(FileType.fileTypeMarkDown_1, bucket_article); |
|
66 |
put(FileType.fileTypeHtml_2, bucket_article); |
|
67 |
put(FileType.fileTypeVideo_3, bucket_video); |
|
68 |
put(FileType.fileTypeMp3_4, bucket_mp3); |
|
69 |
put(FileType.fileTypePhoto_9, bucket_cover); |
|
70 |
}}; |
|
71 |
|
|
72 |
|
|
73 |
/** |
88f419
|
74 |
* 留言类型 1:留言板 2:日志评论 |
I |
75 |
*/ |
|
76 |
interface CommentType { |
|
77 |
int type_1 = 1; |
|
78 |
int type_2 = 2; |
|
79 |
} |
7fe1bd
|
80 |
|
I |
81 |
/** |
|
82 |
* 邮件模板名称 |
|
83 |
*/ |
|
84 |
interface ftlModel { |
|
85 |
String path = "templates"; |
|
86 |
String reply = "emailReplyModel.ftl"; |
|
87 |
String remind = "remindMe.ftl"; |
|
88 |
} |
0613f2
|
89 |
} |