| | |
| | | */ |
| | | package org.springblade.modules.label.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | | import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
| | | import lombok.AllArgsConstructor; |
| | | import javax.validation.Valid; |
| | | |
| | | import org.springblade.core.secure.BladeUser; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import org.springblade.modules.label.entity.LabelEntity; |
| | | import org.springblade.modules.label.service.ILabelService; |
| | | import org.springblade.modules.label.vo.LabelVO; |
| | | import org.springblade.modules.label.wrapper.LabelWrapper; |
| | | import org.springblade.modules.label.service.ILabelService; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.validation.Valid; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 标签管理 控制器 |
| | |
| | | LabelEntity detail = labelService.getOne(Condition.getQueryWrapper(label)); |
| | | return R.data(LabelWrapper.build().entityVO(detail)); |
| | | } |
| | | |
| | | /** |
| | | * 标签管理 分页 |
| | | */ |
| | |
| | | } |
| | | |
| | | /** |
| | | * 标签管理 分页 |
| | | */ |
| | | @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("/page") |