ShareEntity.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <?php
  2. namespace app\entity\data\product;
  3. use app\entity\data\DataEntity;
  4. class ShareEntity extends DataEntity
  5. {
  6. public $id = 0; // 分享记录id
  7. public $uid = 0; // 用户ID
  8. public $productId = 0; // 商品ID
  9. public $shareChannel = 0; // 分享渠道 1 微信好友 2微信朋友圈
  10. public $clickNum = '0'; // 分享点击次数
  11. public $buyNum = '0'; // 购买次数
  12. public $ctime = ''; // 创建时间
  13. public $url = ''; // 分享链接
  14. public function getId(): int
  15. {
  16. return $this->id;
  17. }
  18. public function setId(int $id): ShareEntity
  19. {
  20. $this->id = $id;
  21. return $this;
  22. }
  23. public function getUid(): int
  24. {
  25. return $this->uid;
  26. }
  27. public function setUid(int $uid): ShareEntity
  28. {
  29. $this->uid = $uid;
  30. return $this;
  31. }
  32. public function getProductId(): int
  33. {
  34. return $this->productId;
  35. }
  36. public function setProductId(int $productId): ShareEntity
  37. {
  38. $this->productId = $productId;
  39. return $this;
  40. }
  41. public function getShareChannel(): int
  42. {
  43. return $this->shareChannel;
  44. }
  45. public function setShareChannel(int $shareChannel): ShareEntity
  46. {
  47. $this->shareChannel = $shareChannel;
  48. return $this;
  49. }
  50. public function getClickNum(): string
  51. {
  52. return $this->clickNum;
  53. }
  54. public function setClickNum(string $clickNum): ShareEntity
  55. {
  56. $this->clickNum = $clickNum;
  57. return $this;
  58. }
  59. public function getBuyNum(): string
  60. {
  61. return $this->buyNum;
  62. }
  63. public function setBuyNum(string $buyNum): ShareEntity
  64. {
  65. $this->buyNum = $buyNum;
  66. return $this;
  67. }
  68. public function getCtime(): string
  69. {
  70. return $this->ctime;
  71. }
  72. public function setCtime(string $ctime): ShareEntity
  73. {
  74. $this->ctime = $ctime;
  75. return $this;
  76. }
  77. public function getUrl(): string
  78. {
  79. return $this->url;
  80. }
  81. public function setUrl(string $url): ShareEntity
  82. {
  83. $this->url = $url;
  84. return $this;
  85. }
  86. }