package com.yc.crm.mail.service; import com.yc.crm.mail.entity.T482102Entity; import com.yc.crm.mail.entity.t482101HEntity; import com.yc.entity.attachment.AttachmentEntity; import javax.mail.MessagingException; import javax.servlet.http.HttpServletRequest; import java.io.IOException; import java.util.List; /** * @BelongsProject: eCoWorksV3 * @BelongsPackage: com.yc.crm.mail.service * @author: xinyb * @CreateTime: 2024-08-06 09:52 * @Description: */ public interface MailIfc { /** * 未读邮件保存(保存草稿箱) * * @param mail */ t482101HEntity saveReceivingMail(t482101HEntity mail); /** * 批量获取保存 * * @param mail */ void saveReceivingMailList(List mail); /** * 更新收件内容 * * @param mail * @return */ Integer updateReceivingMail(t482101HEntity mail); /** * 删除邮件(系统内删除) * @param docCode * @return */ Integer deleteReceivingMail(String userCode,String docCode); /** * 删除邮件(根据messageId删除) * @param messagesId * @return */ Integer deleteReceivingMail(String messageId); /** * 获取邮件的详情内容 * @param email * @param docCode * @return */ t482101HEntity getReceivingMailInfo(String email, String docCode); /** * 获取邮件不同类型列表 * @param email * @param mailType * @param isRead 是否已读 * @return */ List getReceivingMailList(String email,Integer mailType,boolean isNoRead); /** * 获取邮箱的收件信息 * * @param emailEntity * @return */ abstract List getMailReceiving(T482102Entity emailEntity, HttpServletRequest request) throws MessagingException; /** * 发送邮件 * @param t482101H 邮件信息 * @param request * @throws MessagingException * @throws IOException */ abstract void sendingMail(t482101HEntity t482101H, HttpServletRequest request) throws Exception; /** * 更新草稿箱 * @param docCode * @return */ Integer updateMailDrafts(t482101HEntity mail); /** * 删除草稿箱 * @param docCode * @return */ Integer deleteMailDrafts(String docCode); /** * 邮件附件的调用处理 * @param unid * @return */ abstract List getAttachmentEntityList(String unIdSeq); /** * 获取收件邮箱已经存在的MessageId集合 * @param receiver * @return */ abstract List getMessageIdList(String receiver); }