| | |
| | | package com.ruoyi.article.controller.management; |
| | | |
| | | |
| | | import com.ruoyi.article.controller.management.dto.MgtSensitiveWordsQuery; |
| | | import com.ruoyi.article.controller.management.vo.MgtSensitiveWordsVO; |
| | | 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.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | |
| | | * @since 2024-05-16 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/sensitive-words") |
| | | @RequestMapping("/mgt/sensitive-words") |
| | | @RequiredArgsConstructor |
| | | @Api(value = "管理后台-敏感词管理相关接口", tags = "管理后台-敏感词管理相关接口") |
| | | public class MgtSensitiveWordsController { |
| | | |
| | | private final ISensitiveWordsService sensitiveWordsService; |
| | | |
| | | /** |
| | | * 获取敏感词列表的分页数据 |
| | | * |
| | | * @param query 管理后台-敏感词查询对象 |
| | | * @return PageDTO<MgtSensitiveWordsVO> |
| | | */ |
| | | @ApiOperation("获取敏感词列表的分页数据") |
| | | @PostMapping("/page") |
| | | public R<PageDTO<MgtSensitiveWordsVO>> getSensitiveWordsPage( |
| | | @Validated @RequestBody MgtSensitiveWordsQuery query) { |
| | | return R.ok(sensitiveWordsService.getSensitiveWordsPage(query)); |
| | | } |
| | | |
| | | } |