This commit is contained in:
许允枞 2025-02-28 14:20:32 +08:00
parent 2e2712d59e
commit 8f2f872467
2 changed files with 27 additions and 0 deletions

View File

@ -278,6 +278,15 @@ public class UeditorController {
return AjaxResult.success(categoryService.getLeavesCategoryList());
}
/**
* 获取所有的叶子节点
* @return
*/
@GetMapping("/getLeavesCategoryTree")
public AjaxResult getLeavesCategoryTree(){
return AjaxResult.success(categoryService.getLeavesCategoryTree());
}
/**
* 通用上传请求多个
*/

View File

@ -0,0 +1,18 @@
package com.ruoyi.cms.domain.vo;
import lombok.Data;
import java.util.List;
/**
* @Description: 树性结构返回
* @Author: 86187
* @Date: 2025/02/28 11:16
* @Version: 1.0
*/
@Data
public class TreeVo {
private String label;
private String value;
private List<TreeVo> children;
}