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

Merge pull request !915 from 风狗/N/A
This commit is contained in:
芋道源码 2024-03-28 10:58:24 +00:00 committed by Gitee
commit 9b85a9617d
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;
}