package com.jwipc.message.service.impl;

import com.jwipc.message.entity.MessageAddressee;
import com.jwipc.message.mapper.MessageAddresseeMapper;
import com.jwipc.message.model.po.MessageAddresseePO;
import com.jwipc.message.service.IMessageAddresseeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 信息收件人表 服务实现类
 * </p>
 *
 * @author shenyang.ou
 * @since 2024-07-03
 */
@Service
public class MessageAddresseeServiceImpl extends ServiceImpl<MessageAddresseeMapper, MessageAddressee> implements IMessageAddresseeService {

    @Override
    public Long getNewMessageNum(Long userId) {
        return baseMapper.getNewMessageNum(userId);
    }

    @Override
    public List<MessageAddresseePO> getReceived(Long userId) {
        return baseMapper.getReceived(userId);
    }

    @Override
    public MessageAddresseePO getDataById(Long addresseeId) {
        return baseMapper.getDataById(addresseeId);
    }
}
