This commit is contained in:
chenbo 2024-02-21 17:56:42 +08:00
parent 8e619b7d11
commit 0705b6a36e
2 changed files with 19 additions and 0 deletions

View File

@ -19,6 +19,7 @@ use app\adminapi\logic\user\UserLogic;
use app\adminapi\validate\user\AdjustUserMoney; use app\adminapi\validate\user\AdjustUserMoney;
use app\adminapi\validate\user\UserValidate; use app\adminapi\validate\user\UserValidate;
use app\common\logic\CompanyLogic; use app\common\logic\CompanyLogic;
use app\common\model\VillagerInformation;
use think\facade\Db; use think\facade\Db;
use think\facade\Request; use think\facade\Request;
use app\common\logic\contract\ContractLogic; use app\common\logic\contract\ContractLogic;
@ -126,4 +127,13 @@ class UserController extends BaseAdminController
{ {
return $this->data(CompanyLogic::getList()); 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);
}
} }

View File

@ -0,0 +1,9 @@
<?php
namespace app\common\model;
class VillagerInformation extends BaseModel
{
protected $name = 'villager_information';
}