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();
|
}
|