|
@@ -20,6 +20,7 @@ import com.ym.mec.cms.service.HelpCenterCatalogService;
|
|
|
import com.ym.mec.cms.service.HelpCenterContentService;
|
|
|
import com.ym.mec.common.controller.BaseController;
|
|
|
import com.ym.mec.common.page.PageInfo;
|
|
|
+import com.yonge.log.model.AuditLogAnnotation;
|
|
|
|
|
|
@RestController
|
|
|
@RequestMapping("helpCenterContent")
|
|
@@ -54,6 +55,7 @@ public class HelpCenterContentControlller extends BaseController {
|
|
|
|
|
|
@ApiOperation("修改帮助中心内容")
|
|
|
@PostMapping(value = "modify", consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
|
|
|
+ @AuditLogAnnotation(operateName = "帮助中心内容修改",interfaceURL = "helpCenterContent/modify")
|
|
|
public Object modifyHelpContent(HelpCenterContent helpContent) {
|
|
|
if (helpContent == null) {
|
|
|
return failed("参数输入有误");
|
|
@@ -80,6 +82,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")
|
|
|
+ @AuditLogAnnotation(operateName = "帮助中心内容删除",interfaceURL = "helpCenterContent/delete")
|
|
|
public Object delHelpContent(Integer id) {
|
|
|
if (id == null || id <= 0)
|
|
|
return failed("ID解析失败");
|