package com.storlead.sales.mail.service;

import com.storlead.sales.mail.entity.MailAttachmentEntity;
import com.storlead.sales.mail.entity.MailTempAttachmentEntity;
import com.storlead.framework.mybatis.service.MyBaseService;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;

/**
 * <p>
 * 临时邮件附件表 服务类
 * </p>
 *
 * @author chenkq
 * @since 2024-08-09
 */
public interface MailTempAttachmentService extends MyBaseService<MailTempAttachmentEntity> {

    MailTempAttachmentEntity saveAttachmentToDatabase(File file, String code, Long mailId);

    Long saveTempAttachment(MultipartFile file, String downloadDir, Long mailId);

    MailTempAttachmentEntity saveTempImageAttachment(MultipartFile file, String downloadDir);

//    Long saveAttachmentToDatabase(File file, String code, Long mailId);

}
