package com.snack.server.module.product.dto.req;

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

import java.io.Serializable;

/**
 * 调整库存请求
 */
@Data
@Schema(description = "调整库存请求")
public class StockAdjustReq implements Serializable {

    @NotNull(message = "SKU ID 不能为空")
    @Schema(description = "SKU ID")
    private Long skuId;

    @Schema(description = "增量调整数量（正数加库存，负数减库存）", example = "10")
    private Integer delta;

    @Schema(description = "绝对值目标库存（与 delta 二选一，优先 delta）", example = "100")
    private Integer targetStock;
}
