package com.ylx.massage.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * 商品规格DTO
 *
 * @author ylx
 * @since 2026-03-26
 */
@Data
@ApiModel("商品规格")
public class ProductSpecDTO {

    /**
     * 规格名（颜色/型号/尺码）
     */
    @ApiModelProperty(value = "规格名", required = true)
    @NotBlank(message = "规格名不能为空")
    private String specName;

    /**
     * 排序
     */
    @ApiModelProperty("排序")
    private Integer sort;

    /**
     * 规格值列表
     */
    @ApiModelProperty(value = "规格值列表", required = true)
    private List<ProductSpecValueDTO> specValues;

}
