对比新文件 |
| | |
| | | package com.lf.server.service.sys; |
| | | |
| | | import com.lf.server.entity.data.DirEntity; |
| | | import com.lf.server.entity.sys.MenuEntity; |
| | | import com.lf.server.mapper.sys.MenuMapper; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 鑿滃崟 |
| | | * @author sws |
| | | * @date 2022-09-24 |
| | | */ |
| | | @Service |
| | | public class MenuService implements MenuMapper { |
| | | @Autowired |
| | | MenuMapper menuMapper; |
| | | |
| | | @Override |
| | | public Integer insertMenu(MenuEntity menuEntity) { |
| | | return menuMapper.insertMenu(menuEntity); |
| | | } |
| | | |
| | | @Override |
| | | public Integer insertMenus(List<MenuEntity> menuEntity) { |
| | | return menuMapper.insertMenus(menuEntity); |
| | | } |
| | | |
| | | @Override |
| | | public Integer deleteMenu(int id) { |
| | | return menuMapper.deleteMenu(id); |
| | | } |
| | | |
| | | @Override |
| | | public Integer deleteMenus(List<Integer> ids) { |
| | | return menuMapper.deleteMenus(ids); |
| | | } |
| | | |
| | | @Override |
| | | public Integer updateMenu(MenuEntity menuEntity) { |
| | | return menuMapper.updateMenu(menuEntity); |
| | | } |
| | | |
| | | @Override |
| | | public Integer updateMenus(List<MenuEntity> menuEntity) { |
| | | return menuMapper.updateMenus(menuEntity); |
| | | } |
| | | |
| | | @Override |
| | | public MenuEntity selectMenu(int id) { |
| | | return menuMapper.selectMenu(id); |
| | | } |
| | | |
| | | @Override |
| | | public List<MenuEntity> selectMenuAll() { |
| | | return menuMapper.selectMenuAll(); |
| | | } |
| | | |
| | | @Override |
| | | public List<DirEntity> selectMenuRecursive(String name) { |
| | | return menuMapper.selectMenuRecursive(name); |
| | | } |
| | | } |