|
@@ -17,10 +17,13 @@ import com.redxun.web.controller.BaseController;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiImplicitParam;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
+import jdk.nashorn.internal.runtime.logging.Logger;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
@Slf4j
|
|
|
@RestController
|
|
|
@RequestMapping("/api-knowledge/knowledge/knowledgeCategory")
|
|
@@ -113,5 +116,14 @@ public class KnowledgeCategoryController extends BaseController<KnowledgeCategor
|
|
|
return jsonResult;
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation("知识分类列表(PC)")
|
|
|
+ @GetMapping("/getAllKnowledgeCategory")
|
|
|
+ public JsonResult getAllKnowledgeCategory(){
|
|
|
+ JsonResult jsonResult = JsonResult.getSuccessResult("获取数据成功");
|
|
|
+ List<KnowledgeCategoryAdminVo> knowledgeCategoryList = knowledgeCategoryService.getAllKnowledgeCategory();
|
|
|
+ jsonResult.setData(knowledgeCategoryList);
|
|
|
+ return jsonResult;
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|