package com.erp.inventory.dto;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.Builder;

/**
 * 更新预警阈值请求DTO
 * 对应PHP StockController::updateThreshold
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class UpdateThresholdRequest {

    /**
     * SKU编码
     */
    @NotBlank(message = "SKU编码不能为空")
    private String skuCode;

    /**
     * 仓库ID
     */
    @NotNull(message = "仓库ID不能为空")
    private Long warehouseId;

    /**
     * 预警阈值
     */
    @NotNull(message = "预警阈值不能为空")
    @Min(value = 0, message = "预警阈值不能为负数")
    private Integer warningThreshold;
}
