MessageView.cs 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. using OASystem.Domain.Entities.System;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace OASystem.Domain.ViewModels.System
  8. {
  9. public class MessageView : Sys_Message
  10. {
  11. }
  12. public class MessageUnreadTotalCountView
  13. {
  14. public int UnreadCount { get; set; } = 0;
  15. }
  16. /// <summary>
  17. /// 用于都消息返回视图
  18. /// </summary>
  19. public class MessageListView
  20. {
  21. public int RowNumber { get; set; }
  22. public int Id { get; set; }
  23. /// <summary>
  24. /// 消息类型
  25. /// </summary>
  26. public int Type { get; set; }
  27. /// <summary>
  28. /// 消息标题
  29. /// </summary>
  30. public string Title { get; set; }
  31. /// <summary>
  32. /// 消息内容
  33. /// </summary>
  34. public string Content { get; set; }
  35. /// <summary>
  36. /// 发布部门
  37. /// </summary>
  38. public string IssuerDep { get; set; }
  39. /// <summary>
  40. /// 发布者
  41. /// </summary>
  42. public string IssuerUser { get; set; }
  43. /// <summary>
  44. /// 发布时间
  45. /// </summary>
  46. public DateTime ReleaseTime { get; set; }
  47. /// <summary>
  48. /// 是否已读
  49. /// 0 未读 1 已读
  50. /// </summary>
  51. public int IsRead { get; set; }
  52. //public int DiId { get; set; }
  53. //public string Param { get; set; }
  54. }
  55. /// <summary>
  56. /// 用于都消息返回视图
  57. /// </summary>
  58. public class ReadbleMessageView
  59. {
  60. public int RowNumber { get; set; }
  61. public int Id { get; set; }
  62. /// <summary>
  63. /// 消息类型
  64. /// 1 公告消息
  65. /// 2 团组流程管控消息
  66. /// 3 团组业务操作消息
  67. /// 4费用
  68. /// </summary>
  69. public int Type { get; set; }
  70. /// <summary>
  71. /// 消息标题
  72. /// </summary>
  73. public string Title { get; set; }
  74. /// <summary>
  75. /// 消息内容
  76. /// </summary>
  77. public string Content { get; set; }
  78. /// <summary>
  79. /// 发布部门
  80. /// </summary>
  81. public string IssuerDep { get; set; }
  82. /// <summary>
  83. /// 发布者
  84. /// </summary>
  85. public string IssuerUser { get; set; }
  86. /// <summary>
  87. /// 发布时间
  88. /// </summary>
  89. public DateTime ReleaseTime { get; set; }
  90. public int DiId { get; set; }
  91. public string Param { get; set; }
  92. }
  93. public class ReadbleMessageView1 : ReadbleMessageView
  94. {
  95. public int IsRead { get; set; }
  96. }
  97. public class MessageInfoView
  98. {
  99. /// <summary>
  100. /// 消息类型
  101. /// 1 公告消息
  102. /// 2 团组流程管控消息
  103. /// 3 团组业务操作消息
  104. /// 4费用
  105. /// </summary>
  106. public int Type { get; set; }
  107. /// <summary>
  108. /// 公司名称
  109. /// </summary>
  110. public string CompanyName { get; set; }
  111. /// <summary>
  112. /// 部门名称
  113. /// </summary>
  114. public string DepName { get; set; }
  115. /// <summary>
  116. /// 岗位名称
  117. /// </summary>
  118. public string JobName { get; set; }
  119. /// <summary>
  120. /// 发布人
  121. /// </summary>
  122. public string CnName { get; set; }
  123. /// <summary>
  124. /// 发布时间
  125. /// </summary>
  126. public DateTime ReleaseTime { get; set; }
  127. /// <summary>
  128. /// 消息标题
  129. /// </summary>
  130. public string Title { get; set; }
  131. /// <summary>
  132. /// 消息内容
  133. /// </summary>
  134. public string Content { get; set; }
  135. /// <summary>
  136. /// 是否已读
  137. /// 0 未读 1 已读
  138. /// </summary>
  139. public int IsRead { get; set; }
  140. /// <summary>
  141. /// 已读时间
  142. /// 1990-01-01 00:00:000 未读
  143. /// </summary>
  144. public DateTime ReadTime { get; set; }
  145. public int DiId { get; set; }
  146. public string Param { get; set; }
  147. }
  148. public class MessageTypeView
  149. {
  150. public int Id { get; set; }
  151. /// <summary>
  152. /// 分类名称
  153. /// </summary>
  154. public string Name { get; set; }
  155. /// <summary>
  156. /// 未读条数
  157. /// </summary>
  158. public int UnReadCount { get; set; } = 0;
  159. }
  160. public class NotificationTypeView
  161. {
  162. /// <summary>
  163. /// 通知类型
  164. /// 1 操作通知
  165. /// 2 任务通知
  166. /// </summary>
  167. public int TypeId { get; set; }
  168. /// <summary>
  169. /// 消息类型id
  170. /// </summary>
  171. public List<int> MsgTypeIds { get; set; }
  172. }
  173. }