package com.panzhihua.service_community.model.dos;
|
|
import com.baomidou.mybatisplus.annotation.*;
|
import lombok.Data;
|
|
import java.io.Serializable;
|
import java.math.BigDecimal;
|
import java.util.Date;
|
|
|
/**
|
* @auther lyq
|
* @create 2021-04-14 15:02:14
|
* @describe 购物车表实体类
|
*/
|
|
@Data
|
@TableName("com_shop_cart")
|
public class ComShopCartDO implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 购物车id
|
*/
|
@TableId(type = IdType.AUTO)
|
private Long id;
|
|
/**
|
* 用户id
|
*/
|
private Long userId;
|
|
/**
|
* 商品id
|
*/
|
private Long goodsId;
|
|
/**
|
* 商品名字
|
*/
|
private String goodsName;
|
|
/**
|
* 店铺id
|
*/
|
private Long storeId;
|
|
/**
|
* 商品规格id
|
*/
|
private Long goodsAttrId;
|
|
/**
|
* 商品规格信息
|
*/
|
private String goodsAttr;
|
|
/**
|
* 商品规格图
|
*/
|
private String goodsAttrPic;
|
|
/**
|
* 商品数量
|
*/
|
private Integer amount;
|
|
/**
|
* 商品价格
|
*/
|
private BigDecimal price;
|
|
/**
|
* 创建时间
|
*/
|
@TableField(fill = FieldFill.INSERT)
|
private Date createAt;
|
|
/**
|
* 修改时间
|
*/
|
@TableField(fill = FieldFill.UPDATE)
|
private Date updateAt;
|
|
@Override
|
public String toString() {
|
return "ComShopCartDO{" +
|
"id=" + id +
|
", userId=" + userId +
|
", goodsId=" + goodsId +
|
", goodsName=" + goodsName +
|
", storeId=" + storeId +
|
", goodsAttrId=" + goodsAttrId +
|
", goodsAttr=" + goodsAttr +
|
", goodsAttrPic=" + goodsAttrPic +
|
", amount=" + amount +
|
", price=" + price +
|
", createAt=" + createAt +
|
", updateAt=" + updateAt +
|
"}";
|
}
|
}
|