package com.sptg.ad.api.dto;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.plugins.Page;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sptg.ad.api.entity.AdPushApp;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * title: AdPushAppDto
 * package: com.sptg.estate.biz.service
 * description: 移动端广告
 *
 *               
 *                     
 */
@Getter
@Setter
public class AdPushAppDto extends AdPushApp {

    /**
     * 分页条件
     */
    @TableField(exist = false)
    private Page<AdPushApp> page;

    /**
     * 过期的开始时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @TableField(exist = false)
    private Date beginDate;

    /**
     * 过期结束时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @TableField(exist = false)
    private Date endDate;
}
