['account', 'type', 'm_type'], ]; } public function lists(): array { $this->searchWhere[] = ['user_id', '=', $this->userId]; return SvMaterial::where($this->searchWhere) ->order(['sort' => 'asc']) ->limit($this->limitOffset, $this->limitLength) ->select() ->toArray(); } public function count(): int { $this->searchWhere[] = ['user_id', '=', $this->userId]; return SvMaterial::where($this->searchWhere)->count(); } }