package com.propertyManagement.business.domain.bo;

import com.propertyManagement.common.core.domain.BaseEntity;
import com.propertyManagement.common.core.validate.AddGroup;
import com.propertyManagement.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 轮播图
业务对象 wx_slideshow
 *
 * @author liushuai
 * @date 2025-06-09
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class WxSlideshowBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 图片地址
     */
    @NotBlank(message = "图片地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String url;

    /**
     * 跳转地址
     */
    private String skipUrl;

    /**
     * 类型（1首页轮播图  2个人中心轮播图）
     */
    private Integer type;

    /**
     * 是否启用（0否 1是）
     */
    @NotNull(message = "是否启用（0否 1是）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer isEnable;


}
