use of com.tale.model.dto.Statistics in project tale by otale.
the class IndexController method index.
/**
* 仪表盘
*/
@GetRoute(value = { "/", "index" })
public String index(Request request) {
List<Comments> comments = siteService.recentComments(5);
List<Contents> contents = siteService.getContens(Types.RECENT_ARTICLE, 5);
Statistics statistics = siteService.getStatistics();
request.attribute("comments", comments);
request.attribute("articles", contents);
request.attribute("statistics", statistics);
return "admin/index";
}
Aggregations