package com.czg.product.param;

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

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

/**
 * 商品报损入参
 *
 * @author tankaikai
 * @since 2025-03-06 18:35
 */
@Data
public class ProductReportDamageParam implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 商品id
     */
    @NotNull(message = "商品id不能为空", groups = DefaultGroup.class)
    private Long productId;

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

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

    /**
     * 备注
     */
    private String remark;
}
