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

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

/**
 *    电视剧列表导出
 */
@Data
public class AdTvExportDTO implements Serializable{

	
	private static final long serialVersionUID = 3863153959765813542L;

    @ApiModelProperty(value = "电视剧名称")
    @ExcelProperty(index = 0, value="电视剧名称")
    private String name;
     
    @ApiModelProperty(value = "体裁")
    @ExcelProperty(index = 1, value="体裁")
    private String firstTheme;

    @ApiModelProperty(value = "细分体裁")
    @ExcelProperty(index = 2, value="细分体裁")
    private String secondTheme;
    
    @ApiModelProperty(value = "电视剧海报")
    @ExcelProperty(index = 3, value="电视剧海报")
    private String imgUrl;
    
    @Data
	public static class AdTvExportDTOBuilder{
		private AdTv adTv;	
		
		public AdTvExportDTO build(){
			AdTvExportDTO eo = new AdTvExportDTO();
            /*数据复制*/
		    BeanUtils.copyProperties(adTv, eo);
			return eo;
		}
		
		public AdTvExportDTOBuilder adTv(AdTv adTv){
			this.adTv = adTv;
			return this;
		}
	}
    
}
