package com.ylcm.sys.excel.model;

import java.io.Serializable;

import org.springframework.beans.BeanUtils;

import com.alibaba.excel.annotation.ExcelProperty;
import com.ylcm.sys.domain.AdProduct;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 *    产品列表导出
 */
@Data
public class AdProductExportDTO implements Serializable{

	
	private static final long serialVersionUID = 3863153959765813542L;

    @ApiModelProperty(value = "产品名称")
    @ExcelProperty(index = 0, value="产品名称")
    private String productName;
    
    @ApiModelProperty(value = "产品logo")
    @ExcelProperty(index = 1, value="产品logo")
    private String nameImgUrl;
    
    @ApiModelProperty(value = "所属品牌")
    @ExcelProperty(index = 2, value="所属品牌")
    private String brandName;
    
    @ApiModelProperty(value = "一级行业")
    @ExcelProperty(index = 3, value="一级行业")
    private String firstInd;

    @ApiModelProperty(value = "二级行业")
    @ExcelProperty(index = 4, value="二级行业")
    private String secondInd;
    
    @Data
	public static class AdProductExportDTOBuilder{
		private AdProduct adProduct;	
		
		public AdProductExportDTO build(){
			AdProductExportDTO eo = new AdProductExportDTO();
            /*数据复制*/
		    BeanUtils.copyProperties(adProduct, eo);
			return eo;
		}
		
		public AdProductExportDTOBuilder adProduct(AdProduct adProduct){
			this.adProduct = adProduct;
			return this;
		}
	}
    
}
