添加加入购物车商品数量不可为0或更低数量的限制
Signed-off-by: 风狗 <909275705@qq.com>
This commit is contained in:
parent
504e364fd0
commit
c4dedf4d48
@ -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;
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user