MsgDto.cs 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace OASystem.Domain.Dtos.System
  7. {
  8. /// <summary>
  9. /// 消息列表
  10. /// 请求dto
  11. /// </summary>
  12. public class MsgDto:DtoBase
  13. {
  14. /// <summary>
  15. /// 用户ID
  16. /// </summary>
  17. public int UserId { get; set; }
  18. }
  19. /// <summary>
  20. /// 消息类型
  21. /// 请求dto
  22. /// </summary>
  23. public class MsgTypeDto : PortDtoBase
  24. {
  25. /// <summary>
  26. /// 用户ID
  27. /// </summary>
  28. public int UserId { get; set; }
  29. }
  30. public class PotsMessagePageListDto : DtoBase
  31. {
  32. /// <summary>
  33. /// 消息类型
  34. /// 1020 团组操作通知 1021 任务操作通知 1022 系统公告
  35. /// </summary>
  36. public int Type { get; set; }
  37. public int UserId { get; set; }
  38. /// <summary>
  39. /// 阅读状态
  40. /// 1 全部(包含已读/未读) 2 未读 3 已读
  41. /// </summary>
  42. public int ReadStatus { get; set; }
  43. }
  44. public class PotsMessageUnreadTotalCountDto
  45. {
  46. public int UserId { get; set; }
  47. }
  48. /// <summary>
  49. /// 消息详细信息
  50. /// 请求dto
  51. /// </summary>
  52. public class MsgInfoDto : PortDtoBase
  53. {
  54. public int UserId { get; set; }
  55. /// <summary>
  56. /// 消息Id
  57. /// </summary>
  58. public int MsgId { get; set; }
  59. }
  60. /// <summary>
  61. /// 消息设置已读
  62. /// 请求dto
  63. /// </summary>
  64. public class MsgSetReadDto : PortDtoBase
  65. {
  66. /// <summary>
  67. ///
  68. /// </summary>
  69. public int UserId { get; set; }
  70. /// <summary>
  71. /// MsgAnthId
  72. /// </summary>
  73. public int MsgId { get; set; }
  74. }
  75. /// <summary>
  76. /// 消息删除
  77. /// 请求dto
  78. /// </summary>
  79. public class MsgDeleteDto : DtoBase
  80. {
  81. /// <summary>
  82. /// MsgId
  83. /// </summary>
  84. public int MsgId { get; set; }
  85. /// <summary>
  86. /// userId
  87. /// </summary>
  88. public int UserId { get; set; }
  89. }
  90. }