package com.moon.server.service.sys;
|
|
import com.moon.server.entity.sys.MenuEntity;
|
import com.moon.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<MenuEntity> selectMenuRecursive(String name) {
|
return menuMapper.selectMenuRecursive(name);
|
}
|
}
|