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 @@ +