12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <?php
- namespace app\dao\out;
- use app\dao\BaseDao;
- use app\model\out\OutAccount;
- class OutAccountDao extends BaseDao
- {
-
- protected function setModel(): string
- {
- return OutAccount::class;
- }
-
- public function getList(array $where = [], int $page = 0, int $limit = 0)
- {
- return $this->search($where)->when($page && $limit, function ($query) use ($page, $limit) {
- $query->page($page, $limit);
- })->select()->toArray();
- }
- }
|