package com.czg.product.param;

import com.czg.validator.group.DefaultGroup;
import jakarta.validation.constraints.DecimalMin;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * 耗材报损入参
 *
 * @author tankaikai
 * @since 2025-03-06 18:35
 */
@Data
public class ConsReportDamageParam implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 耗材id
     */
    @NotNull(message = "耗材id不能为空", groups = DefaultGroup.class)
    private Long conId;

    /**
     * 报损数量
     */
    @NotNull(message = "报损数量不能为空", groups = DefaultGroup.class)
    @DecimalMin(value = "0", message = "报损数量不能小于0")
    private BigDecimal number;

    /**
     * 报损照片
     */
    private List<String> imgUrls;
}
