|
@ -146,6 +146,7 @@ public class EpdcAppNewsController { |
|
|
*/ |
|
|
*/ |
|
|
@GetMapping("listBannerByCategory") |
|
|
@GetMapping("listBannerByCategory") |
|
|
public Result<List<EpdcBannerListResultDTO>> listBannerByCategory(@RequestBody EpdcBannerListByCategoryFromDTO fromDTO) { |
|
|
public Result<List<EpdcBannerListResultDTO>> listBannerByCategory(@RequestBody EpdcBannerListByCategoryFromDTO fromDTO) { |
|
|
|
|
|
ValidatorUtils.validateEntity(fromDTO); |
|
|
List<EpdcBannerListResultDTO> bannerList = bannerService.listBannerByCategory(fromDTO); |
|
|
List<EpdcBannerListResultDTO> bannerList = bannerService.listBannerByCategory(fromDTO); |
|
|
return new Result().ok(bannerList); |
|
|
return new Result().ok(bannerList); |
|
|
} |
|
|
} |
|
|