| | |
| | | package com.ruoyi.article.controller; |
| | | |
| | | |
| | | import com.ruoyi.article.domain.pojo.Article; |
| | | import com.ruoyi.article.domain.pojo.SensitiveWords; |
| | | import com.ruoyi.article.dto.ArticleDTO; |
| | | import com.ruoyi.article.service.ISensitiveWordsService; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.core.utils.page.PageDTO; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | |
| | | import org.springframework.web.bind.annotation.ResponseBody; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | @RequestMapping("/sensitive-words") |
| | | public class SensitiveWordsController { |
| | | |
| | | @Resource |
| | | private ISensitiveWordsService SensitiveWordsService; |
| | | |
| | | @PostMapping("/getSensitiveWordsList") |
| | | @ResponseBody |
| | | @ApiOperation(value = "获取敏感词") |
| | | public R<List<SensitiveWords>> getMemberArticleList() { |
| | | return R.ok(SensitiveWordsService.getMemberArticleList()); |
| | | } |
| | | |
| | | } |