package com.storlead.sales.mail.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.storlead.sales.mail.entity.MailAttachmentEntity;
import com.storlead.sales.mail.mapper.MailAttachmentMapper;
import com.storlead.sales.mail.service.MailAttachmentService;
import com.storlead.framework.mybatis.service.impl.MyBaseServiceImpl;
import lombok.extern.log4j.Log4j2;
import org.springframework.stereotype.Service;

import javax.mail.BodyPart;
import javax.mail.internet.MimeUtility;
import java.io.File;
import java.io.FileOutputStream;

/**
 * <p>
 * 邮件附件表 服务实现类
 * </p>
 *
 * @author chenkq
 * @since 2024-06-14
 */
@Service
@Log4j2
public class MailAttachmentServiceImpl extends MyBaseServiceImpl<MailAttachmentMapper, MailAttachmentEntity> implements MailAttachmentService {

    @Override
    public IPage<MailAttachmentEntity> pateList(Page<MailAttachmentEntity> page, Wrapper<MailAttachmentEntity> wrapper) {
        return this.baseMapper.pageList(page,wrapper);
    }
}
