BulletinInfo.java 1018 B

123456789101112131415161718192021222324252627282930313233343536
  1. package com.lqkj.link.module.bulletin.domain;
  2. import com.fasterxml.jackson.annotation.JsonFormat;
  3. import io.swagger.v3.oas.annotations.media.Schema;
  4. import jakarta.persistence.*;
  5. import lombok.AllArgsConstructor;
  6. import lombok.Getter;
  7. import lombok.NoArgsConstructor;
  8. import lombok.Setter;
  9. import java.util.Date;
  10. @Entity
  11. @Table(name = "bulletin_info")
  12. @Getter
  13. @Setter
  14. @NoArgsConstructor
  15. @AllArgsConstructor
  16. public class BulletinInfo {
  17. @Id
  18. @GeneratedValue(strategy = GenerationType.IDENTITY)
  19. @Column(name = "info_id")
  20. @Schema(description = "信息ID")
  21. private Integer infoId;
  22. @Column(name = "content")
  23. @Schema(description = "信息内容")
  24. private String content;
  25. @Column(name = "create_time")
  26. @JsonFormat(pattern = "YYYY-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
  27. @Schema(description = "创建时间")
  28. private Date createTime;
  29. @Column(name = "info_type")
  30. @Schema(description = "信息类型,1更新日志,2通知公告")
  31. private Integer infoType;
  32. }