yonge 5 years ago
parent
commit
25e79737c3

+ 5 - 0
cms/src/main/java/com/ym/mec/cms/controller/HelpCenterCatalogController.java

@@ -3,6 +3,7 @@ package com.ym.mec.cms.controller;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiImplicitParam;
 import io.swagger.annotations.ApiImplicitParams;
+import io.swagger.annotations.ApiOperation;
 
 import java.util.Date;
 import java.util.List;
@@ -31,6 +32,7 @@ public class HelpCenterCatalogController extends BaseController {
 	@Autowired
 	private HelpCenterContentService helpCenterContentService;
 
+	@ApiOperation("分类列表分页查询")
 	@GetMapping(value = "list")
 	@ApiImplicitParams({ @ApiImplicitParam(name = "parentId", value = "父分类编号(可为空)", 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);
 	}
 
+	@ApiOperation("分类详情查询")
 	@GetMapping(value = "get")
 	@ApiImplicitParam(name = "id", value = "分类编号", required = true, dataType = "Integer", paramType = "path")
 	public Object findHelpCatalogById(Integer id) {
@@ -47,6 +50,7 @@ public class HelpCenterCatalogController extends BaseController {
 		return succeed(helpCenterCatalogService.get(id));
 	}
 
+	@ApiOperation("修改分类")
 	@PostMapping(value = "modify", consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
 	public Object modifyHelpCatalog(HelpCenterCatalog helpCatalog) {
 		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)
 	@ApiImplicitParam(name = "id", value = "分类编号", required = true, dataType = "Integer", paramType = "path")
 	public Object delHelpCatalog(Integer id) {

+ 5 - 0
cms/src/main/java/com/ym/mec/cms/controller/HelpCenterContentControlller.java

@@ -2,6 +2,7 @@ package com.ym.mec.cms.controller;
 
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiImplicitParam;
+import io.swagger.annotations.ApiOperation;
 
 import java.util.Date;
 
@@ -31,6 +32,7 @@ public class HelpCenterContentControlller extends BaseController {
 	@Autowired
 	private HelpCenterCatalogService helpCenterCatalogService;
 
+	@ApiOperation("帮助中心内容列表分页查询")
 	@GetMapping(value = "list")
 	public Object findHelpContentByCondition(HelpCenterContentQueryInfo queryInfo) {
 
@@ -40,6 +42,7 @@ public class HelpCenterContentControlller extends BaseController {
 		return succeed(data);
 	}
 
+	@ApiOperation("帮助中心内容明细查询")
 	@GetMapping(value = "get")
 	@ApiImplicitParam(name = "id", value = "编号", required = true, dataType = "Integer", paramType = "path")
 	public Object findHelpContentByKey(Integer id) {
@@ -49,6 +52,7 @@ public class HelpCenterContentControlller extends BaseController {
 		return succeed(helpCenterContentService.get(id));
 	}
 
+	@ApiOperation("修改帮助中心内容")
 	@PostMapping(value = "modify", consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
 	public Object modifyHelpContent(HelpCenterContent helpContent) {
 		if (helpContent == null) {
@@ -73,6 +77,7 @@ public class HelpCenterContentControlller extends BaseController {
 		}
 	}
 
+	@ApiOperation("删除帮助中心内容")
 	@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")
 	public Object delHelpContent(Integer id) {