package com.lf.server.mapper.sys; import com.lf.server.entity.sys.RoleEntity; import org.apache.ibatis.annotations.Mapper; import org.springframework.web.bind.annotation.ResponseBody; import java.util.List; /** * 角色表 * @author sws * @date 2022-09-29 */ @Mapper @ResponseBody public interface RoleMapper { /** * 根据表名查询记录数 * * @param name 名称 * @return 记录数 */ public Integer selectCount(String name); /** * 根据表名分页查询 * * @param name 名称 * @param depName 名称 * @param limit 记录表 * @param offset 偏移量 * @return 列表 */ public List selectByPage(String name,String depName, Integer limit, Integer offset); /** * 添加数据 * * @param roleEntity * @return */ public Integer insertRole(RoleEntity roleEntity); /** * 批量添加 * * @param roleEntity * @return */ public Integer insertRoles(List roleEntity); /** * 刪除数据 * * @param id * @return */ public Integer deleteRole(int id); /** * 批量删除 * * @param ids * @return */ public Integer deleteRoles(List ids); /** * 修改数据 * * @param roleEntity * @return */ public Integer updateRole(RoleEntity roleEntity); /** * 查询单条数据 * * @param id * @return */ public RoleEntity selectRole(int id); /** * 查询全部数据 * * @return */ public List selectRoleAll(); }