|
@@ -39,6 +39,8 @@ public class ArticleController extends BaseController {
|
|
|
@GetMapping("/info/center-{id}-{pageNum}.html")
|
|
|
public String toArticleList(@PathVariable("id") Integer id, @PathVariable("pageNum") Integer pageNum, final Model model) {
|
|
|
List<BaseLink> typeList = articleService.getArticleTypes();
|
|
|
+ List<BaseLink> data = articleService.getArticleLabels().getData();
|
|
|
+ model.addAttribute("labels",data);
|
|
|
model.addAttribute("articleType", typeList);
|
|
|
model.addAttribute("typeId", id);
|
|
|
model.addAttribute("labelId", 0);
|
|
@@ -53,6 +55,8 @@ public class ArticleController extends BaseController {
|
|
|
@GetMapping("/info/label-{id}-{pageNum}.html")
|
|
|
public String toArticleLabel(@PathVariable("id") Integer id, @PathVariable("pageNum") Integer pageNum, final Model model) {
|
|
|
List<BaseLink> typeList = articleService.getArticleTypes();
|
|
|
+ List<BaseLink> data = articleService.getArticleLabels().getData();
|
|
|
+ model.addAttribute("labels",data);
|
|
|
model.addAttribute("articleType", typeList);
|
|
|
model.addAttribute("typeId", 0);
|
|
|
model.addAttribute("labelId", id);
|
|
@@ -67,6 +71,8 @@ public class ArticleController extends BaseController {
|
|
|
@GetMapping("/info/search-{pageNum}.html")
|
|
|
public String toArticleSearch(@PathVariable("pageNum") Integer pageNum, final Model model) {
|
|
|
List<BaseLink> typeList = articleService.getArticleTypes();
|
|
|
+ List<BaseLink> data = articleService.getArticleLabels().getData();
|
|
|
+ model.addAttribute("labels",data);
|
|
|
model.addAttribute("articleType", typeList);
|
|
|
model.addAttribute("typeId", 0);
|
|
|
model.addAttribute("labelId", 0);
|