SeckillActiveEntity.php 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. <?php
  2. namespace app\entity\data\store;
  3. use app\entity\data\DataEntity;
  4. class SeckillActiveEntity extends DataEntity
  5. {
  6. public $seckillActiveId = 0; // 活动ID
  7. public $startDay = null; // 开始日期
  8. public $endDay = null; // 结束日期
  9. public $startTime = 0; // 开始时间
  10. public $endTime = 0; // 结束时间
  11. public $merId = 0; // 商户ID
  12. public $productId = 0; // 商品ID
  13. public $oncePayCount = 0; // 每人每日购买数量限制
  14. public $allPayCount = 0; // 总购买数量限制
  15. public $status = 0; // 活动状态(0: 进行中, -1: 过时)
  16. /**
  17. * @return int
  18. */
  19. public function getSeckillActiveId(): int
  20. {
  21. return $this->seckillActiveId;
  22. }
  23. /**
  24. * @param int $seckillActiveId
  25. * @return SeckillActiveEntity
  26. */
  27. public function setSeckillActiveId(int $seckillActiveId): SeckillActiveEntity
  28. {
  29. $this->seckillActiveId = $seckillActiveId;
  30. return $this;
  31. }
  32. /**
  33. * @return mixed
  34. */
  35. public function getStartDay()
  36. {
  37. return $this->startDay;
  38. }
  39. /**
  40. * @param mixed $startDay
  41. * @return SeckillActiveEntity
  42. */
  43. public function setStartDay($startDay)
  44. {
  45. $this->startDay = $startDay;
  46. return $this;
  47. }
  48. /**
  49. * @return mixed
  50. */
  51. public function getEndDay()
  52. {
  53. return $this->endDay;
  54. }
  55. /**
  56. * @param mixed $endDay
  57. * @return SeckillActiveEntity
  58. */
  59. public function setEndDay($endDay)
  60. {
  61. $this->endDay = $endDay;
  62. return $this;
  63. }
  64. /**
  65. * @return int
  66. */
  67. public function getStartTime(): int
  68. {
  69. return $this->startTime;
  70. }
  71. /**
  72. * @param int $startTime
  73. * @return SeckillActiveEntity
  74. */
  75. public function setStartTime(int $startTime): SeckillActiveEntity
  76. {
  77. $this->startTime = $startTime;
  78. return $this;
  79. }
  80. /**
  81. * @return int
  82. */
  83. public function getEndTime(): int
  84. {
  85. return $this->endTime;
  86. }
  87. /**
  88. * @param int $endTime
  89. * @return SeckillActiveEntity
  90. */
  91. public function setEndTime(int $endTime): SeckillActiveEntity
  92. {
  93. $this->endTime = $endTime;
  94. return $this;
  95. }
  96. /**
  97. * @return int
  98. */
  99. public function getMerId(): int
  100. {
  101. return $this->merId;
  102. }
  103. /**
  104. * @param int $merId
  105. * @return SeckillActiveEntity
  106. */
  107. public function setMerId(int $merId): SeckillActiveEntity
  108. {
  109. $this->merId = $merId;
  110. return $this;
  111. }
  112. /**
  113. * @return int
  114. */
  115. public function getProductId(): int
  116. {
  117. return $this->productId;
  118. }
  119. /**
  120. * @param int $productId
  121. * @return SeckillActiveEntity
  122. */
  123. public function setProductId(int $productId): SeckillActiveEntity
  124. {
  125. $this->productId = $productId;
  126. return $this;
  127. }
  128. /**
  129. * @return int
  130. */
  131. public function getOncePayCount(): int
  132. {
  133. return $this->oncePayCount;
  134. }
  135. /**
  136. * @param int $oncePayCount
  137. * @return SeckillActiveEntity
  138. */
  139. public function setOncePayCount(int $oncePayCount): SeckillActiveEntity
  140. {
  141. $this->oncePayCount = $oncePayCount;
  142. return $this;
  143. }
  144. /**
  145. * @return int
  146. */
  147. public function getAllPayCount(): int
  148. {
  149. return $this->allPayCount;
  150. }
  151. /**
  152. * @param int $allPayCount
  153. * @return SeckillActiveEntity
  154. */
  155. public function setAllPayCount(int $allPayCount): SeckillActiveEntity
  156. {
  157. $this->allPayCount = $allPayCount;
  158. return $this;
  159. }
  160. /**
  161. * @return int
  162. */
  163. public function getStatus(): int
  164. {
  165. return $this->status;
  166. }
  167. /**
  168. * @param int $status
  169. * @return SeckillActiveEntity
  170. */
  171. public function setStatus(int $status): SeckillActiveEntity
  172. {
  173. $this->status = $status;
  174. return $this;
  175. }
  176. }