package com.ga.common.notification;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface NotificationMapper {
    int insert(NotificationVO vo);
    int insertBatch(@Param("list") List<NotificationVO> list);
    List<NotificationVO> selectByUser(@Param("userId") Long userId);
    int countUnread(@Param("userId") Long userId);
    int markRead(@Param("notiId") Long notiId, @Param("userId") Long userId);
    int markAllRead(@Param("userId") Long userId);
    int deleteOld(@Param("days") int days);
}
