['type', 'name', 'value','lang'], ]; } /** * @notes 获取语言包列表 * @return array * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException * @author likeadmin * @date 2024/01/14 13:50 */ public function lists(): array { return LanguagePag::where($this->searchWhere) ->field(['id', 'type', 'name', 'value','lang']) ->append(['from_value']) ->limit($this->limitOffset, $this->limitLength) ->order(['type' => 'asc','name' => 'asc']) ->select() ->toArray(); } /** * @notes 获取语言包数量 * @return int * @author likeadmin * @date 2024/01/14 13:50 */ public function count(): int { return LanguagePag::where($this->searchWhere)->count(); } }