| | |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springblade.common.node.TreeIntegerNode; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.tool.api.R; |
| | |
| | | return R.data(LabelWrapper.build().pageVO(pages)); |
| | | } |
| | | |
| | | /** |
| | | * 标签管理 分页 |
| | | */ |
| | | @GetMapping("/tree") |
| | | @ApiOperationSupport(order = 2) |
| | | @ApiOperation(value = "分页", notes = "传入label") |
| | | public R<List<LabelVO>> tree(LabelEntity label) { |
| | | List<LabelVO> pages = labelService.tree(label); |
| | | return R.data( pages); |
| | | } |
| | | |
| | | /** |
| | | * 标签管理 自定义分页 |
| | |
| | | } |
| | | |
| | | /** |
| | | * 标签管理 分页 |
| | | */ |
| | | @GetMapping("/tree") |
| | | @ApiOperationSupport(order = 2) |
| | | @ApiOperation(value = "树形接口", notes = "传入label") |
| | | public R<List<TreeIntegerNode>> tree(LabelVO label) { |
| | | List<TreeIntegerNode> pages = labelService.tree(label); |
| | | return R.data( pages); |
| | | } |
| | | |
| | | /** |
| | | * 标签管理 新增 |
| | | */ |
| | | @PostMapping("/save") |