UserPvLogEntity.php 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. <?php
  2. namespace app\entity\data\user;
  3. use app\entity\data\DataEntity;
  4. class UserPvLogEntity extends DataEntity
  5. {
  6. public $id = 0; // 自增id
  7. public $uid = 0; // 会员id
  8. public $pv = 0.00; // pv值
  9. public $status = 0; // pv状态: 1-有效 0-失效 -1待确认
  10. public $mark = ''; // 备注
  11. public $orderId = ''; // 订单id
  12. public $orderType = ''; // 订单类型
  13. public $settlementTime = null; // 结算时间
  14. public $addtime = 0; // 添加时间
  15. /**
  16. * @return int
  17. */
  18. public function getId(): int
  19. {
  20. return $this->id;
  21. }
  22. /**
  23. * @param int $id
  24. * @return UserPvLogEntity
  25. */
  26. public function setId(int $id): UserPvLogEntity
  27. {
  28. $this->id = $id;
  29. return $this;
  30. }
  31. /**
  32. * @return int
  33. */
  34. public function getUid(): int
  35. {
  36. return $this->uid;
  37. }
  38. /**
  39. * @param int $uid
  40. * @return UserPvLogEntity
  41. */
  42. public function setUid(int $uid): UserPvLogEntity
  43. {
  44. $this->uid = $uid;
  45. return $this;
  46. }
  47. /**
  48. * @return float
  49. */
  50. public function getPv(): float
  51. {
  52. return $this->pv;
  53. }
  54. /**
  55. * @param float $pv
  56. * @return UserPvLogEntity
  57. */
  58. public function setPv(float $pv): UserPvLogEntity
  59. {
  60. $this->pv = $pv;
  61. return $this;
  62. }
  63. /**
  64. * @return int
  65. */
  66. public function getStatus(): int
  67. {
  68. return $this->status;
  69. }
  70. /**
  71. * @param int $status
  72. * @return UserPvLogEntity
  73. */
  74. public function setStatus(int $status): UserPvLogEntity
  75. {
  76. $this->status = $status;
  77. return $this;
  78. }
  79. /**
  80. * @return string
  81. */
  82. public function getMark(): string
  83. {
  84. return $this->mark;
  85. }
  86. /**
  87. * @param string $mark
  88. * @return UserPvLogEntity
  89. */
  90. public function setMark(string $mark): UserPvLogEntity
  91. {
  92. $this->mark = $mark;
  93. return $this;
  94. }
  95. /**
  96. * @return string
  97. */
  98. public function getOrderId(): string
  99. {
  100. return $this->orderId;
  101. }
  102. /**
  103. * @param string $orderId
  104. * @return UserPvLogEntity
  105. */
  106. public function setOrderId(string $orderId): UserPvLogEntity
  107. {
  108. $this->orderId = $orderId;
  109. return $this;
  110. }
  111. /**
  112. * @return string
  113. */
  114. public function getOrderType(): string
  115. {
  116. return $this->orderType;
  117. }
  118. /**
  119. * @param string $orderType
  120. * @return UserPvLogEntity
  121. */
  122. public function setOrderType(string $orderType): UserPvLogEntity
  123. {
  124. $this->orderType = $orderType;
  125. return $this;
  126. }
  127. /**
  128. * @return null
  129. */
  130. public function getSettlementTime()
  131. {
  132. return $this->settlementTime;
  133. }
  134. /**
  135. * @param null $settlementTime
  136. * @return UserPvLogEntity
  137. */
  138. public function setSettlementTime($settlementTime)
  139. {
  140. $this->settlementTime = $settlementTime;
  141. return $this;
  142. }
  143. /**
  144. * @return int
  145. */
  146. public function getAddtime(): int
  147. {
  148. return $this->addtime;
  149. }
  150. /**
  151. * @param int $addtime
  152. * @return UserPvLogEntity
  153. */
  154. public function setAddtime(int $addtime): UserPvLogEntity
  155. {
  156. $this->addtime = $addtime;
  157. return $this;
  158. }
  159. }