|
@@ -24,6 +24,10 @@ import java.util.List;
|
|
|
public class HomeController extends BaseController {
|
|
|
|
|
|
private static final String HOME_PATH = "index";
|
|
|
+ /** 错误页面 */
|
|
|
+ private static final String ERROR_PATH = "error/404";
|
|
|
+ private static final String SEARCH_CHILDREN = "error/search_children";
|
|
|
+
|
|
|
|
|
|
private HomeService homeService;
|
|
|
@Autowired
|
|
@@ -39,11 +43,27 @@ public class HomeController extends BaseController {
|
|
|
@GetMapping("/index.html")
|
|
|
public String home(final Model model) {
|
|
|
model.addAttribute("msg", "首页");
|
|
|
- /*List<PageFloor> pageFloors = homeService.getHomePageFloor();*/
|
|
|
- /* model.addAttribute("pageFloors", pageFloors);*/
|
|
|
return HOME_PATH;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 404
|
|
|
+ */
|
|
|
+ @GetMapping("/404.html")
|
|
|
+ public String errorPage(final Model model) {
|
|
|
+ model.addAttribute("msg", "404页面");
|
|
|
+ return ERROR_PATH;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 腾讯公益
|
|
|
+ */
|
|
|
+ @GetMapping("/search_children.html")
|
|
|
+ public String searchChildren(final Model model) {
|
|
|
+ model.addAttribute("msg", "腾讯公益");
|
|
|
+ return SEARCH_CHILDREN;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 首页轮播图列表
|
|
|
* @return
|
|
@@ -74,16 +94,6 @@ public class HomeController extends BaseController {
|
|
|
return homeService.getHomePageFloorData();
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 首页楼层专题数据
|
|
|
- * @return
|
|
|
- */
|
|
|
- /*@GetMapping("/home/topic")
|
|
|
- @ResponseBody
|
|
|
- public JsonModel<Map<String, Object>> getHomeTopicData() {
|
|
|
- return homeService.getHomeTopicData();
|
|
|
- }*/
|
|
|
-
|
|
|
/**
|
|
|
* 首页左侧广告图
|
|
|
* @return
|