All Downloads are FREE. Search and download functionalities are using the official Maven repository.

k.e.book.ddh.entity.CcAdszoneAdsDO Maven / Gradle / Ivy


package k.e.book.ddh.entity;


import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.beans.BeanUtils;

/**
 * @author kk
 * @date 2023-05-21 11:01
 */
@EqualsAndHashCode(callSuper = false)
@Data
@TableName("cc_adszone_ads")
@ApiModel(value="CcAdszoneAdsDO", description="CcAdszoneAds")
public class CcAdszoneAdsDO extends Model  {
    private static final long serialVersionUID = 1L;


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


    /**
     * 标题
     */
    @TableField("title")
    private String title;
    /**
     * 图片地址
     */
    @TableField("imageurl")
    private String imageurl;
    /**
     * 链接地址
     */
    @TableField("linkurl")
    private String linkurl;
    /**
     * URL打开方式
     */
    @TableField("target")
    private String target;
    /**
     * 广告代码
     */
    @TableField("templates/code")
    private String code;
    /**
     * 到期时间
     */
    @TableField("expiretime")
    private Long expiretime;
    /**
     * 权重
     */
    @TableField("weigh")
    private Integer weigh;
    /**
     * 添加时间
     */
    @TableField("createtime")
    private Long createtime;
    /**
     * 更新时间
     */
    @TableField("updatetime")
    private Long updatetime;
    /**
     * 广告位ID
     */
    @TableField("zone_id")
    private Integer zoneId;
    /**
     * 生效时间
     */
    @TableField("effectime")
    private Long effectime;

    public static CcAdszoneAdsVO toVO(CcAdszoneAdsDO ccAdszoneAdsDO) {
        if(ccAdszoneAdsDO == null){
            return null;
        }
        CcAdszoneAdsVO ccAdszoneAdsVO = new CcAdszoneAdsVO();
        BeanUtils.copyProperties(ccAdszoneAdsDO, ccAdszoneAdsVO);
        return ccAdszoneAdsVO;
    }

    public static CcAdszoneAdsDO toDO(CcAdszoneAdsAddDTO ccAdszoneAdsAddDTO) {
        if (ccAdszoneAdsAddDTO == null) {
            return null;
        }
        CcAdszoneAdsDO ccAdszoneAdsDO = new CcAdszoneAdsDO();
        BeanUtils.copyProperties(ccAdszoneAdsAddDTO, ccAdszoneAdsDO);
        return ccAdszoneAdsDO;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy