| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.validation.Valid; |
| | | |
| | | @RestController |
| | |
| | | return iArticleService.updateStatusOff(id); |
| | | } |
| | | |
| | | @ApiOperation(value = "设置热门文章", notes = "设置热门文章") |
| | | @PostMapping(value = "/updateIstop") |
| | | public Result updateIstop(@RequestBody @Valid AdminUpdateStatusOnDto adminUpdateStatusOnDto) { |
| | | Long id = adminUpdateStatusOnDto.getId(); |
| | | return iArticleService.updateIstop(id); |
| | | } |
| | | |
| | | @ApiOperation(value = "取消设置热门文章", notes = "取消设置热门文章") |
| | | @PostMapping(value = "/updateIstopOff") |
| | | public Result updateIstopOff(@RequestBody @Valid AdminUpdateStatusOnDto adminUpdateStatusOnDto) { |
| | | Long id = adminUpdateStatusOnDto.getId(); |
| | | return iArticleService.updateIstopOff(id); |
| | | } |
| | | |
| | | @ApiOperation(value = "删除文章", notes = "删除文章") |
| | | @PostMapping(value = "/delObjs") |
| | | public Result delObjs(@RequestBody @Valid AdminDeleteDto adminDeleteDto) { |
| | | return iArticleService.delObjs(adminDeleteDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "网站文章分页列表查询", notes = "网站文章分页列表查询") |
| | | @PostMapping(value = "/webArticleInPage") |
| | | public Result webArticleInPage(HttpServletRequest request, @RequestBody @Valid WebArticleInPageDto webArticleInPageDto) { |
| | | return iArticleService.webArticleInPage(request,webArticleInPageDto); |
| | | } |
| | | } |