xinyb
6 天以前 ee2316e2cb7afde1c54f5e4216a1b0d1e055749e
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
169
170
171
172
173
174
175
176
177
178
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);
}