package com.yc.ship.module.miniapplet.controller.admin.advert.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 AdvertPageReqVO extends PageParam {

    @Schema(description = "广告位id", example = "25367")
    private Long adsenseId;

    @Schema(description = "排序号")
    private Integer sort;

    @Schema(description = "标题")
    private String title;

    @Schema(description = "副标题")
    private String subTitle;

    @Schema(description = "上传图片地址", example = "https://www.iocoder.cn")
    private String advertUrl;

    @Schema(description = "跳转地址", example = "https://www.iocoder.cn")
    private String linkUrl;

    @Schema(description = "是否投放 Ticket_Yes_No")
    private Integer isDisplay;

    @Schema(description = "有效期类型：0 永久，1限时", example = "2")
    private Integer validType;

    @Schema(description = "广告有效开始日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] staDate;

    @Schema(description = "广告有效结束日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] endDate;

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

}
