xinyb
2024-09-03 f4c162f2e0a8e54af6ce213cb7d3566731a1820c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
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<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 deleteReceivingMail(String userCode,String docCode);
 
    /**
     * 删除邮件(根据messageId删除)
     * @param messagesId
     * @return
     */
    Integer deleteReceivingMail(String messageId);
 
    /**
     * 获取邮件的详情内容
     * @param email
     * @param docCode
     * @return
     */
    t482101HEntity getReceivingMailInfo(String docCode);
 
    /**
     * 获取邮件不同类型列表
     * @param email
     * @param mailType
     * @param isRead 是否已读
     * @return
     */
    List<t482101HEntity> getReceivingMailList(String email,Integer mailType,boolean isNoRead);
 
 
    /**
     * 获取邮箱的收件信息
     *
     * @param emailEntity
     * @return
     */
    abstract List<t482101HEntity> 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 userCode,String docCode);
 
    /**
     * 邮件附件的调用处理
     * @param unid
     * @return
     */
    abstract List<AttachmentEntity> getAttachmentEntityList(String unIdSeq);
 
    /**
     * 获取收件邮箱已经存在的MessageId集合
     * @param receiver
     * @return
     */
    abstract List<String> getMessageIdList(String receiver);
 
    /**
     * 更新为已读
     * @param docCode
     */
    abstract void updateRead(String docCode);
}