package com.cpop.mall.business.bo;

import com.mybatisflex.annotation.Id;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

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

/**
 * @author DB
 * @version 1.0.0
 * @since 2024-01-15 13:44
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "商城轮播图对象")
public class CarouselBo {

    /**
     * 主键
     */
    @ApiModelProperty(value = "主键")
    private String id;

    /**
     * 产品id
     */
    @NotBlank(message = "产品id不能为空")
    @ApiModelProperty(value = "产品id",required = true)
    private String productId;

    /**
     * 图片地址
     */
    @ApiModelProperty(value = "图片地址",required = true)
    @NotBlank(message = "图片地址不能为空")
    private String picUrl;

    /**
     * 排序
     */
    @NotNull(message = "排序不能为空")
    @ApiModelProperty(value = "排序",required = true)
    private Integer orderNo;

    /**
     * 上架状态(0：下架;1：上架)
     */
    @NotNull(message = "上架状态不能为空")
    @ApiModelProperty(value = "上架状态(0：下架;1：上架)",required = true)
    private Boolean upStatus;
}
