|
|
@ -28,6 +28,7 @@ import util.StringTools;
|
|
|
|
|
|
|
|
|
|
|
|
public class JournalMapper {
|
|
|
|
public class JournalMapper {
|
|
|
|
// mock data
|
|
|
|
// mock data
|
|
|
|
|
|
|
|
private static final List<String> DEFAULT_TAGS=Arrays.asList("暂无标签");
|
|
|
|
private static final String JOURNAL_TAG_FILE_PATH = "journalTags.txt";
|
|
|
|
private static final String JOURNAL_TAG_FILE_PATH = "journalTags.txt";
|
|
|
|
private static final Map<String, List<String>> journalTagMap = new HashMap<>();
|
|
|
|
private static final Map<String, List<String>> journalTagMap = new HashMap<>();
|
|
|
|
private static final String[] EDITOR = new String[] { "左岸以西", "落在低处" };
|
|
|
|
private static final String[] EDITOR = new String[] { "左岸以西", "落在低处" };
|
|
|
@ -93,7 +94,7 @@ public class JournalMapper {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private static List<String> getTags(String journalNo) {
|
|
|
|
private static List<String> getTags(String journalNo) {
|
|
|
|
return journalTagMap.getOrDefault(journalNo, Collections.emptyList());
|
|
|
|
return journalTagMap.getOrDefault(journalNo, DEFAULT_TAGS);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private static String getEditDate(Journal journal) {
|
|
|
|
private static String getEditDate(Journal journal) {
|
|
|
|