package com.jeesharp.business.modules.mall.dto;

import com.jeesharp.framework.pojo.dto.BaseSaveDTO;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 购物车行保存请求 DTO（运营侧维护或纠偏）。
 *
 * @author jeesharp
 * @since 2026-05-07
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class MallCartItemSaveDTO extends BaseSaveDTO {

    @NotBlank(message = "会员ID不能为空")
    private String memberId;

    @NotBlank(message = "SKU ID不能为空")
    private String skuId;

    @NotBlank(message = "SPU ID不能为空")
    private String spuId;

    @NotNull(message = "数量不能为空")
    private Integer quantity;

    @NotNull(message = "选中状态不能为空")
    private Integer selected;
}
