package com.yc.ship.module.miniapplet.controller.admin.adsense.vo;

import com.yc.ship.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static com.yc.ship.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;


@Schema(description = "管理后台 - 广告位管理分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class AdsensePageReqVO extends PageParam {

    @Schema(description = "广告位代码")
    private String adsenseCode;

    @Schema(description = "广告位名称", example = "芋艿")
    private String adsenseName;

    @Schema(description = "媒体类型：0单图片、1单视频、2图片轮播", example = "1")
    private Integer adsenseType;

    @Schema(description = "启用状态 0否 1是", example = "1")
    private Integer isUse;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}
