StoreCouponUserEntity.php 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. <?php
  2. namespace app\entity\data\store;
  3. use app\entity\data\DataEntity;
  4. class StoreCouponUserEntity extends DataEntity
  5. {
  6. public $couponUserId = 0; // 优惠券发放记录id
  7. public $couponId = 0; // 兑换的项目id
  8. public $merId = 0; // 商户 id
  9. public $uid = 0; // 优惠券所属用户
  10. public $couponTitle = ''; // 优惠券名称
  11. public $couponPrice = '0.00'; // 优惠券的面值
  12. public $useMinPrice = '0.00'; // 最低消费多少金额可用优惠券
  13. public $createTime = null; // 优惠券创建时间
  14. public $startTime = null; // 优惠券开启时间
  15. public $endTime = null; // 优惠券结束时间
  16. public $useTime = null; // 使用时间
  17. public $type = 'send'; // 获取方式
  18. public $status = 0; // 状态(0:未使用,1:已使用, 2:已过期)
  19. public $isFail = 0; // 是否有效
  20. /**
  21. * @return int
  22. */
  23. public function getCouponUserId(): int
  24. {
  25. return $this->couponUserId;
  26. }
  27. /**
  28. * @param int $couponUserId
  29. * @return StoreCouponUserEntity
  30. */
  31. public function setCouponUserId(int $couponUserId): StoreCouponUserEntity
  32. {
  33. $this->couponUserId = $couponUserId;
  34. return $this;
  35. }
  36. /**
  37. * @return int
  38. */
  39. public function getCouponId(): int
  40. {
  41. return $this->couponId;
  42. }
  43. /**
  44. * @param int $couponId
  45. * @return StoreCouponUserEntity
  46. */
  47. public function setCouponId(int $couponId): StoreCouponUserEntity
  48. {
  49. $this->couponId = $couponId;
  50. return $this;
  51. }
  52. /**
  53. * @return int
  54. */
  55. public function getMerId(): int
  56. {
  57. return $this->merId;
  58. }
  59. /**
  60. * @param int $merId
  61. * @return StoreCouponUserEntity
  62. */
  63. public function setMerId(int $merId): StoreCouponUserEntity
  64. {
  65. $this->merId = $merId;
  66. return $this;
  67. }
  68. /**
  69. * @return int
  70. */
  71. public function getUid(): int
  72. {
  73. return $this->uid;
  74. }
  75. /**
  76. * @param int $uid
  77. * @return StoreCouponUserEntity
  78. */
  79. public function setUid(int $uid): StoreCouponUserEntity
  80. {
  81. $this->uid = $uid;
  82. return $this;
  83. }
  84. /**
  85. * @return string
  86. */
  87. public function getCouponTitle(): string
  88. {
  89. return $this->couponTitle;
  90. }
  91. /**
  92. * @param string $couponTitle
  93. * @return StoreCouponUserEntity
  94. */
  95. public function setCouponTitle(string $couponTitle): StoreCouponUserEntity
  96. {
  97. $this->couponTitle = $couponTitle;
  98. return $this;
  99. }
  100. /**
  101. * @return string
  102. */
  103. public function getCouponPrice(): string
  104. {
  105. return $this->couponPrice;
  106. }
  107. /**
  108. * @param string $couponPrice
  109. * @return StoreCouponUserEntity
  110. */
  111. public function setCouponPrice(string $couponPrice): StoreCouponUserEntity
  112. {
  113. $this->couponPrice = $couponPrice;
  114. return $this;
  115. }
  116. /**
  117. * @return string
  118. */
  119. public function getUseMinPrice(): string
  120. {
  121. return $this->useMinPrice;
  122. }
  123. /**
  124. * @param string $useMinPrice
  125. * @return StoreCouponUserEntity
  126. */
  127. public function setUseMinPrice(string $useMinPrice): StoreCouponUserEntity
  128. {
  129. $this->useMinPrice = $useMinPrice;
  130. return $this;
  131. }
  132. /**
  133. * @return null
  134. */
  135. public function getCreateTime()
  136. {
  137. return $this->createTime;
  138. }
  139. /**
  140. * @param null $createTime
  141. * @return StoreCouponUserEntity
  142. */
  143. public function setCreateTime($createTime)
  144. {
  145. $this->createTime = $createTime;
  146. return $this;
  147. }
  148. /**
  149. * @return null
  150. */
  151. public function getStartTime()
  152. {
  153. return $this->startTime;
  154. }
  155. /**
  156. * @param null $startTime
  157. * @return StoreCouponUserEntity
  158. */
  159. public function setStartTime($startTime)
  160. {
  161. $this->startTime = $startTime;
  162. return $this;
  163. }
  164. /**
  165. * @return null
  166. */
  167. public function getEndTime()
  168. {
  169. return $this->endTime;
  170. }
  171. /**
  172. * @param null $endTime
  173. * @return StoreCouponUserEntity
  174. */
  175. public function setEndTime($endTime)
  176. {
  177. $this->endTime = $endTime;
  178. return $this;
  179. }
  180. /**
  181. * @return null
  182. */
  183. public function getUseTime()
  184. {
  185. return $this->useTime;
  186. }
  187. /**
  188. * @param null $useTime
  189. * @return StoreCouponUserEntity
  190. */
  191. public function setUseTime($useTime)
  192. {
  193. $this->useTime = $useTime;
  194. return $this;
  195. }
  196. /**
  197. * @return string
  198. */
  199. public function getType(): string
  200. {
  201. return $this->type;
  202. }
  203. /**
  204. * @param string $type
  205. * @return StoreCouponUserEntity
  206. */
  207. public function setType(string $type): StoreCouponUserEntity
  208. {
  209. $this->type = $type;
  210. return $this;
  211. }
  212. /**
  213. * @return int
  214. */
  215. public function getStatus(): int
  216. {
  217. return $this->status;
  218. }
  219. /**
  220. * @param int $status
  221. * @return StoreCouponUserEntity
  222. */
  223. public function setStatus(int $status): StoreCouponUserEntity
  224. {
  225. $this->status = $status;
  226. return $this;
  227. }
  228. /**
  229. * @return int
  230. */
  231. public function getIsFail(): int
  232. {
  233. return $this->isFail;
  234. }
  235. /**
  236. * @param int $isFail
  237. * @return StoreCouponUserEntity
  238. */
  239. public function setIsFail(int $isFail): StoreCouponUserEntity
  240. {
  241. $this->isFail = $isFail;
  242. return $this;
  243. }
  244. }