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

import com.jeesharp.framework.pojo.dto.BaseSaveDTO;
import lombok.Data;
import lombok.EqualsAndHashCode;

import jakarta.validation.constraints.NotBlank;

/**
 * SPU规格关联保存DTO
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class MallSpuSpecSaveDTO extends BaseSaveDTO {

    /**
     * SPU ID
     */
    @NotBlank(message = "SPU ID不能为空")
    private String spuId;

    /**
     * 规格ID
     */
    @NotBlank(message = "规格ID不能为空")
    private String specId;

    /**
     * 规格名称
     */
    private String specName;

    /**
     * 排序号
     */
    private Integer sortOrder;
}
