package com.seer.teach.mall.request;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;

/**
 * @Author: 嘉多宝宝
 * @Data: 2025-06-12 13:42
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Schema(description = "新增商品规格请求实体类")
public class SpecificationSaveReq {

    @Schema(description = "规格名称")
    @NotBlank(message = "规格名称不能为空")
    private String name;

    @Schema(description = "排序")
    @NotNull(message = "排序不能为空")
    private Integer sortOrder;
}
