| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184 |
- <?php
- namespace app\entity\data\store;
- use app\entity\data\DataEntity;
- class CartEntity extends DataEntity
- {
- public $cartId = 0; // 购物车表ID
- public $uid = 0; // 用户ID
- public $merId = 0; // 商户ID
- public $productType = 0; // 类型 0=普通产品
- public $productId = 0; // 商品ID
- public $productAttrUnique = ''; // 商品属性
- public $cartNum = 0; // 商品数量
- public $createTime = null; // 添加时间
- public $source = 0; // 来源 1=直播间
- public $sourceId = 0; // 来源关联ID
- public $isPay = 0; // 0 = 未购买 1 = 已购买
- public $isDel = 0; // 是否删除
- public $isNew = 0; // 是否为立即购买
- public $isFail = 0; // 是否失效
- public function getCartId(): int
- {
- return $this->cartId;
- }
- public function setCartId(int $cartId): CartEntity
- {
- $this->cartId = $cartId;
- return $this;
- }
- public function getUid(): int
- {
- return $this->uid;
- }
- public function setUid(int $uid): CartEntity
- {
- $this->uid = $uid;
- return $this;
- }
- public function getMerId(): int
- {
- return $this->merId;
- }
- public function setMerId(int $merId): CartEntity
- {
- $this->merId = $merId;
- return $this;
- }
- public function getProductType(): int
- {
- return $this->productType;
- }
- public function setProductType(int $productType): CartEntity
- {
- $this->productType = $productType;
- return $this;
- }
- public function getProductId(): int
- {
- return $this->productId;
- }
- public function setProductId(int $productId): CartEntity
- {
- $this->productId = $productId;
- return $this;
- }
- public function getProductAttrUnique(): string
- {
- return $this->productAttrUnique;
- }
- public function setProductAttrUnique(string $productAttrUnique): CartEntity
- {
- $this->productAttrUnique = $productAttrUnique;
- return $this;
- }
- public function getCartNum(): int
- {
- return $this->cartNum;
- }
- public function setCartNum(int $cartNum): CartEntity
- {
- $this->cartNum = $cartNum;
- return $this;
- }
- /**
- * @return null
- */
- public function getCreateTime()
- {
- return $this->createTime;
- }
- /**
- * @param null $createTime
- * @return CartEntity
- */
- public function setCreateTime($createTime)
- {
- $this->createTime = $createTime;
- return $this;
- }
- public function getSource(): int
- {
- return $this->source;
- }
- public function setSource(int $source): CartEntity
- {
- $this->source = $source;
- return $this;
- }
- public function getSourceId(): int
- {
- return $this->sourceId;
- }
- public function setSourceId(int $sourceId): CartEntity
- {
- $this->sourceId = $sourceId;
- return $this;
- }
- public function getIsPay(): int
- {
- return $this->isPay;
- }
- public function setIsPay(int $isPay): CartEntity
- {
- $this->isPay = $isPay;
- return $this;
- }
- public function getIsDel(): int
- {
- return $this->isDel;
- }
- public function setIsDel(int $isDel): CartEntity
- {
- $this->isDel = $isDel;
- return $this;
- }
- public function getIsNew(): int
- {
- return $this->isNew;
- }
- public function setIsNew(int $isNew): CartEntity
- {
- $this->isNew = $isNew;
- return $this;
- }
- public function getIsFail(): int
- {
- return $this->isFail;
- }
- public function setIsFail(int $isFail): CartEntity
- {
- $this->isFail = $isFail;
- return $this;
- }
- }
|