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

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 广告操作日志管理新增/修改 Request VO")
@Data
public class AdvertLogSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "27580")
    private Long id;

    @Schema(description = "广告id", requiredMode = Schema.RequiredMode.REQUIRED, example = "26042")
    @NotNull(message = "广告id不能为空")
    private Long advertId;

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

    @Schema(description = "上传图片地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn")
    @NotEmpty(message = "上传图片地址不能为空")
    private String advertUrl;

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

    @Schema(description = "来源")
    private String appSource;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "创建时间不能为空")
    private LocalDateTime createDate;

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

}
