using ce.autofac.extension; using System; using System.Collections.Generic; using System.Threading.Tasks; namespace learun.iapplication { /// /// 版 本 EasyCode EC管理后台 /// Copyright (c) 2019-present EC管理有限公司 /// 创建人:tobin /// 日 期:2019.11.05 /// 描 述:最近联系人列表 /// public interface IMContactsIBLL : IBLL { #region 获取数据 /// /// 获取列表数据 /// /// 用户Id /// Task> GetList(string userId); /// /// 获取列表数据 /// /// 用户Id /// 时间 /// Task> GetList(string userId, DateTime time); /// /// 获取实体 /// /// 发送人 /// 接收人 /// Task GetEntity(string userId, string otherUserId); #endregion 获取数据 #region 提交数据 /// /// 保存实体数据(新增、修改) /// /// 实体数据 /// Task SaveEntity(IMContactsEntity entity); /// /// 更新记录读取状态 /// /// 自己本身用户ID /// 对方用户ID Task UpdateState(string myUserId, string otherUserId); /// /// 删除最近联系人 /// /// 发起者id /// 对方用户ID Task DeleteEntity(string myUserId, string otherUserId); #endregion 提交数据 } }