调整获取文章列表接口
This commit is contained in:
parent
dcfa5bcf36
commit
8d778d94c5
|
|
@ -48,7 +48,6 @@ public class DecorateDataServiceImpl implements IDecorateDataService {
|
||||||
map.put("image", UrlUtil.toAbsoluteUrl(article.getImage()));
|
map.put("image", UrlUtil.toAbsoluteUrl(article.getImage()));
|
||||||
map.put("author", article.getAuthor());
|
map.put("author", article.getAuthor());
|
||||||
map.put("visit", article.getVisit());
|
map.put("visit", article.getVisit());
|
||||||
map.put("content", article.getContent());
|
|
||||||
map.put("createTime", TimeUtil.timestampToDate(article.getCreateTime()));
|
map.put("createTime", TimeUtil.timestampToDate(article.getCreateTime()));
|
||||||
articleList.add(map);
|
articleList.add(map);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -72,7 +72,6 @@ public class IndexServiceImpl implements IIndexService {
|
||||||
map.put("image", UrlUtil.toAbsoluteUrl(article.getImage()));
|
map.put("image", UrlUtil.toAbsoluteUrl(article.getImage()));
|
||||||
map.put("author", article.getAuthor());
|
map.put("author", article.getAuthor());
|
||||||
map.put("visit", article.getVisit());
|
map.put("visit", article.getVisit());
|
||||||
map.put("content", article.getContent());
|
|
||||||
map.put("createTime", TimeUtil.timestampToDate(article.getCreateTime()));
|
map.put("createTime", TimeUtil.timestampToDate(article.getCreateTime()));
|
||||||
articleList.add(map);
|
articleList.add(map);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue