package com.bonus.canteen.core.supply.purchase.domain.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

@Data
public class DrpMaterialSupplierWinRecordsDTO {
   @ApiModelProperty("供应商id")
   private @NotNull(
   message = "供应商不能为空!"
) Long supplierId;
   @ApiModelProperty("食堂id")
   private Long canteenId;
   @ApiModelProperty("明细")
   private @Valid
   @Size(
   min = 1,
   message = "货品明细不能为空!"
) List<Long> materialIdList;
}
