| | |
| | | } |
| | | } |
| | | |
| | | @GetMapping("/category") |
| | | public ResponseVO<Object> listPosition() { |
| | | List<BannerPositionDto> bannerPositionDtos = contentBannerService.listPosition(); |
| | | return ResponseUtil.success(bannerPositionDtos); |
| | | } |
| | | // @GetMapping("/category") |
| | | // public ResponseVO<Object> listPosition() { |
| | | // List<BannerPositionDto> bannerPositionDtos = contentBannerService.listPosition(); |
| | | // return ResponseUtil.success(bannerPositionDtos); |
| | | // } |
| | | |
| | | @PostMapping("{bannerId}") |
| | | @PostMapping("/{bannerId}") |
| | | public ResponseVO<Object> updateBanner(@PathVariable Long bannerId, @Validated @RequestBody BannerParam bannerParam) { |
| | | boolean result = contentBannerService.updateBanner(bannerId,bannerParam); |
| | | if (result) { |
| | |
| | | } |
| | | } |
| | | |
| | | @GetMapping("{bannerId}") |
| | | @GetMapping("/{bannerId}") |
| | | public ResponseVO<Object> detailBanner(@PathVariable Long bannerId) { |
| | | BannerDto result = contentBannerService.detailBanner(bannerId); |
| | | return ResponseUtil.success(result); |