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

70 lines
1.6 KiB

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