标签组列表排序
This commit is contained in:
@@ -7,7 +7,7 @@ import com.cool.store.dto.label.LabelUpdateDTO;
|
||||
import com.cool.store.exception.ApiException;
|
||||
import com.cool.store.response.ResponseResult;
|
||||
import com.cool.store.service.LabelService;
|
||||
import com.cool.store.vo.LabelGroupListVo;
|
||||
import com.cool.store.vo.LabelGroupVO;
|
||||
import com.cool.store.vo.LabelListVo;
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
@@ -40,8 +40,8 @@ public class LabelController {
|
||||
|
||||
@ApiOperation("查询标签组及子标签列表")
|
||||
@GetMapping("/labelGroupAndLabelList")
|
||||
public ResponseResult<List<LabelGroupListVo>> getAllLabelList() {
|
||||
List<LabelGroupListVo> result = labelService.getAllGroupAndLabelList();
|
||||
public ResponseResult<List<LabelGroupVO>> getAllLabelList() {
|
||||
List<LabelGroupVO> result = labelService.getAllGroupAndLabelList();
|
||||
return ResponseResult.success(result);
|
||||
}
|
||||
|
||||
|
||||
@@ -65,5 +65,11 @@ public class LabelGroupController {
|
||||
public ResponseResult<List<LabelGroupListVo>> deleteLabelGroup() {
|
||||
return ResponseResult.success(labelGroupService.getAllLabelGroupList());
|
||||
}
|
||||
|
||||
@ApiOperation("获取所有标签组")
|
||||
@PostMapping({"/allListAsc"})
|
||||
public ResponseResult<List<LabelGroupListVo>> getLabelGroupListOrder() {
|
||||
return ResponseResult.success(labelGroupService.getLabelGroupListOrder());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user