package com.yc.crm.mail.service; import com.yc.crm.mail.entity.MailFileEntity; import com.yc.crm.mail.entity.MailModuleEntity; import com.yc.crm.mail.entity.t482101HEntity; import com.yc.crm.mail.entity.t482101HList; import com.yc.entity.attachment.AttachmentEntity; 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); /** * 修改deleteFlag * * @param userCode * @param docCode * @return */ Integer updateDeleteFlag(String userCode, String docCode); /** * 删除邮件 * * @param docCode * @return */ Integer deleteEmail(String userCode, String docCode); /** * 删除邮件(根据messageId) * * @param messagesId * @return */ Integer deleteEmail(String messageId); /** * 获取邮件的详情内容 * * @param email * @param docCode * @return */ t482101HEntity getReceivingMailInfo(String docCode); /** * 获取邮件不同类型列表 * * @param email * @param mailType * @param isRead 是否已读 * @return */ List getReceivingMailList(String email, Integer mailType, boolean isNoRead, String userCode); /** * 获取待处理邮件列表 * @param email * @return */ List getHandleMailList(String email,String userCode); /** * 获取用户的全部邮件 * * @param userCode * @return */ List getUserMailList(String userCode); /** * 更新草稿箱 * * @param docCode * @return */ Integer updateMailDrafts(t482101HEntity mail); /** * 删除草稿箱 * @param docCode * @return */ // Integer deleteMailDrafts(String userCode,String docCode); /** * 附件保存 * * @param unIdFile */ abstract void saveAttachment(List mailFile); /** * 邮件附件的调用处理 * * @param unid * @return */ abstract List getAttachmentEntityList(String unIdSeq); /** * 删除附件 * * @param unId * @return */ abstract Integer deleteAttachment(List unId); /** * 获取收件邮箱已经存在的MessageId集合 * * @param receiver * @return */ abstract List getMessageIdList(String receiver); /** * 更新为已读 * * @param docCode */ abstract void updateRead(String docCode,boolean status); /** * 绑定账号的邮箱模块 * * @param userCode * @return */ abstract List getMailModuleList(String userCode); /** * 待处理邮件 * @param handleTime * @param docCode */ abstract void updateMailHandle(String handleTime,String docCode); }