package com.terra.system.mapper.sys;
|
|
import com.terra.system.entity.sys.MenuEntity;
|
import org.apache.ibatis.annotations.Mapper;
|
import org.springframework.stereotype.Repository;
|
|
import java.util.List;
|
|
/**
|
* 菜单
|
* @author sws
|
* @date 2022.09.24
|
*/
|
@Mapper
|
@Repository
|
public interface MenuMapper {
|
/**
|
* 插入一条
|
* @param menuEntity
|
* @return
|
*/
|
public Integer insertMenu(MenuEntity menuEntity);
|
|
/**
|
* 插入多条
|
* @param list
|
* @return
|
*/
|
public Integer insertMenus(List<MenuEntity> list);
|
/**
|
* 删除一条
|
* @param id
|
* @return
|
*/
|
public Integer deleteMenu(int id);
|
|
/**
|
* 删除多条
|
* @param ids
|
* @return
|
*/
|
public Integer deleteMenus(List<Integer> ids);
|
|
/**
|
* 更新一条
|
* @param menuEntity
|
* @return
|
*/
|
public Integer updateMenu(MenuEntity menuEntity);
|
|
/**
|
* 查询单条数据
|
* @param id
|
* @return
|
*/
|
public MenuEntity selectMenu(int id);
|
|
/**
|
* 查询所有
|
* @return
|
*/
|
public List<MenuEntity> selectMenuAll();
|
|
/**
|
* 更新多条
|
* @param list
|
* @return
|
*/
|
public Integer updateMenus(List<MenuEntity> list);
|
|
/**
|
* 递归查询
|
* @param name
|
* @return
|
*/
|
public List<MenuEntity> selectMenuRecursive(String name);
|
}
|