package com.sonic.pigeon.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sonic.pigeon.domain.entity.MessageStat;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface MessageStatDao extends BaseMapper<MessageStat> {

    /**
     * 更新未读消息数
     *
     * @param userId
     * @param unreadNum
     * @param latestContent
     */
    void updateUnread(@Param("userId") Long userId, @Param("unreadNum") int unreadNum, @Param("latestContent") String latestContent);
}