123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <?php
- namespace app\dao\system;
- use app\dao\BaseDao;
- use app\model\system\SystemRole;
- class SystemRoleDao extends BaseDao
- {
-
- protected function setModel(): string
- {
- return SystemRole::class;
- }
-
- public function getRoule(array $where = [], ?string $field = null, ?string $key = null)
- {
- return $this->search($where)->column($field ?: 'role_name', $key ?: 'id');
- }
-
- public function getRouleList(array $where, int $page, int $limit)
- {
- return $this->search($where)->page($page, $limit)->select()->toArray();
- }
- }
|