管道基础大数据平台系统开发-【后端】-Server
13693261870
2024-03-25 b6b0cb226fcf184525ee7b36af3a09471e9c0057
src/main/java/com/lf/server/mapper/sys/AuthMapper.java
@@ -15,7 +15,7 @@
@ResponseBody
public interface AuthMapper {
    /**
     * 根据表名查询记录数
     * 查询记录数
     *
     * @param name 名称
     * @return 记录数
@@ -23,17 +23,35 @@
    public Integer selectCount(String name);
    /**
     * 根据表名分页查询
     * 分页查询
     *
     * @param name 名称
     * @param limit  记录表
     * @param name   名称
     * @param limit  记录数
     * @param offset 偏移量
     * @return 列表
     */
    public List<AuthEntity> selectByPage(String name, Integer limit, Integer offset);
    /**
     * 添加数据
     * 根据菜单查询记录数
     *
     * @param menuid
     * @return
     */
    public Integer selectCountForMenu(Integer menuid);
    /**
     * 根据菜单分页查询
     *
     * @param menuid
     * @param limit
     * @param offset
     * @return
     */
    public List<AuthEntity> selectByPageForMenu(Integer menuid, Integer limit, Integer offset);
    /**
     * 插入一条
     *
     * @param authEntity
     * @return
@@ -41,15 +59,15 @@
    public Integer insertAuth(AuthEntity authEntity);
    /**
     * 批量添加
     * 插入多条
     *
     * @param authEntity
     * @param list
     * @return
     */
    public Integer insertAuths(List<AuthEntity> authEntity);
    public Integer insertAuths(List<AuthEntity> list);
    /**
     * 刪除数据
     * 删除一条
     *
     * @param id
     * @return
@@ -57,7 +75,7 @@
    public Integer deleteAuth(int id);
    /**
     * 批量删除
     * 删除多条
     *
     * @param ids
     * @return
@@ -65,7 +83,7 @@
    public Integer deleteAuths(List<Integer> ids);
    /**
     * 修改数据
     * 更新一条
     *
     * @param authEntity
     * @return
@@ -81,10 +99,9 @@
    public AuthEntity selectAuth(int id);
    /**
     * 查询全部数据
     * 查询所有
     *
     * @return
     */
    public List<AuthEntity> selectAuthAll();
}