| package com.doumee.biz.system; | 
|   | 
| import com.doumee.dao.common.dto.UpdateSortDTO; | 
| import com.doumee.dao.system.model.SystemMenu; | 
| import com.doumee.dao.system.vo.SystemMenuListVO; | 
| import com.doumee.dao.system.vo.SystemMenuNodeVO; | 
|   | 
| import java.util.List; | 
|   | 
| /** | 
|  * 系统菜单业务处理 | 
|  * @author  dm | 
|  * @since 2025/03/31 16:44 | 
|  */ | 
| public interface SystemMenuBiz { | 
|   | 
|     /** | 
|      * 创建 | 
|      * | 
|      * @param systemMenu 菜单 | 
|      * @return Integer | 
|      */ | 
|     Integer create(SystemMenu systemMenu); | 
|   | 
|     /** | 
|      * 编辑 | 
|      * | 
|      * @param systemMenu 菜单 | 
|      */ | 
|     void updateById(SystemMenu systemMenu); | 
|   | 
|     /** | 
|      * 菜单排序 | 
|      * | 
|      * @param dto 详见UpdateSortDTO | 
|      */ | 
|     void updateSort(UpdateSortDTO dto); | 
|   | 
|     /** | 
|      * 根据用户ID查询菜单树 | 
|      * | 
|      * @param userId 用户ID | 
|      * @return List<SystemMenuNodeVO> | 
|      */ | 
|     List<SystemMenuNodeVO> findTree(Integer userId); | 
|   | 
|     /** | 
|      * 查询菜单树 | 
|      * | 
|      * @return List<SystemMenuListVO> | 
|      */ | 
|     List<SystemMenuListVO> findTree(); | 
|   | 
|     /** | 
|      * 删除 | 
|      * | 
|      * @param id 菜单ID | 
|      */ | 
|     void deleteById(Integer id); | 
|   | 
|     /** | 
|      * 批量删除 | 
|      * | 
|      * @param ids 菜单ID列表 | 
|      */ | 
|     void deleteByIdInBatch(List<Integer> ids); | 
| } |