| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181 |
- <?php
- namespace app\entity\data\shipping;
- use app\entity\data\DataEntity;
- class ShippingTemplateEntity extends DataEntity
- {
- public $shippingTemplateId = 0; // 编号
- public $name = ''; // 模板名称
- public $type = 1; // 计费方式 0=数量 1=重量 2=体积
- public $appoint = 0; // 开启指定包邮
- public $undelivery = 0; // 开启指定区域不配送
- public $merId = 0; // 商户 id
- public $isDefault = 0; // 默认模板
- public $sort = 0; // 排序
- public $createTime = null; // 添加时间
- /**
- * @return int
- */
- public function getShippingTemplateId(): int
- {
- return $this->shippingTemplateId;
- }
- /**
- * @param int $shippingTemplateId
- * @return ShippingTemplateEntity
- */
- public function setShippingTemplateId(int $shippingTemplateId): ShippingTemplateEntity
- {
- $this->shippingTemplateId = $shippingTemplateId;
- return $this;
- }
- /**
- * @return string
- */
- public function getName(): string
- {
- return $this->name;
- }
- /**
- * @param string $name
- * @return ShippingTemplateEntity
- */
- public function setName(string $name): ShippingTemplateEntity
- {
- $this->name = $name;
- return $this;
- }
- /**
- * @return int
- */
- public function getType(): int
- {
- return $this->type;
- }
- /**
- * @param int $type
- * @return ShippingTemplateEntity
- */
- public function setType(int $type): ShippingTemplateEntity
- {
- $this->type = $type;
- return $this;
- }
- /**
- * @return int
- */
- public function getAppoint(): int
- {
- return $this->appoint;
- }
- /**
- * @param int $appoint
- * @return ShippingTemplateEntity
- */
- public function setAppoint(int $appoint): ShippingTemplateEntity
- {
- $this->appoint = $appoint;
- return $this;
- }
- /**
- * @return int
- */
- public function getUndelivery(): int
- {
- return $this->undelivery;
- }
- /**
- * @param int $undelivery
- * @return ShippingTemplateEntity
- */
- public function setUndelivery(int $undelivery): ShippingTemplateEntity
- {
- $this->undelivery = $undelivery;
- return $this;
- }
- /**
- * @return int
- */
- public function getMerId(): int
- {
- return $this->merId;
- }
- /**
- * @param int $merId
- * @return ShippingTemplateEntity
- */
- public function setMerId(int $merId): ShippingTemplateEntity
- {
- $this->merId = $merId;
- return $this;
- }
- /**
- * @return int
- */
- public function getIsDefault(): int
- {
- return $this->isDefault;
- }
- /**
- * @param int $isDefault
- * @return ShippingTemplateEntity
- */
- public function setIsDefault(int $isDefault): ShippingTemplateEntity
- {
- $this->isDefault = $isDefault;
- return $this;
- }
- /**
- * @return int
- */
- public function getSort(): int
- {
- return $this->sort;
- }
- /**
- * @param int $sort
- * @return ShippingTemplateEntity
- */
- public function setSort(int $sort): ShippingTemplateEntity
- {
- $this->sort = $sort;
- return $this;
- }
- /**
- * @return null
- */
- public function getCreateTime()
- {
- return $this->createTime;
- }
- /**
- * @param null $createTime
- * @return ShippingTemplateEntity
- */
- public function setCreateTime($createTime)
- {
- $this->createTime = $createTime;
- return $this;
- }
- }
|