平安校园
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.

IMessageService.cs 1.6 KiB

пре 4 месеци
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. 
  2. //
  3. namespace SafeCampus.System;
  4. /// <summary>
  5. /// 站内信服务
  6. /// </summary>
  7. public interface IMessageService : ITransient
  8. {
  9. /// <summary>
  10. /// 删除消息
  11. /// </summary>
  12. /// <param name="input">id列表</param>
  13. /// <returns></returns>
  14. Task Delete(BaseIdListInput input);
  15. /// <summary>
  16. /// 删除我的消息
  17. /// </summary>
  18. /// <param name="input"></param>
  19. /// <param name="userId"></param>
  20. /// <returns></returns>
  21. Task DeleteMyMessage(BaseIdInput input, long userId);
  22. /// <summary>
  23. /// 获取消息详情
  24. /// </summary>
  25. /// <param name="input">消息ID</param>
  26. /// <param name="isSelf">是否是自己</param>
  27. /// <returns>消息详情</returns>
  28. Task<MessageDetailOutPut> Detail(BaseIdInput input, bool isSelf = false);
  29. /// <summary>
  30. /// 我的消息列表
  31. /// </summary>
  32. /// <param name="input"></param>
  33. /// <param name="userId"></param>
  34. /// <returns></returns>
  35. Task<SqlSugarPagedList<SysMessage>> MyMessagePage(MessagePageInput input, long userId);
  36. /// <summary>
  37. /// 分页查询
  38. /// </summary>
  39. /// <param name="input">查询参数</param>
  40. /// <returns></returns>
  41. Task<SqlSugarPagedList<SysMessage>> Page(MessagePageInput input);
  42. /// <summary>
  43. /// 发送站内信
  44. /// </summary>
  45. /// <param name="input">站内信信息</param>
  46. /// <returns></returns>
  47. Task Send(MessageSendInput input);
  48. /// <summary>
  49. /// 获取未读消息数
  50. /// </summary>
  51. /// <param name="userId"></param>
  52. /// <returns></returns>
  53. Task<int> UnReadCount(long userId);
  54. }