package com.bs.df.domain;

import com.bs.cm.domain.CmAttach;
import com.bs.common.annotation.Excel;
import com.bs.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

/**
 * 产品海报对象 df_product_poster
 *
 * @author bs
 * @date 2024-04-06
 */
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("df_product_poster")
@Data
public class DfProductPoster extends BaseEntity{
    private static final long serialVersionUID = 1L;

    /** 海报id */
    @TableId(value = "id",type = IdType.ASSIGN_UUID)
    @ApiModelProperty(value = "海报id")
    private String id;

    /** 产品id */

    //@Excel(name = "产品id")
    @ApiModelProperty(value = "产品id")
    private Long productId;

    @Excel(name = "产品名称")
    @TableField(exist = false)
    private String productName;

    /** 海报分类0产品海报1经纪海报 */

    @Excel(name = "海报分类",dictType = "product_classify")
    @ApiModelProperty(value = "海报分类0产品海报1经纪海报")
    private String posterType;

    /** 海报名称 */

    @Excel(name = "海报名称")
    @ApiModelProperty(value = "海报名称")
    private String posterName;

    /** 海报标签 */

    @Excel(name = "海报标签",dictType = "poster_tag")
    @ApiModelProperty(value = "海报标签")
    private String posterTag;

    /** 海报图片id */

    @Excel(name = "海报图片")
    @ApiModelProperty(value = "海报图片id")
    private String posterFileId;

    /** 状态0草稿1上架 */

    @Excel(name = "状态",dictType = "product_status")
    @ApiModelProperty(value = "状态0草稿1上架")
    private String status;

    /** 备注 */

    @Excel(name = "备注")
    @ApiModelProperty(value = "备注")
    private String remark;

    @Excel(name = "序号")
    @ApiModelProperty(value = "序号")
    private String serialNumber;

    @TableField(exist = false)
    private String[] ids;


    @TableField(exist = false)
    private List<CmAttach> files;

    @TableField(exist = false)
    private String orderByColumn;

}
