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

    @Schema(description = "广告id", example = "26042")
    private Long advertId;

    @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 = "来源")
    private String appSource;

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

    @Schema(description = "微信openId", example = "19783")
    private String openId;

}
