| | |
| | | @Api(value = "图库管理", tags = {"图库管理"}) |
| | | @ApiResource({"blade-system/gallery"}) |
| | | @RestController |
| | | /* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/system/controller/GalleryController.class */ |
| | | public class GalleryController extends BladeController { |
| | | private IGalleryService galleryService; |
| | | private IGalleryItemService galleryItemService; |
| | |
| | | List<GalleryTreeVO> treeVOS = GalleryConvert.INSTANCE.convertTree(list); |
| | | for (GalleryTreeVO tree : treeVOS) { |
| | | List<GalleryItem> items = this.galleryItemService.list(Lambda.eq(GalleryItem::getGalleryId, tree.getId()).limit(count).orderByDesc(GalleryItem::getId)); |
| | | /* |
| | | List<GalleryItem> items = this.galleryItemService.list((Wrapper) Lambda.eq((v0) -> { |
| | | return v0.getGalleryId(); |
| | | }, tree.getId()).limit(count).orderByDesc((v0) -> { |
| | | return v0.getId(); |
| | | }));*/ |
| | | |
| | | tree.setChildren(GalleryItemConvert.INSTANCE.convert(items)); |
| | | } |
| | | return R.data(treeVOS); |
| | |
| | | @ApiOperationSupport(order = 6) |
| | | @DeleteResource({"/remove"}) |
| | | @ApiOperation(value = "图库删除", notes = "传入ids") |
| | | public R remove(@ApiParam(value = "主键", required = true) @RequestBody List<String> ids) { |
| | | public R<Void> remove(@ApiParam(value = "主键", required = true) @RequestBody List<String> ids) { |
| | | if (ids.isEmpty()) { |
| | | return R.status(false); |
| | | } |