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.AdPlatform;

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

/**
 *    栏目列表导出
 */
@Data
public class AdPlatformExportDTO implements Serializable{

	
	private static final long serialVersionUID = 3863153959765813542L;

    @ApiModelProperty(value = "栏目名称")
    @ExcelProperty(index = 0, value="栏目名称")
    private String platformName;
    
    @ApiModelProperty(value = "栏目logo")
    @ExcelProperty(index = 1, value="栏目logo")
    private String imgUrl;
    
    @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 AdPlatformExportDTOBuilder{
		private AdPlatform adPlatform;	
		
		public AdPlatformExportDTO build(){
			AdPlatformExportDTO eo = new AdPlatformExportDTO();
            /*数据复制*/
		    BeanUtils.copyProperties(adPlatform, eo);
			return eo;
		}
		
		public AdPlatformExportDTOBuilder adPlatform(AdPlatform adPlatform){
			this.adPlatform = adPlatform;
			return this;
		}
	}
    
}
