From 0705b6a36e885f0f8a648f0a044242846e19c5c1 Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Wed, 21 Feb 2024 17:56:42 +0800 Subject: [PATCH] add --- app/adminapi/controller/user/UserController.php | 10 ++++++++++ app/common/model/VillagerInformation.php | 9 +++++++++ 2 files changed, 19 insertions(+) create mode 100644 app/common/model/VillagerInformation.php diff --git a/app/adminapi/controller/user/UserController.php b/app/adminapi/controller/user/UserController.php index 754a90c5..9f52fac8 100644 --- a/app/adminapi/controller/user/UserController.php +++ b/app/adminapi/controller/user/UserController.php @@ -19,6 +19,7 @@ use app\adminapi\logic\user\UserLogic; use app\adminapi\validate\user\AdjustUserMoney; use app\adminapi\validate\user\UserValidate; use app\common\logic\CompanyLogic; +use app\common\model\VillagerInformation; use think\facade\Db; use think\facade\Request; use app\common\logic\contract\ContractLogic; @@ -126,4 +127,13 @@ class UserController extends BaseAdminController { return $this->data(CompanyLogic::getList()); } + + public function villageInfoList() + { + //ๅˆ†้กต + $pageNo = $this->request->get('page_no',1); + $pageSize = $this->request->get('page_size', 25); + $list = VillagerInformation::page($pageNo,$pageSize)->select()->toArray(); + return $this->success('ๆˆๅŠŸ', $list); + } } \ No newline at end of file diff --git a/app/common/model/VillagerInformation.php b/app/common/model/VillagerInformation.php new file mode 100644 index 00000000..9fa599fe --- /dev/null +++ b/app/common/model/VillagerInformation.php @@ -0,0 +1,9 @@ +