package com.yc.ship.module.miniapplet.controller.app.advert.vo;

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

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Schema(description = "小程序 - 查询广告位请求参数")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class AppAdvertLogReqVO {

    @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 = "微信openId", example = "19783")
    private String openId;
}
