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

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

import java.util.List;

/**
 * 保存某类目下可用规格白名单（全量替换），顺序与列表一致。
 *
 * @author jeesharp
 * @since 2026-05-15
 */
@Data
@Schema(description = "类目可用规格保存")
public class MallCategorySpecSaveDTO {

    @NotBlank(message = "类目ID不能为空")
    @Schema(description = "类目ID", requiredMode = Schema.RequiredMode.REQUIRED)
    private String categoryId;

    @Schema(description = "规格ID列表（可为空表示清空）")
    private List<String> specIds;
}
