package com.lf.server.mapper.sys; import com.lf.server.entity.sys.MsgEntity; import org.apache.ibatis.annotations.Mapper; import org.springframework.stereotype.Repository; import java.util.List; /** * 消息通知 * @author WWW */ @Mapper @Repository public interface MsgMapper { /** * 查询记录数 * * @param title 标题 * @return 记录数 */ public Integer selectCount(String title); /** * 分页查询 * * @param title 标题 * @param limit 记录表 * @param offset 偏移量 * @return 列表 */ public List selectByPage(String title, Integer limit, Integer offset); /** * 查询所有 * * @return */ public List selectAll(); /** * 根据ID查询 * * @param id * @return */ public MsgEntity selectById(int id); /** * 添加数据 * * @param entity * @return */ public Integer insert(MsgEntity entity); /** * 批量添加 * * @param list * @return */ public Integer inserts(List list); /** * 刪除数据 * * @param id * @return */ public Integer delete(int id); /** * 批量删除 * * @param ids * @return */ public Integer deletes(List ids); /** * 修改数据 * * @param entity * @return */ public Integer update(MsgEntity entity); /** * 批量修改 * * @param list * @return */ public Integer updates(List list); }