IMReadEntity.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. using System;
  2. namespace LeaRun.Application.Entity.MessageManage
  3. {
  4. /// <summary>
  5. /// 未读消息表
  6. /// <author>
  7. /// <name>she</name>
  8. /// <date>2015.08.01 14:00</date>
  9. /// </author>
  10. /// </summary>
  11. public class IMReadEntity : BaseEntity
  12. {
  13. #region 获取/设置 字段值
  14. /// <summary>
  15. /// 未读消息主键
  16. /// </summary>
  17. public string ReadId { get; set; }
  18. /// <summary>
  19. /// 消息主键
  20. /// </summary>
  21. public string ContentId { get; set; }
  22. /// <summary>
  23. /// 用户主键
  24. /// </summary>
  25. public string UserId { get; set; }
  26. /// <summary>
  27. /// 发送者ID
  28. /// </summary>
  29. public string SendId { get; set; }
  30. /// <summary>
  31. /// 发送状态(0-未送达,1-已送达,2-已阅读)
  32. /// </summary>
  33. public int ReadStatus { get; set; }
  34. /// <summary>
  35. /// 创建时间
  36. /// </summary>
  37. public DateTime CreateDate { get; set; }
  38. /// <summary>
  39. /// 创建用户主键
  40. /// </summary>
  41. public string CreateUserId { get; set; }
  42. /// <summary>
  43. /// 创建用户
  44. /// </summary>
  45. public string CreateUserName { get; set; }
  46. #endregion
  47. #region 扩展操作
  48. /// <summary>
  49. /// 新增调用
  50. /// </summary>
  51. public override void Create()
  52. {
  53. this.ReadId = Guid.NewGuid().ToString();
  54. this.CreateDate = DateTime.Now;
  55. }
  56. /// <summary>
  57. /// 编辑调用
  58. /// </summary>
  59. /// <param name="keyValue"></param>
  60. public override void Modify(string keyValue)
  61. {
  62. this.ReadId = keyValue;
  63. }
  64. #endregion
  65. }
  66. }