| | |
| | | package com.ruoyi.article.controller.management; |
| | | |
| | | |
| | | import com.ruoyi.article.controller.management.dto.MgtSensitiveWordsDTO; |
| | | import com.ruoyi.article.controller.management.dto.MgtSensitiveWordsQuery; |
| | | import com.ruoyi.article.controller.management.vo.MgtSensitiveWordsVO; |
| | | import com.ruoyi.article.service.ISensitiveWordsService; |
| | |
| | | return R.ok(sensitiveWordsService.getSensitiveWordsPage(query)); |
| | | } |
| | | |
| | | /** |
| | | * 添加敏感词 |
| | | * |
| | | * @param dto 敏感词数据传输对象 |
| | | */ |
| | | @ApiOperation("添加敏感词") |
| | | @PostMapping("/save") |
| | | public R<?> saveSensitiveWords(@Validated @RequestBody MgtSensitiveWordsDTO dto) { |
| | | sensitiveWordsService.saveSensitiveWords(dto); |
| | | return R.ok(); |
| | | } |
| | | } |