package com.lf.server.mapper.sys;
|
|
import com.lf.server.entity.sys.MenusEntity;
|
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 MenusMapper {
|
/**
|
* 添加数据
|
* @param menusEntity
|
* @return
|
*/
|
public Integer insertMenu(MenusEntity menusEntity);
|
|
/**
|
* 批量添加
|
* @param menusEntity
|
* @return
|
*/
|
public Integer insertMenus(List<MenusEntity> menusEntity);
|
/**
|
* 刪除数据
|
* @param id
|
* @return
|
*/
|
public Integer deleteMenu(int id);
|
|
/**
|
* 批量删除
|
* @param ids
|
* @return
|
*/
|
public Integer deleteMenus(List<Integer> ids);
|
|
/**
|
* 修改数据
|
* @param menusEntity
|
* @return
|
*/
|
public Integer updateMenu(MenusEntity menusEntity);
|
|
/**
|
* 查询单条数据
|
* @param id
|
* @return
|
*/
|
public MenusEntity selectMenu(int id);
|
|
/**
|
* 查询全部数据
|
* @return
|
*/
|
public List<MenusEntity> selectMenuAll();
|
}
|