You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

60 lines
2.0 KiB

  1. using System;
  2. using System.Collections.Generic;
  3. namespace Learun.Application.IM
  4. {
  5. /// <summary>
  6. /// 版 本 Learun-ADMS V7.0.3 力软敏捷开发框架
  7. /// Copyright (c) 2013-2018 上海力软信息技术有限公司
  8. /// 创建人:力软-框架开发组
  9. /// 日 期:2018.05.31
  10. /// 描 述:最近联系人列表
  11. /// </summary>
  12. public interface IMContactsIBLL
  13. {
  14. #region 获取数据
  15. /// <summary>
  16. /// 获取列表数据
  17. /// </summary>
  18. /// <param name="userId">用户Id</param>
  19. /// <returns></returns>
  20. IEnumerable<IMContactsEntity> GetList(string userId);
  21. /// <summary>
  22. /// 获取列表数据
  23. /// </summary>
  24. /// <param name="userId">用户Id</param>
  25. /// <param name="time">时间</param>
  26. /// <returns></returns>
  27. IEnumerable<IMContactsEntity> GetList(string userId, DateTime time);
  28. /// <summary>
  29. /// 获取实体
  30. /// </summary>
  31. /// <param name="userId">发送人</param>
  32. /// <param name="otherUserId">接收人</param>
  33. /// <returns></returns>
  34. IMContactsEntity GetEntity(string userId, string otherUserId);
  35. #endregion
  36. #region 提交数据
  37. /// <summary>
  38. /// 保存实体数据(新增、修改)
  39. /// <param name="entity">实体数据</param>
  40. /// <summary>
  41. /// <returns></returns>
  42. void SaveEntity(IMContactsEntity entity);
  43. /// <summary>
  44. /// 更新记录读取状态
  45. /// </summary>
  46. /// <param name="myUserId">自己本身用户ID</param>
  47. /// <param name="otherUserId">对方用户ID</param>
  48. void UpdateState(string myUserId, string otherUserId);
  49. /// <summary>
  50. /// 删除最近联系人
  51. /// </summary>
  52. /// <param name="myUserId">发起者id</param>
  53. /// <param name="otherUserId">对方用户ID</param>
  54. void DeleteEntity(string myUserId, string otherUserId);
  55. #endregion
  56. }
  57. }