add
This commit is contained in:
parent
8e619b7d11
commit
0705b6a36e
|
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -0,0 +1,9 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace app\common\model;
|
||||||
|
|
||||||
|
|
||||||
|
class VillagerInformation extends BaseModel
|
||||||
|
{
|
||||||
|
protected $name = 'villager_information';
|
||||||
|
}
|
Loading…
Reference in New Issue