|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
package com.jingcheng.cms.controller;
|
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
|
import com.jingcheng.cms.model.Category;
|
|
|
|
|
import com.jingcheng.cms.service.ArticleSerive;
|
|
|
|
|
import com.jingcheng.cms.util.AjaxResult;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
@ -53,7 +54,7 @@ public class ArticleController {
|
|
|
|
|
@RequestMapping("/article-first-category")
|
|
|
|
|
public AjaxResult getFirstCategory() {
|
|
|
|
|
AjaxResult ajaxResult = new AjaxResult();
|
|
|
|
|
List<String> articleSeriveFirstCategory= articleSerive.getFirstCategory();
|
|
|
|
|
List<Category> articleSeriveFirstCategory= articleSerive.getFirstCategory();
|
|
|
|
|
ajaxResult.setData(articleSeriveFirstCategory);
|
|
|
|
|
return ajaxResult;
|
|
|
|
|
}
|
|
|
|
@ -65,7 +66,7 @@ public class ArticleController {
|
|
|
|
|
@RequestMapping("/article-second-category")
|
|
|
|
|
public AjaxResult getSecondCategory(@RequestBody JSONObject jsonObject) {
|
|
|
|
|
AjaxResult ajaxResult = new AjaxResult();
|
|
|
|
|
List<String> articleSeriveFirstCategory= articleSerive.getSecondCategory(jsonObject);
|
|
|
|
|
List<Category> articleSeriveFirstCategory= articleSerive.getSecondCategory(jsonObject);
|
|
|
|
|
ajaxResult.setData(articleSeriveFirstCategory);
|
|
|
|
|
return ajaxResult;
|
|
|
|
|
}
|
|
|
|
|