CommunityChatMsgVo.java 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. package com.ruoyi.system.domain.vo;
  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 CommunityChatMsgVo 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. * 消息发送人昵称
  39. */
  40. private String senderNickName;
  41. /**
  42. * 消息发送人头像
  43. */
  44. private String senderAvatar;
  45. /**
  46. * 消息接收人id
  47. */
  48. private Long receiverId;
  49. /**
  50. * 消息接收人昵称
  51. */
  52. private String receiverNickName;
  53. /**
  54. * 消息接收人头像
  55. */
  56. private String receiverAvatar;
  57. /**
  58. * 地址
  59. */
  60. private String address;
  61. /**
  62. * 纬度
  63. */
  64. private Double latitude;
  65. /**
  66. * 经度
  67. */
  68. private Double longitude;
  69. /**
  70. * 文件地址(录音视频)
  71. */
  72. private String fileUrl;
  73. /**
  74. * 录音时长
  75. */
  76. private int time;
  77. /**
  78. * 消息类型
  79. */
  80. private int messageType;
  81. /**
  82. * 是否已读(接收人)
  83. */
  84. private boolean receiverIsRead;
  85. /**
  86. * 是否已读(发送人)
  87. */
  88. private boolean senderIsRead;
  89. /**
  90. * 创建时间
  91. */
  92. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  93. private Date createTime;
  94. }