package com.yc.crm.mail.service;
|
|
import com.yc.crm.mail.entity.MailModuleBelowEntity;
|
import com.yc.crm.mail.entity.MailModuleEntity;
|
import com.yc.crm.mail.entity.t482101HEntity;
|
import com.yc.crm.mail.entity.t482101HList;
|
|
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
|
*/
|
String saveReceivingMailList(List<t482101HEntity> 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<t482101HList> getReceivingMailList(String email, Integer mailType, boolean isNoRead, String userCode, Integer page, Integer limit);
|
|
/**
|
* 获取待处理邮件列表
|
*
|
* @param email
|
* @return
|
*/
|
List<t482101HList> getHandleMailList(String email, String userCode, Integer page, Integer limit);
|
|
/**
|
* 获取文件夹邮件列表
|
*
|
* @param email
|
* @return
|
*/
|
List<t482101HList> getFolderMailList(String type, String userCode, Integer page, Integer limit) throws Exception;
|
|
/**
|
* 获取用户的全部邮件
|
*
|
* @param userCode
|
* @return
|
*/
|
List<t482101HList> getUserMailList(String userCode);
|
|
/**
|
* 更新草稿箱
|
*
|
* @param docCode
|
* @return
|
*/
|
Integer updateMailDrafts(t482101HEntity mail);
|
|
/**
|
* 删除草稿箱
|
* @param docCode
|
* @return
|
*/
|
// Integer deleteMailDrafts(String userCode,String docCode);
|
|
/**
|
* 获取收件邮箱已经存在的MessageId集合
|
*
|
* @param receiver
|
* @return
|
*/
|
abstract List<String> getMessageIdList(String receiver);
|
|
/**
|
* 更新为已读
|
*
|
* @param docCode
|
*/
|
abstract void updateRead(String docCode, boolean status);
|
|
/**
|
* 更新移动邮件位置
|
*
|
* @param userCode
|
* @param docCode
|
* @param folderId
|
* @param tagId
|
* @return
|
*/
|
abstract void updateMailType(String docCode, Integer folderId, String tagId);
|
|
/**
|
* 绑定账号的邮箱模块
|
*
|
* @param userCode
|
* @return
|
*/
|
abstract List<MailModuleEntity> getMailModuleList(String userCode);
|
|
abstract List<MailModuleBelowEntity> getMailModuleBelowList(String userCode);
|
|
/**
|
* 待处理邮件
|
*
|
* @param handleTime
|
* @param docCode
|
*/
|
abstract void updateMailHandle(String handleTime, String docCode);
|
|
/**
|
* 查总数
|
* @param email
|
* @param mailType
|
* @param isNoRead
|
* @param id
|
* @param userCode
|
* @return
|
*/
|
abstract Integer getMailTotal(String email, Integer mailType, boolean isNoRead, String id, String userCode);
|
}
|