package com.czg.product.param;

import com.czg.validator.group.DefaultGroup;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * 商品SKU查询参数
 *
 * @author tankaikai
 * @since 2025-02-19 09:23
 */
@Data
public class ShopProductSkuParam implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 商品id
     */
    @NotNull(message = "商品id不能为空", groups = DefaultGroup.class)
    private Long id;
    /**
     * 选中的规格名称，单规格传：null,多规格：如选择微辣+常温，则传递：微辣,常温，顺序不能变
     */
    private String specInfo;
}
