|
@@ -3,6 +3,7 @@ package com.ym.mec.cms.controller;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiImplicitParam;
|
|
import io.swagger.annotations.ApiImplicitParam;
|
|
import io.swagger.annotations.ApiImplicitParams;
|
|
import io.swagger.annotations.ApiImplicitParams;
|
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
|
|
|
import java.util.Date;
|
|
import java.util.Date;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
@@ -31,6 +32,7 @@ public class HelpCenterCatalogController extends BaseController {
|
|
@Autowired
|
|
@Autowired
|
|
private HelpCenterContentService helpCenterContentService;
|
|
private HelpCenterContentService helpCenterContentService;
|
|
|
|
|
|
|
|
+ @ApiOperation("分类列表分页查询")
|
|
@GetMapping(value = "list")
|
|
@GetMapping(value = "list")
|
|
@ApiImplicitParams({ @ApiImplicitParam(name = "parentId", value = "父分类编号(可为空)", required = true, dataType = "Integer"),
|
|
@ApiImplicitParams({ @ApiImplicitParam(name = "parentId", value = "父分类编号(可为空)", required = true, dataType = "Integer"),
|
|
@ApiImplicitParam(name = "status", value = "状态(1,显示 0,隐藏;可为空)", required = true, dataType = "Integer") })
|
|
@ApiImplicitParam(name = "status", value = "状态(1,显示 0,隐藏;可为空)", required = true, dataType = "Integer") })
|
|
@@ -39,6 +41,7 @@ public class HelpCenterCatalogController extends BaseController {
|
|
return succeed(dataList);
|
|
return succeed(dataList);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @ApiOperation("分类详情查询")
|
|
@GetMapping(value = "get")
|
|
@GetMapping(value = "get")
|
|
@ApiImplicitParam(name = "id", value = "分类编号", required = true, dataType = "Integer", paramType = "path")
|
|
@ApiImplicitParam(name = "id", value = "分类编号", required = true, dataType = "Integer", paramType = "path")
|
|
public Object findHelpCatalogById(Integer id) {
|
|
public Object findHelpCatalogById(Integer id) {
|
|
@@ -47,6 +50,7 @@ public class HelpCenterCatalogController extends BaseController {
|
|
return succeed(helpCenterCatalogService.get(id));
|
|
return succeed(helpCenterCatalogService.get(id));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @ApiOperation("修改分类")
|
|
@PostMapping(value = "modify", consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
|
|
@PostMapping(value = "modify", consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
|
|
public Object modifyHelpCatalog(HelpCenterCatalog helpCatalog) {
|
|
public Object modifyHelpCatalog(HelpCenterCatalog helpCatalog) {
|
|
if (helpCatalog == null)
|
|
if (helpCatalog == null)
|
|
@@ -63,6 +67,7 @@ public class HelpCenterCatalogController extends BaseController {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @ApiOperation("删除分类")
|
|
@PostMapping(value = "delete", consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
|
|
@PostMapping(value = "delete", consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
|
|
@ApiImplicitParam(name = "id", value = "分类编号", required = true, dataType = "Integer", paramType = "path")
|
|
@ApiImplicitParam(name = "id", value = "分类编号", required = true, dataType = "Integer", paramType = "path")
|
|
public Object delHelpCatalog(Integer id) {
|
|
public Object delHelpCatalog(Integer id) {
|