PublicScreenChat.java 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. package com.izouma.nineth.domain;
  2. import com.alibaba.excel.annotation.ExcelIgnore;
  3. import com.alibaba.excel.annotation.ExcelProperty;
  4. import com.izouma.nineth.annotations.Searchable;
  5. import io.swagger.annotations.ApiModel;
  6. import io.swagger.annotations.ApiModelProperty;
  7. import lombok.AllArgsConstructor;
  8. import lombok.Data;
  9. import lombok.NoArgsConstructor;
  10. import javax.persistence.Entity;
  11. import javax.persistence.Transient;
  12. import java.time.LocalDateTime;
  13. @Data
  14. @AllArgsConstructor
  15. @NoArgsConstructor
  16. @Entity
  17. @ApiModel("元宇宙用户聊天信息")
  18. public class PublicScreenChat extends BaseEntity {
  19. @ApiModelProperty("发送方昵称")
  20. @ExcelProperty("发送方昵称")
  21. @Searchable
  22. private String nickname;
  23. @ApiModelProperty("发送方用户id")
  24. @ExcelProperty("发送方用户id")
  25. @Searchable
  26. private String userId;
  27. @ApiModelProperty("勋章等级")
  28. @ExcelProperty("勋章等级")
  29. private int level;
  30. @ApiModelProperty("境界")
  31. @ExcelProperty("境界")
  32. private String realm;
  33. @ApiModelProperty("头衔")
  34. @ExcelProperty("头衔")
  35. private String title;
  36. @ApiModelProperty("头像")
  37. @ExcelProperty("头像")
  38. private String avatar;
  39. @ApiModelProperty("消息内容")
  40. @ExcelProperty("消息内容")
  41. private String messageInfo;
  42. @ApiModelProperty("消息发送时间")
  43. @ExcelProperty("消息发送时间")
  44. private LocalDateTime time;
  45. @ApiModelProperty("消息是否合法")
  46. @ExcelProperty("消息是否合法")
  47. private boolean illegal;
  48. @ApiModelProperty("1:正常,2:待撤回,3:已撤回")
  49. @ExcelIgnore
  50. private int recall;
  51. @ApiModelProperty("类型 1:直播 2:元宇宙聊天")
  52. @ExcelIgnore
  53. private int type;
  54. @Transient
  55. private boolean myself;
  56. }