Files
ga-commission-system/ga-common/src/main/java/com/ga/common/notification/NotificationMapper.java
T

21 lines
712 B
Java
Raw Normal View History

package com.ga.common.notification;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 앱 내 알림 DB 매퍼 (MyBatis). deleteOld는 보존기간 지난 알림을 배치로 정리할 때 쓴다.
*/
@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);
}