| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- <?php
- namespace app\entity\data\product;
- use app\entity\data\DataEntity;
- class ShareEntity extends DataEntity
- {
- public $id = 0; // 分享记录id
- public $uid = 0; // 用户ID
- public $productId = 0; // 商品ID
- public $shareChannel = 0; // 分享渠道 1 微信好友 2微信朋友圈
- public $clickNum = '0'; // 分享点击次数
- public $buyNum = '0'; // 购买次数
- public $ctime = ''; // 创建时间
- public $url = ''; // 分享链接
- public function getId(): int
- {
- return $this->id;
- }
- public function setId(int $id): ShareEntity
- {
- $this->id = $id;
- return $this;
- }
- public function getUid(): int
- {
- return $this->uid;
- }
- public function setUid(int $uid): ShareEntity
- {
- $this->uid = $uid;
- return $this;
- }
- public function getProductId(): int
- {
- return $this->productId;
- }
- public function setProductId(int $productId): ShareEntity
- {
- $this->productId = $productId;
- return $this;
- }
- public function getShareChannel(): int
- {
- return $this->shareChannel;
- }
- public function setShareChannel(int $shareChannel): ShareEntity
- {
- $this->shareChannel = $shareChannel;
- return $this;
- }
- public function getClickNum(): string
- {
- return $this->clickNum;
- }
- public function setClickNum(string $clickNum): ShareEntity
- {
- $this->clickNum = $clickNum;
- return $this;
- }
- public function getBuyNum(): string
- {
- return $this->buyNum;
- }
- public function setBuyNum(string $buyNum): ShareEntity
- {
- $this->buyNum = $buyNum;
- return $this;
- }
- public function getCtime(): string
- {
- return $this->ctime;
- }
- public function setCtime(string $ctime): ShareEntity
- {
- $this->ctime = $ctime;
- return $this;
- }
- public function getUrl(): string
- {
- return $this->url;
- }
- public function setUrl(string $url): ShareEntity
- {
- $this->url = $url;
- return $this;
- }
- }
|