From cd83ab0ccda8629c5192924dacabf7eb28c80132 Mon Sep 17 00:00:00 2001 From: luofei <604446095@qq.com> Date: Mon, 19 Feb 2024 13:46:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8C=BA=E5=9F=9Fmodel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/model/store/GeoArea.php | 31 ++++++++++++++++++++++++++ app/common/model/store/GeoBrigade.php | 30 +++++++++++++++++++++++++ app/common/model/store/GeoCity.php | 31 ++++++++++++++++++++++++++ app/common/model/store/GeoProvince.php | 30 +++++++++++++++++++++++++ app/common/model/store/GeoStreet.php | 30 +++++++++++++++++++++++++ app/common/model/store/GeoVillage.php | 30 +++++++++++++++++++++++++ 6 files changed, 182 insertions(+) create mode 100644 app/common/model/store/GeoArea.php create mode 100644 app/common/model/store/GeoBrigade.php create mode 100644 app/common/model/store/GeoCity.php create mode 100644 app/common/model/store/GeoProvince.php create mode 100644 app/common/model/store/GeoStreet.php create mode 100644 app/common/model/store/GeoVillage.php diff --git a/app/common/model/store/GeoArea.php b/app/common/model/store/GeoArea.php new file mode 100644 index 00000000..8c8a77a4 --- /dev/null +++ b/app/common/model/store/GeoArea.php @@ -0,0 +1,31 @@ + +// +---------------------------------------------------------------------- + + +namespace app\common\model\store; + + +use app\common\model\BaseModel; + +class GeoArea extends BaseModel +{ + + public static function tablePk(): ?string + { + return 'id'; + } + + public static function tableName(): string + { + return 'geo_area'; + } + +} diff --git a/app/common/model/store/GeoBrigade.php b/app/common/model/store/GeoBrigade.php new file mode 100644 index 00000000..6a9c2d80 --- /dev/null +++ b/app/common/model/store/GeoBrigade.php @@ -0,0 +1,30 @@ + +// +---------------------------------------------------------------------- + + +namespace app\common\model\store; + + +use app\common\model\BaseModel; + +class GeoBrigade extends BaseModel +{ + + public static function tablePk(): ?string + { + return 'id'; + } + + public static function tableName(): string + { + return 'geo_brigade'; + } +} diff --git a/app/common/model/store/GeoCity.php b/app/common/model/store/GeoCity.php new file mode 100644 index 00000000..45e0fc5b --- /dev/null +++ b/app/common/model/store/GeoCity.php @@ -0,0 +1,31 @@ + +// +---------------------------------------------------------------------- + + +namespace app\common\model\store; + + +use app\common\model\BaseModel; + +class GeoCity extends BaseModel +{ + + public static function tablePk(): ?string + { + return 'id'; + } + + public static function tableName(): string + { + return 'geo_city'; + } + +} diff --git a/app/common/model/store/GeoProvince.php b/app/common/model/store/GeoProvince.php new file mode 100644 index 00000000..4e91f8f5 --- /dev/null +++ b/app/common/model/store/GeoProvince.php @@ -0,0 +1,30 @@ + +// +---------------------------------------------------------------------- + + +namespace app\common\model\store; + + +use app\common\model\BaseModel; + +class GeoProvince extends BaseModel +{ + + public static function tablePk(): ?string + { + return 'id'; + } + + public static function tableName(): string + { + return 'geo_province'; + } +} diff --git a/app/common/model/store/GeoStreet.php b/app/common/model/store/GeoStreet.php new file mode 100644 index 00000000..1923eb94 --- /dev/null +++ b/app/common/model/store/GeoStreet.php @@ -0,0 +1,30 @@ + +// +---------------------------------------------------------------------- + + +namespace app\common\model\store; + + +use app\common\model\BaseModel; + +class GeoStreet extends BaseModel +{ + + public static function tablePk(): ?string + { + return 'id'; + } + + public static function tableName(): string + { + return 'geo_street'; + } +} diff --git a/app/common/model/store/GeoVillage.php b/app/common/model/store/GeoVillage.php new file mode 100644 index 00000000..a1eaca3b --- /dev/null +++ b/app/common/model/store/GeoVillage.php @@ -0,0 +1,30 @@ + +// +---------------------------------------------------------------------- + + +namespace app\common\model\store; + + +use app\common\model\BaseModel; + +class GeoVillage extends BaseModel +{ + + public static function tablePk(): ?string + { + return 'id'; + } + + public static function tableName(): string + { + return 'geo_village'; + } +}