ImageEntity.java 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. package com.fdkanfang.domain.backend;
  2. import com.alibaba.fastjson.annotation.JSONField;
  3. import com.fdkanfang.common.model.BaseModel;
  4. import lombok.Data;
  5. import org.hibernate.annotations.Where;
  6. import javax.persistence.*;
  7. import java.io.Serializable;
  8. /**
  9. * 房源图片信息
  10. */
  11. @Data
  12. @Entity
  13. @Table(name = "tb_image")
  14. @Where(clause = "rec_status='0'")
  15. public class ImageEntity extends BaseModel implements Serializable {
  16. private static final long serialVersionUID = -4453396143303733600L;
  17. @Column(length = 200)
  18. private String fileName;
  19. // oss图片路径
  20. @Column(length = 200)
  21. private String path;
  22. // 本地图片路径, 开发者看,不需要给前端
  23. @JSONField(serialize = false)
  24. @Column
  25. private String localPath;
  26. @Column(length = 200)
  27. private String issue;
  28. @Column
  29. private Long houseId;
  30. // 垂直校验oss图片地址
  31. private String verticalPath;
  32. // 算法生成oss图片地址
  33. private String panoPath;
  34. // 图片所属楼层
  35. private Integer floor;
  36. // 图片类型, 如:客厅 (1-1, 1-2), 厨房(2-1, 2-2)
  37. private String type;
  38. // 照片分辨率:2k : TWO_K , 4k : FOUR_K
  39. private String resolutionRate;
  40. }