package com.izouma.nineth.domain; import com.alibaba.excel.annotation.ExcelIgnore; import com.alibaba.excel.annotation.ExcelProperty; import com.izouma.nineth.annotations.Searchable; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import javax.persistence.Entity; import javax.persistence.Transient; import java.time.LocalDateTime; @Data @AllArgsConstructor @NoArgsConstructor @Entity @ApiModel("元宇宙用户聊天信息") public class PublicScreenChat extends BaseEntity { @ApiModelProperty("发送方昵称") @ExcelProperty("发送方昵称") @Searchable private String nickname; @ApiModelProperty("发送方用户id") @ExcelProperty("发送方用户id") @Searchable private String userId; @ApiModelProperty("勋章等级") @ExcelProperty("勋章等级") private int level; @ApiModelProperty("境界") @ExcelProperty("境界") private String realm; @ApiModelProperty("头衔") @ExcelProperty("头衔") private String title; @ApiModelProperty("头像") @ExcelProperty("头像") private String avatar; @ApiModelProperty("消息内容") @ExcelProperty("消息内容") private String messageInfo; @ApiModelProperty("消息发送时间") @ExcelProperty("消息发送时间") private LocalDateTime time; @ApiModelProperty("消息是否合法") @ExcelProperty("消息是否合法") private boolean illegal; @ApiModelProperty("1:正常,2:待撤回,3:已撤回") @ExcelIgnore private int recall; @ApiModelProperty("类型 1:直播 2:元宇宙聊天") @ExcelIgnore private int type; @Transient private boolean myself; }