CommunityChatMsg.java 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. package com.ruoyi.system.domain;
  2. import com.baomidou.mybatisplus.annotation.TableId;
  3. import com.baomidou.mybatisplus.annotation.TableName;
  4. import com.fasterxml.jackson.annotation.JsonFormat;
  5. import com.fasterxml.jackson.databind.annotation.JsonSerialize;
  6. import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
  7. import lombok.Data;
  8. import org.hibernate.validator.constraints.Length;
  9. import javax.validation.constraints.NotNull;
  10. import javax.validation.constraints.Size;
  11. import java.io.Serializable;
  12. import java.util.Date;
  13. /**
  14. * 社区聊天信息
  15. * @TableName community_chat_msg
  16. */
  17. @Data
  18. @TableName("community_chat_msg")
  19. public class CommunityChatMsg implements Serializable {
  20. /**
  21. * 唯一Id
  22. */
  23. @NotNull(message="[唯一Id]不能为空")
  24. @TableId("id")
  25. @JsonSerialize(using = ToStringSerializer.class)
  26. private Long id;
  27. /**
  28. * 内容
  29. */
  30. @Size(max= -1,message="编码长度不能超过-1")
  31. @Length(max= -1,message="编码长度不能超过-1")
  32. private String content;
  33. /**
  34. * 消息发送人id
  35. */
  36. private Long senderId;
  37. /**
  38. * 消息接收人id
  39. */
  40. private Long receiverId;
  41. /**
  42. * 地址
  43. */
  44. private String address;
  45. /**
  46. * 纬度
  47. */
  48. private Double latitude;
  49. /**
  50. * 经度
  51. */
  52. private Double longitude;
  53. /**
  54. * 文件地址(录音视频)
  55. */
  56. private String url;
  57. /**
  58. * 录音时长
  59. */
  60. private int time;
  61. /**
  62. * 消息类别
  63. */
  64. private String type;
  65. /**
  66. * 消息类型
  67. */
  68. private int messageType;
  69. /**
  70. * 是否已读(发送人)
  71. */
  72. private boolean senderIsRead;
  73. /**
  74. * 是否已读(接收人)
  75. */
  76. private boolean receiverIsRead;
  77. /**
  78. * 创建时间
  79. */
  80. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  81. private Date createTime;
  82. /**
  83. * 更新时间
  84. */
  85. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  86. private Date updateTime;
  87. /**
  88. * 创建人
  89. */
  90. private Long createBy;
  91. /**
  92. * 更新人
  93. */
  94. private Long updateBy;
  95. }