package com.ylcm.sys.vo;

import java.io.Serializable;

import org.springframework.beans.BeanUtils;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ylcm.sys.domain.AdTv;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 电视剧管理表
 * </p>
 *
 * @author admin
 * @since 2020-07-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ad_tv")
@ApiModel(value="AdTv对象", description="电视剧管理表")
public class AdTvVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "媒体名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "电视剧海报")
    @TableField("img_url")
    private String imgUrl;

    @ApiModelProperty(value = "题材")
    @TableField("first_theme")
    private String firstTheme;

    @ApiModelProperty(value = "细分题材")
    @TableField("second_theme")
    private String secondTheme;
  
    public static AdTvVO from(AdTv adTv) {
    	AdTvVO adTvVO = new AdTvVO();
    	BeanUtils.copyProperties(adTv, adTvVO);
    	return adTvVO;
    }
}
