| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199 |
- <?php
- namespace app\entity\data\store;
- use app\entity\data\DataEntity;
- class SeckillActiveEntity extends DataEntity
- {
- public $seckillActiveId = 0; // 活动ID
- public $startDay = null; // 开始日期
- public $endDay = null; // 结束日期
- public $startTime = 0; // 开始时间
- public $endTime = 0; // 结束时间
- public $merId = 0; // 商户ID
- public $productId = 0; // 商品ID
- public $oncePayCount = 0; // 每人每日购买数量限制
- public $allPayCount = 0; // 总购买数量限制
- public $status = 0; // 活动状态(0: 进行中, -1: 过时)
- /**
- * @return int
- */
- public function getSeckillActiveId(): int
- {
- return $this->seckillActiveId;
- }
- /**
- * @param int $seckillActiveId
- * @return SeckillActiveEntity
- */
- public function setSeckillActiveId(int $seckillActiveId): SeckillActiveEntity
- {
- $this->seckillActiveId = $seckillActiveId;
- return $this;
- }
- /**
- * @return mixed
- */
- public function getStartDay()
- {
- return $this->startDay;
- }
- /**
- * @param mixed $startDay
- * @return SeckillActiveEntity
- */
- public function setStartDay($startDay)
- {
- $this->startDay = $startDay;
- return $this;
- }
- /**
- * @return mixed
- */
- public function getEndDay()
- {
- return $this->endDay;
- }
- /**
- * @param mixed $endDay
- * @return SeckillActiveEntity
- */
- public function setEndDay($endDay)
- {
- $this->endDay = $endDay;
- return $this;
- }
- /**
- * @return int
- */
- public function getStartTime(): int
- {
- return $this->startTime;
- }
- /**
- * @param int $startTime
- * @return SeckillActiveEntity
- */
- public function setStartTime(int $startTime): SeckillActiveEntity
- {
- $this->startTime = $startTime;
- return $this;
- }
- /**
- * @return int
- */
- public function getEndTime(): int
- {
- return $this->endTime;
- }
- /**
- * @param int $endTime
- * @return SeckillActiveEntity
- */
- public function setEndTime(int $endTime): SeckillActiveEntity
- {
- $this->endTime = $endTime;
- return $this;
- }
- /**
- * @return int
- */
- public function getMerId(): int
- {
- return $this->merId;
- }
- /**
- * @param int $merId
- * @return SeckillActiveEntity
- */
- public function setMerId(int $merId): SeckillActiveEntity
- {
- $this->merId = $merId;
- return $this;
- }
- /**
- * @return int
- */
- public function getProductId(): int
- {
- return $this->productId;
- }
- /**
- * @param int $productId
- * @return SeckillActiveEntity
- */
- public function setProductId(int $productId): SeckillActiveEntity
- {
- $this->productId = $productId;
- return $this;
- }
- /**
- * @return int
- */
- public function getOncePayCount(): int
- {
- return $this->oncePayCount;
- }
- /**
- * @param int $oncePayCount
- * @return SeckillActiveEntity
- */
- public function setOncePayCount(int $oncePayCount): SeckillActiveEntity
- {
- $this->oncePayCount = $oncePayCount;
- return $this;
- }
- /**
- * @return int
- */
- public function getAllPayCount(): int
- {
- return $this->allPayCount;
- }
- /**
- * @param int $allPayCount
- * @return SeckillActiveEntity
- */
- public function setAllPayCount(int $allPayCount): SeckillActiveEntity
- {
- $this->allPayCount = $allPayCount;
- return $this;
- }
- /**
- * @return int
- */
- public function getStatus(): int
- {
- return $this->status;
- }
- /**
- * @param int $status
- * @return SeckillActiveEntity
- */
- public function setStatus(int $status): SeckillActiveEntity
- {
- $this->status = $status;
- return $this;
- }
- }
|