package cn.reghao.oss.console.sys.db.repository;

import cn.reghao.oss.console.sys.model.po.SysMessage;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @author reghao
 * @date 2024-02-05 09:29:02
 */
public interface SysMessageRepository extends JpaRepository<SysMessage, Integer> {
    Page<SysMessage> findByUnreadIsTrue(Pageable pageable);
    int countByUnread(boolean unread);
}
