| 123456789101112131415161718192021222324252627 |
- <?php
- namespace app\extra\dao\system;
- use app\extra\basic\Dao;
- use app\model\system\SystemAttachmentCategory;
- class SystemAttachmentCategoryDao extends Dao
- {
- /**
- * 设置模型
- * @return string
- */
- protected function setModel(): string
- {
- return SystemAttachmentCategory::class;
- }
- public function getList(array $where,string $field = '*',int $page = 0, int $limit = 0,string $order='id desc')
- {
- return $this->getModel()->where($where)->field($field)->when($page&&$limit,function($query)use($page,$limit){
- $query->page($page,$limit);
- })->select();
- }
- }
|