package com.seer.teach.mall.request;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import jakarta.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Schema(description = "购物车商品修改请求实体类")
public class CartUpdateReq {

    @Schema(description = "购物车id")
    @NotNull(message = "购物车id不能为空")
    private Integer id;

    @Schema(description = "商品规格ID")
    @NotNull(message = "商品规格ID不能为空")
    private Integer skuId;

    @Schema(description = "商品数量")
    @NotNull(message = "商品数量不能为空")
    private Integer number;
}
