package com.ruoyi.frequency.workspanorama.entity;

import cn.hutool.core.bean.BeanUtil;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.frequency.orderpanorama.entity.OrderPanorama;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 作品和全景图关联对象 t_works_panorama
 *
 * @author zj
 * @date 2023-09-22
 */
@Data
@Accessors(chain = true)
@TableName("t_works_panorama")
public class WorksPanorama extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 租户号
     */
    private Long id;


    /**
     * 删除标志;1 正常 2 删除 3 禁用
     */
    private Integer delFlag;

    /**
     * 作品ID
     */
    @Excel(name = "作品ID")
    private Long worksId;

    /**
     * 全景图链接
     */
    @Excel(name = "全景图链接")
    private String panoramaImage;

    /**
     * 全景图链接封面
     */
    @Excel(name = "全景图链接封面")
    private String panorama;

    public WorksPanorama() {
    }

    public WorksPanorama(OrderPanorama s) {
        BeanUtil.copyProperties(s, this);
        this.setId(null);
    }
}
