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

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

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

@Schema(description = "管理后台 - 广告位管理新增/修改 Request VO")
@Data
public class AdsenseSaveReqVO {

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

    @Schema(description = "广告位代码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "广告位代码不能为空")
    private String adsenseCode;

    @Schema(description = "广告位名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @NotEmpty(message = "广告位名称不能为空")
    private String adsenseName;

    @Schema(description = "媒体类型：0单图片、1单视频、2图片轮播", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "媒体类型：0单图片、1单视频、2图片轮播不能为空")
    private Integer adsenseType;

    @Schema(description = "启用状态 0否 1是", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "启用状态 0否 1是")
    private Integer isUse;

    @Schema(description = "备注")
    private String remark;

}
