package com.czg.product.dto;

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

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

/**
 * 商品耗材绑定
 *
 * @author Tankaikai tankaikai@aliyun.com
 * @since 1.0 2025-02-20
 */
@Data
public class ProdConsBindDTO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 商品id
     */
    @NotNull(message = "商品id不能为空", groups = DefaultGroup.class)
    private Long id;
    /**
     * 耗材列表
     */
    private List<ProdConsRelationDTO> consList;

}