xinyb
2024-09-18 57c8bf0a91f08d6fbd31d2b5c4e66f0945607bb0
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
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<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);
 
    /**
     * 获取待处理邮件列表
     * @param email
     * @return
     */
    List<t482101HList> getHandleMailList(String email,String userCode);
 
    /**
     * 获取用户的全部邮件
     *
     * @param userCode
     * @return
     */
    List<t482101HList> 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<MailFileEntity> mailFile);
 
    /**
     * 邮件附件的调用处理
     *
     * @param unid
     * @return
     */
    abstract List<AttachmentEntity> getAttachmentEntityList(String unIdSeq);
 
    /**
     * 删除附件
     *
     * @param unId
     * @return
     */
    abstract Integer deleteAttachment(List<String> unId);
 
    /**
     * 获取收件邮箱已经存在的MessageId集合
     *
     * @param receiver
     * @return
     */
    abstract List<String> getMessageIdList(String receiver);
 
    /**
     * 更新为已读
     *
     * @param docCode
     */
    abstract void updateRead(String docCode,boolean status);
 
    /**
     * 绑定账号的邮箱模块
     *
     * @param userCode
     * @return
     */
    abstract List<MailModuleEntity> getMailModuleList(String userCode);
 
    /**
     * 待处理邮件
     * @param handleTime
     * @param docCode
     */
    abstract void updateMailHandle(String handleTime,String docCode);
}