package com.ylcm.sys.vo;

import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

import org.springframework.beans.BeanUtils;

import com.ylcm.sys.domain.AdPlatform;

import lombok.Data;

/**
 * <p>
 * 栏目管理表
 * </p>
 *
 * @author admin
 * @since 2020-07-01
 */
@Data
public class AdPlatformVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "栏目管理主键")
    private Integer id;

    @ApiModelProperty(value = "媒体名称")
    private String platformName;
    
    @ApiModelProperty(value = "logo")
    private String imgUrl;

    @ApiModelProperty(value = "内容")
    private String brandName;
    
    @ApiModelProperty(value = "一级行业")
    private String firstInd;

    @ApiModelProperty(value = "二级行业")
    private String secondInd;
    
    public static AdPlatformVO form(AdPlatform adPlatform){
        AdPlatformVO vo = new AdPlatformVO();
        BeanUtils.copyProperties(adPlatform, vo);
        return vo;
        
    };
}
