| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- <?php
- namespace app\entity\data\product;
- use app\entity\data\DataEntity;
- class SeckillEntity extends DataEntity
- {
- public $id = 0; // 自增ID
- public $productId = 0; // 秒杀商品ID
- public $seckillDate = null; // 秒杀时间段
- public $status = 1; // 状态 1 开启 0 关闭 2 已结束
- public $ctime = null; // 创建时间
- public $merId = 0; // 商户ID
- public function getId(): int
- {
- return $this->id;
- }
- public function setId(int $id): SeckillEntity
- {
- $this->id = $id;
- return $this;
- }
- public function getProductId(): int
- {
- return $this->productId;
- }
- public function setProductId(int $productId): SeckillEntity
- {
- $this->productId = $productId;
- return $this;
- }
- /**
- * @return null
- */
- public function getSeckillDate()
- {
- return $this->seckillDate;
- }
- /**
- * @param null $seckillDate
- * @return SeckillEntity
- */
- public function setSeckillDate($seckillDate)
- {
- $this->seckillDate = $seckillDate;
- return $this;
- }
- public function getStatus(): int
- {
- return $this->status;
- }
- public function setStatus(int $status): SeckillEntity
- {
- $this->status = $status;
- return $this;
- }
- /**
- * @return null
- */
- public function getCtime()
- {
- return $this->ctime;
- }
- /**
- * @param null $ctime
- * @return SeckillEntity
- */
- public function setCtime($ctime)
- {
- $this->ctime = $ctime;
- return $this;
- }
- public function getMerId(): int
- {
- return $this->merId;
- }
- public function setMerId(int $merId): SeckillEntity
- {
- $this->merId = $merId;
- return $this;
- }
- }
|