package com.jwipc.message.mapper;

import com.jwipc.message.entity.MessageAddressee;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jwipc.message.model.po.MessageAddresseePO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 信息收件人表 Mapper 接口
 * </p>
 *
 * @author shenyang.ou
 * @since 2024-07-03
 */
public interface MessageAddresseeMapper extends BaseMapper<MessageAddressee> {

    Long getNewMessageNum(@Param("userId") Long userId);

    List<MessageAddresseePO> getReceived(@Param("userId") Long userId);

    MessageAddresseePO getDataById(@Param("addresseeId") Long addresseeId);
}
