package com.xiaoniu.system.platformsettings.advertis.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * @Author haoxuyang
 * @Date 2024/10/10 14:28
 */
@Data
@Schema(description = "修改广告位参数DTO")
public class EditAdvertisDTO {
    @Schema(description = "ID")
    @NotNull(message = "ID不能为空")
    private Long id;

    @NotNull(message = "跳转类型不能为空")
    @Schema(description = "跳转类型（1-微信公众号 2-微信小程序 3-不跳转 4-链接地址）")
    private Integer jumpType;

    @NotEmpty(message = "跳转资源不能为空")
    @Schema(description = "跳转资源、连接")
    private String jumpResources;

    @NotEmpty(message = "图片不能为空")
    @Schema(description = "广告位图片")
    private String advertisImage;

    @NotEmpty(message = "广告位置不能为空")
    @Schema(description = "广告位置（1-全部 2-首页轮播 3-个人中心 4-首页底部）")
    private String advertisAddress;

    @NotNull(message = "类型状态不能为空")
    @Schema(description = "类型状态（1-显示 2-隐藏）")
    private Integer status;

    @NotNull(message = "排序不能为空")
    @Schema(description = "排序")
    private Integer sort;

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