package com.cyl.manager.ums.pojo.vo.form;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
public class UpdateMemberCartForm {
    @NotNull(message = "id 不能为空")
    private Long id;

    @NotNull(message = "数量必填")
    @Min(value = 0, message = "数量不小于0")
    @Max(value = Integer.MAX_VALUE, message = "数量不大于" + Integer.MAX_VALUE)
    private Integer num;
}
