1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- package com.fdkanfang.domain.backend;
- import com.alibaba.fastjson.annotation.JSONField;
- import com.fdkanfang.common.model.BaseModel;
- import lombok.Data;
- import org.hibernate.annotations.Where;
- import javax.persistence.*;
- import java.io.Serializable;
- /**
- * 房源图片信息
- */
- @Data
- @Entity
- @Table(name = "tb_image")
- @Where(clause = "rec_status='0'")
- public class ImageEntity extends BaseModel implements Serializable {
- private static final long serialVersionUID = -4453396143303733600L;
- @Column(length = 200)
- private String fileName;
- // oss图片路径
- @Column(length = 200)
- private String path;
- // 本地图片路径, 开发者看,不需要给前端
- @JSONField(serialize = false)
- @Column
- private String localPath;
- @Column(length = 200)
- private String issue;
- @Column
- private Long houseId;
- // 垂直校验oss图片地址
- private String verticalPath;
- // 算法生成oss图片地址
- private String panoPath;
- // 图片所属楼层
- private Integer floor;
- // 图片类型, 如:客厅 (1-1, 1-2), 厨房(2-1, 2-2)
- private String type;
- // 照片分辨率:2k : TWO_K , 4k : FOUR_K
- private String resolutionRate;
- }
|