package com.jeesharp.business.modules.mall.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;

/**
 * 发品页新增规格值请求：在当前商户租户下创建或返回已存在的规格值。
 *
 * @author jeesharp
 * @since 2026-06-10
 */
@Data
@Schema(description = "发品页新增规格值")
public class MallSpecValueCreateForPublishDTO {

    @NotBlank(message = "规格维度不能为空")
    @Schema(description = "平台规格维度 ID（mall_spec.id）", required = true)
    private String specId;

    @NotBlank(message = "规格值不能为空")
    @Size(max = 64, message = "规格值长度不能超过64个字符")
    @Schema(description = "规格值文案，如红色、XL", required = true)
    private String specValue;
}
