package com.ruoyi.web.modules.entry.mapper;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.ruoyi.web.modules.entry.domain.BizMemberMessage;

/**
 * 会员站内消息 Mapper
 */
public interface BizMemberMessageMapper
{
    int insert(BizMemberMessage message);

    int countUnreadByMemberId(@Param("memberId") Long memberId);

    List<BizMemberMessage> selectListByMemberId(@Param("memberId") Long memberId);

    BizMemberMessage selectByIdAndMemberId(@Param("messageId") Long messageId, @Param("memberId") Long memberId);

    int updateReadFlag(@Param("messageId") Long messageId, @Param("memberId") Long memberId,
            @Param("readFlag") String readFlag);
}
