package com.ruoyi.clock.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 广告业务对象 tb_ad
 *
 * @author pengc
 * @date 2026-03-04
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("广告业务对象")
public class AdBo extends BaseEntity {

    /**
     * 广告id
     */
    @ApiModelProperty(value = "广告id", required = true)
    @NotNull(message = "广告id不能为空", groups = { EditGroup.class })
    private Long adId;

    @ApiModelProperty(value = "广告位置", required = true)
    private String locationCode;

    /**
     * 广告图片
     */
    @ApiModelProperty(value = "广告图片", required = true)
    @NotBlank(message = "广告图片不能为空", groups = { AddGroup.class, EditGroup.class })
    private String image;

    /**
     * 外部链接地址
     */
    @ApiModelProperty(value = "外部链接地址", required = true)
    @NotBlank(message = "外部链接地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String outsideAddress;

    /**
     * 序号
     */
    @ApiModelProperty(value = "序号", required = true)
    @NotNull(message = "序号不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer orderIndex;

    /**
     * 上架状态（启用/隐藏）
     */
    @ApiModelProperty(value = "上架状态（启用/隐藏）", required = true)
    @NotNull(message = "上架状态（启用/隐藏）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer status;


}
