| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247 |
- <?php
- namespace app\entity\data\user;
- use app\entity\data\DataEntity;
- class AddressEntity extends DataEntity
- {
- public $addressId = 0; // 用户地址id
- public $uid = 0; // 用户id
- public $realName = ''; // 收货人姓名
- public $phone = ''; // 收货人电话
- public $province = ''; // 收货人所在省
- public $city = ''; // 收货人所在市
- public $cityId = 0; // 城市id
- public $district = ''; // 收货人所在区
- public $village = ''; // 收货人所在村
- public $villageId = 0; // 村id
- public $detail = ''; // 收货人详细地址
- public $postCode = 0; // 邮编
- public $longitude = '0'; // 经度
- public $latitude = '0'; // 纬度
- public $isDefault = 0; // 是否默认
- public $isDel = 0; // 是否删除
- public $createTime = null; // 添加时间
- public $codeList = ''; // 地址id(regions)
- public $codeListByDecode = []; // 地址id(regions)
- public function getAddressId(): int
- {
- return $this->addressId;
- }
- public function setAddressId(int $addressId): AddressEntity
- {
- $this->addressId = $addressId;
- return $this;
- }
- public function getUid(): int
- {
- return $this->uid;
- }
- public function setUid(int $uid): AddressEntity
- {
- $this->uid = $uid;
- return $this;
- }
- public function getRealName(): string
- {
- return $this->realName;
- }
- public function setRealName(string $realName): AddressEntity
- {
- $this->realName = $realName;
- return $this;
- }
- public function getPhone(): string
- {
- return $this->phone;
- }
- public function setPhone(string $phone): AddressEntity
- {
- $this->phone = $phone;
- return $this;
- }
- public function getProvince(): string
- {
- return $this->province;
- }
- public function setProvince(string $province): AddressEntity
- {
- $this->province = $province;
- return $this;
- }
- public function getCity(): string
- {
- return $this->city;
- }
- public function setCity(string $city): AddressEntity
- {
- $this->city = $city;
- return $this;
- }
- public function getCityId(): int
- {
- return $this->cityId;
- }
- public function setCityId(int $cityId): AddressEntity
- {
- $this->cityId = $cityId;
- return $this;
- }
- public function getDistrict(): string
- {
- return $this->district;
- }
- public function setDistrict(string $district): AddressEntity
- {
- $this->district = $district;
- return $this;
- }
- public function getVillage(): string
- {
- return $this->village;
- }
- public function setVillage(string $village): AddressEntity
- {
- $this->village = $village;
- return $this;
- }
- public function getVillageId(): int
- {
- return $this->villageId;
- }
- public function setVillageId(int $villageId): AddressEntity
- {
- $this->villageId = $villageId;
- return $this;
- }
- public function getDetail(): string
- {
- return $this->detail;
- }
- public function setDetail(string $detail): AddressEntity
- {
- $this->detail = $detail;
- return $this;
- }
- public function getPostCode(): int
- {
- return $this->postCode;
- }
- public function setPostCode(int $postCode): AddressEntity
- {
- $this->postCode = $postCode;
- return $this;
- }
- public function getLongitude(): string
- {
- return $this->longitude;
- }
- public function setLongitude(string $longitude): AddressEntity
- {
- $this->longitude = $longitude;
- return $this;
- }
- public function getLatitude(): string
- {
- return $this->latitude;
- }
- public function setLatitude(string $latitude): AddressEntity
- {
- $this->latitude = $latitude;
- return $this;
- }
- public function getIsDefault(): int
- {
- return $this->isDefault;
- }
- public function setIsDefault(int $isDefault): AddressEntity
- {
- $this->isDefault = $isDefault;
- return $this;
- }
- public function getIsDel(): int
- {
- return $this->isDel;
- }
- public function setIsDel(int $isDel): AddressEntity
- {
- $this->isDel = $isDel;
- return $this;
- }
- /**
- * @return string
- */
- public function getCreateTime(): ?string
- {
- return $this->createTime;
- }
- /**
- * @param string $createTime
- * @return AddressEntity
- */
- public function setCreateTime(string $createTime): AddressEntity
- {
- $this->createTime = $createTime;
- return $this;
- }
- public function getCodeList(): string
- {
- return $this->codeList;
- }
- public function setCodeList(string $codeList): AddressEntity
- {
- $this->codeListByDecode = explode(',', $codeList);
- $this->codeList = $codeList;
- return $this;
- }
- public function getCodeListByDecode(): array
- {
- return $this->codeListByDecode;
- }
- public function setCodeListByDecode(array $codeListByDecode): AddressEntity
- {
- $this->codeListByDecode = $codeListByDecode;
- $this->codeList = implode(',', $codeListByDecode);
- return $this;
- }
- }
|