添加加入购物车商品数量不可为0或更低数量的限制

Signed-off-by: 风狗 <909275705@qq.com>
This commit is contained in:
风狗 2024-03-15 02:22:39 +00:00 committed by Gitee
parent 504e364fd0
commit c4dedf4d48
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -15,6 +15,7 @@ public class AppCartAddReqVO {
@Schema(description = "新增商品数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
@NotNull(message = "数量不能为空")
@Min(value = 1, message = "商品数量必须大于等于1")
private Integer count;
}