提交 | 用户 | age
|
385e2d
|
1 |
package com.yc.crm.mail.service; |
X |
2 |
|
7caeae
|
3 |
import com.yc.crm.mail.entity.MailFileEntity; |
d8f4b9
|
4 |
import com.yc.crm.mail.entity.MailModuleEntity; |
385e2d
|
5 |
import com.yc.crm.mail.entity.t482101HEntity; |
428443
|
6 |
import com.yc.crm.mail.entity.t482101HList; |
3c2c1b
|
7 |
import com.yc.entity.attachment.AttachmentEntity; |
385e2d
|
8 |
|
X |
9 |
import java.util.List; |
|
10 |
|
|
11 |
/** |
|
12 |
* @BelongsProject: eCoWorksV3 |
|
13 |
* @BelongsPackage: com.yc.crm.mail.service |
|
14 |
* @author: xinyb |
|
15 |
* @CreateTime: 2024-08-06 09:52 |
|
16 |
* @Description: |
|
17 |
*/ |
|
18 |
public interface MailIfc { |
|
19 |
|
|
20 |
/** |
|
21 |
* 未读邮件保存(保存草稿箱) |
|
22 |
* |
|
23 |
* @param mail |
|
24 |
*/ |
|
25 |
t482101HEntity saveReceivingMail(t482101HEntity mail); |
|
26 |
|
|
27 |
/** |
|
28 |
* 批量获取保存 |
|
29 |
* |
|
30 |
* @param mail |
|
31 |
*/ |
|
32 |
void saveReceivingMailList(List<t482101HEntity> mail); |
|
33 |
|
|
34 |
/** |
|
35 |
* 更新收件内容 |
|
36 |
* |
|
37 |
* @param mail |
|
38 |
* @return |
|
39 |
*/ |
|
40 |
Integer updateReceivingMail(t482101HEntity mail); |
|
41 |
|
|
42 |
/** |
f4c162
|
43 |
* 修改deleteFlag |
d8f4b9
|
44 |
* |
f4c162
|
45 |
* @param userCode |
X |
46 |
* @param docCode |
|
47 |
* @return |
|
48 |
*/ |
d8f4b9
|
49 |
Integer updateDeleteFlag(String userCode, String docCode); |
f4c162
|
50 |
|
X |
51 |
/** |
|
52 |
* 删除邮件 |
d8f4b9
|
53 |
* |
385e2d
|
54 |
* @param docCode |
X |
55 |
* @return |
|
56 |
*/ |
d8f4b9
|
57 |
Integer deleteEmail(String userCode, String docCode); |
f5cc47
|
58 |
|
X |
59 |
/** |
5b1a4a
|
60 |
* 删除邮件(根据messageId) |
d8f4b9
|
61 |
* |
f5cc47
|
62 |
* @param messagesId |
X |
63 |
* @return |
|
64 |
*/ |
5b1a4a
|
65 |
Integer deleteEmail(String messageId); |
385e2d
|
66 |
|
X |
67 |
/** |
|
68 |
* 获取邮件的详情内容 |
d8f4b9
|
69 |
* |
385e2d
|
70 |
* @param email |
X |
71 |
* @param docCode |
|
72 |
* @return |
|
73 |
*/ |
f4c162
|
74 |
t482101HEntity getReceivingMailInfo(String docCode); |
385e2d
|
75 |
|
X |
76 |
/** |
|
77 |
* 获取邮件不同类型列表 |
d8f4b9
|
78 |
* |
385e2d
|
79 |
* @param email |
X |
80 |
* @param mailType |
d8f4b9
|
81 |
* @param isRead 是否已读 |
385e2d
|
82 |
* @return |
X |
83 |
*/ |
d8f4b9
|
84 |
List<t482101HList> getReceivingMailList(String email, Integer mailType, boolean isNoRead, String userCode); |
385e2d
|
85 |
|
d8f4b9
|
86 |
/** |
X |
87 |
* 获取用户的全部邮件 |
7caeae
|
88 |
* |
d8f4b9
|
89 |
* @param userCode |
X |
90 |
* @return |
|
91 |
*/ |
|
92 |
List<t482101HList> getUserMailList(String userCode); |
385e2d
|
93 |
|
X |
94 |
/** |
|
95 |
* 更新草稿箱 |
d8f4b9
|
96 |
* |
385e2d
|
97 |
* @param docCode |
X |
98 |
* @return |
|
99 |
*/ |
|
100 |
Integer updateMailDrafts(t482101HEntity mail); |
|
101 |
|
|
102 |
/** |
|
103 |
* 删除草稿箱 |
|
104 |
* @param docCode |
|
105 |
* @return |
|
106 |
*/ |
5b1a4a
|
107 |
// Integer deleteMailDrafts(String userCode,String docCode); |
3c2c1b
|
108 |
|
X |
109 |
/** |
7caeae
|
110 |
* 附件保存 |
X |
111 |
* |
|
112 |
* @param unIdFile |
|
113 |
*/ |
|
114 |
abstract void saveAttachment(List<MailFileEntity> mailFile); |
|
115 |
|
|
116 |
/** |
3c2c1b
|
117 |
* 邮件附件的调用处理 |
d8f4b9
|
118 |
* |
3c2c1b
|
119 |
* @param unid |
X |
120 |
* @return |
|
121 |
*/ |
f5cc47
|
122 |
abstract List<AttachmentEntity> getAttachmentEntityList(String unIdSeq); |
7caeae
|
123 |
|
X |
124 |
/** |
|
125 |
* 删除附件 |
|
126 |
* |
|
127 |
* @param unId |
|
128 |
* @return |
|
129 |
*/ |
|
130 |
abstract Integer deleteAttachment(List<String> unId); |
f5cc47
|
131 |
|
X |
132 |
/** |
|
133 |
* 获取收件邮箱已经存在的MessageId集合 |
d8f4b9
|
134 |
* |
f5cc47
|
135 |
* @param receiver |
X |
136 |
* @return |
|
137 |
*/ |
|
138 |
abstract List<String> getMessageIdList(String receiver); |
f4c162
|
139 |
|
X |
140 |
/** |
|
141 |
* 更新为已读 |
d8f4b9
|
142 |
* |
f4c162
|
143 |
* @param docCode |
X |
144 |
*/ |
7cf738
|
145 |
abstract void updateRead(String docCode,boolean status); |
d8f4b9
|
146 |
|
X |
147 |
/** |
|
148 |
* 绑定账号的邮箱模块 |
7caeae
|
149 |
* |
d8f4b9
|
150 |
* @param userCode |
X |
151 |
* @return |
|
152 |
*/ |
|
153 |
abstract List<MailModuleEntity> getMailModuleList(String userCode); |
7cf738
|
154 |
|
X |
155 |
/** |
|
156 |
* 待处理邮件 |
|
157 |
* @param handleTime |
|
158 |
* @param docCode |
|
159 |
*/ |
|
160 |
abstract void updateMailHandle(String handleTime,String docCode); |
385e2d
|
161 |
} |