标签组Controller小问题修改
This commit is contained in:
@@ -30,15 +30,12 @@ public class LabelGroupController {
|
|||||||
@Autowired
|
@Autowired
|
||||||
private LabelGroupService labelGroupService;
|
private LabelGroupService labelGroupService;
|
||||||
|
|
||||||
public LabelGroupController() {
|
|
||||||
}
|
|
||||||
|
|
||||||
@ApiOperation("标签组分页查询")
|
@ApiOperation("标签组分页查询")
|
||||||
@PostMapping({"/list"})
|
@PostMapping({"/list"})
|
||||||
public ResponseResult<PageInfo<LabelGroupListVo>> getLabelGroupList(@RequestBody LabelGroupListDTO dto) {
|
public ResponseResult<PageInfo<LabelGroupListVo>> getLabelGroupList(@RequestBody LabelGroupListDTO dto) {
|
||||||
PageHelper.startPage(dto.getPageNum(), dto.getPageSize());
|
PageHelper.startPage(dto.getPageNum(), dto.getPageSize());
|
||||||
List<LabelGroupListVo> result = this.labelGroupService.getLabelGroupList(dto);
|
List<LabelGroupListVo> result = this.labelGroupService.getLabelGroupList(dto);
|
||||||
return ResponseResult.success(new PageInfo(result));
|
return ResponseResult.success(new PageInfo<>(result));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("新增标签组")
|
@ApiOperation("新增标签组")
|
||||||
|
|||||||
Reference in New Issue
Block a user