package com.seer.teach.mall.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.seer.teach.common.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import org.apache.ibatis.type.JdbcType;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author Captain
 * @since 2025-06-10
 */
@Getter
@Setter
@TableName(value="mall_cart", autoResultMap = true)
@Schema(name = "CartEntity对象", description = "")
public class CartEntity extends BaseEntity {


    @Schema(description = "会员Id")
    @TableField("user_id")
    private Integer userId;

    @Schema(description = "商品名称")
    @TableField("goods_name")
    private String goodsName;

    @Schema(description = "商品Id")
    @TableField("goods_id")
    private Integer goodsId;

    @TableField("sku_id")
    private Integer skuId;

    @Schema(description = "数量")
    @TableField("`number`")
    private Integer number;

}