fs-danaus
9 天以前 18553a7798e5e9947acd13d1bfdf16c0e78c8ed1
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
package com.yc.crm.mail.service;
 
import com.yc.crm.mail.entity.T482102Entity;
 
import java.util.List;
 
public interface MailAccountIfc {
 
    /**
     * 添加新的邮箱配置
     *
     * @param account
     */
    abstract void addEmailAccount(T482102Entity account);
 
    /**
     * 修改邮箱配置
     *
     * @param account
     * @return
     */
    abstract Integer updateEmailAccount(T482102Entity account);
 
    /**
     * 更新时间
     * @param accountId
     * @return
     */
    abstract Integer updateEmailTime(Integer accountId);
 
    /**
     * 修改邮箱状态
     *
     * @param status
     * @return
     */
    abstract Integer updateMailStatus(String status, Integer accountId);
 
    /**
     * 修改别名邮箱
     *
     * @param status
     * @return
     */
    abstract Integer updateAliasEmail(String aliasEmail, Integer accountId);
 
    /**
     * 删除邮箱配置
     *
     * @param userCode
     * @param accountId
     * @return
     */
    abstract Integer deleteEmailAccount(String userCode, Integer accountId);
 
    /**
     * 用户绑定的邮箱信息
     *
     * @param userCode
     * @return
     */
    abstract List<T482102Entity> getAccount(String userCode);
 
    abstract T482102Entity getAccountInfo(String userCode, Integer accountId) throws Exception;
 
    abstract T482102Entity getAccountInfo(String userCode, String eMail) throws Exception;
 
    /**
     * 获取所有用户邮箱
     * @return
     */
    List<T482102Entity> getAccountList();
}