TUserMessage.java 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. package com.aitori.entity;
  2. import com.baomidou.mybatisplus.annotation.*;
  3. import io.swagger.v3.oas.annotations.media.Schema;
  4. import lombok.Data;
  5. import java.io.Serial;
  6. import java.io.Serializable;
  7. import java.time.LocalDateTime;
  8. @Data
  9. @TableName("t_user_message")
  10. @Schema(description = "消息推送表")
  11. public class TUserMessage implements Serializable {
  12. @Serial
  13. private static final long serialVersionUID = 1L;
  14. @TableId(value = "id", type = IdType.AUTO)
  15. private Integer id;
  16. @Schema(description = "用户id")
  17. private Integer userId;
  18. @Schema(description = "标题")
  19. private String title;
  20. @Schema(description = "内容")
  21. private String content;
  22. @Schema(description = "缩略图")
  23. private String thumbUrl;
  24. @Schema(description = "状态 0:已删除 1:可用")
  25. private Integer status;
  26. @Schema(description = "已读状态 0:未读 1:已读")
  27. private Integer readStatus;
  28. @Schema(description = "消息类型 0:订单已支付 1:训练分身 2:训练分身完成 3:训练写真 4:训练写真完成")
  29. private Integer type;
  30. @Schema(description = "订单id")
  31. private String orderId;
  32. @Schema(description = "相册id")
  33. private Integer albumId;
  34. @TableField(fill = FieldFill.INSERT)
  35. @Schema(description = "创建时间")
  36. private LocalDateTime createTime;
  37. @TableField(fill = FieldFill.INSERT_UPDATE)
  38. @Schema(description = "最后更新时间")
  39. private LocalDateTime updateTime;
  40. }