using LeaRun.Application.Entity.PublicInfoManage; using LeaRun.Util.WebControl; using System.Collections.Generic; namespace LeaRun.Application.IService.PublicInfoManage { /// /// 版 本 6.1 /// Copyright (c) 2013-2016 上海力软信息技术有限公司 /// 创建人:佘赐雄 /// 日 期:2015.12.8 11:31 /// 描 述:邮件内容 /// public interface IEmailContentService { #region 获取数据 /// /// 未读邮件 /// /// 分页参数 /// 用户Id /// 关键字 /// IEnumerable GetUnreadMail(Pagination pagination, string userId, string keyword); /// /// 未读邮件数量 /// /// 用户Id /// int GetUnreadMailCount(string userId); /// /// 星标邮件 /// /// 分页参数 /// 用户Id /// 关键字 /// IEnumerable GetAsteriskMail(Pagination pagination, string userId, string keyword); /// /// 星标邮件数量 /// /// 用户Id /// int GetAsteriskMailCount(string userId); /// /// 草稿箱 /// /// 分页参数 /// 用户Id /// 关键字 /// IEnumerable GetDraftMail(Pagination pagination, string userId, string keyword); /// /// 草稿箱数量 /// /// 用户Id /// int GetDraftMailCount(string userId); /// /// 回收箱 /// /// 分页参数 /// 用户Id /// 关键字 /// IEnumerable GetRecycleMail(Pagination pagination, string userId, string keyword); /// /// 回收箱数量 /// /// 用户Id /// int GetRecycleMailCount(string userId); /// /// 收件箱 /// /// 分页参数 /// 用户Id /// 关键字 /// IEnumerable GetAddresseeMail(Pagination pagination, string userId, string keyword); /// /// 收件箱数量 /// /// 用户Id /// int GetAddresseeMailCount(string userId); /// /// 已发送 /// /// 分页参数 /// 用户Id /// 关键字 /// IEnumerable GetSentMail(Pagination pagination, string userId, string keyword); /// /// 已发送数量 /// /// 用户Id /// int GetSentMailCount(string userId); /// /// 邮件实体 /// /// 主键值 /// EmailContentEntity GetEntity(string keyValue); /// /// 收件邮件实体 /// /// 主键值 /// EmailAddresseeEntity GetAddresseeEntity(string keyValue); #endregion #region 提交数据 /// /// 删除草稿 /// /// 主键 void RemoveDraftForm(string keyValue); /// /// 删除未读、星标、收件 /// /// 主键 void RemoveAddresseeForm(string keyValue); /// /// 彻底删除未读、星标、收件 /// /// 主键 void ThoroughRemoveAddresseeForm(string keyValue); /// /// 删除回收 /// /// 主键 /// 类型 void RemoveRecycleForm(string keyValue, int Type); /// /// 删除已发 /// /// 主键 void RemoveSentForm(string keyValue); /// /// 彻底删除已发 /// /// 主键 void ThoroughRemoveSentForm(string keyValue); /// /// 保存邮件表单(发送、存入草稿、草稿编辑) /// /// 主键值 /// 邮件实体 /// 收件人 /// 抄送人 /// 密送人 /// void SaveForm(string keyValue, EmailContentEntity emailContentEntity, string[] addresssIds, string[] copysendIds, string[] bccsendIds); /// /// 设置邮件已读/未读 /// /// 主键 /// 是否已读:0-未读1-已读 void ReadEmail(string keyValue, int IsRead = 1); /// /// 设置邮件星标/取消星标 /// /// 主键 /// 星标:0-取消星标1-星标 void SteriskEmail(string keyValue, int sterisk = 1); #endregion } }