1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
@RestController @RequestMapping("/comments") @Api(tags = "评论管理", description = "评论管理相关接口") public class CommentController { @Autowired private AdminCommentService adminCommentService;
@GetMapping @SystemLog(businessName = "分页查询评论列表") @ApiOperation(value = "评论列表", notes = "分页查询评论列表", response = PageVo.class) @ApiImplicitParams({ @ApiImplicitParam(name = "pageNum", value = "页号", dataType = "int", paramType = "query"), @ApiImplicitParam(name = "pageSize", value = "每页数量", dataType = "int", paramType = "query"), @ApiImplicitParam(name = "keywords", value = "搜索关键字", dataType = "string", paramType = "query"), @ApiImplicitParam(name = "type", value = "评论类型", dataType = "string", paramType = "query"), @ApiImplicitParam(name = "status", value = "审核状态", dataType = "string", paramType = "query"), @ApiImplicitParam(name = "articleId", value = "文章ID", dataType = "string", paramType = "query"), @ApiImplicitParam(name = "startTime", value = "开始时间", dataType = "string", paramType = "query"), @ApiImplicitParam(name = "endTime", value = "结束时间", dataType = "string", paramType = "query") }) public ResponseResult getCommentList(Integer pageNum, Integer pageSize, @Valid CommentListDto commentListDto) { return adminCommentService.getCommentList(pageNum, pageSize, commentListDto); } }
|