package com.czg.product.dto.storage;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 *
 * @author Administrator
 */
@Data
public class ShopStorageAddDTO {
    /**
     * shopUser的userId不是主键id
     */
    @NotNull(message = "用户id不为空")
    private Long userId;
    /**
     * 酒品id
     */
    @NotNull(message = "酒品id不为空")
    private Long shopStorageGoodId;
    /**
     * 数量
     */
    @NotNull(message = "数量不为空")
    @Min(value = 1, message = "数量不能小于1")
    private Integer num;

    /**
     * 多少天后过期，默认一天
     */
    private Integer expDay;
}
