goCheck('detail'); $result = LanguageLogic::detail($params); return $this->data($result); } /** * @notes 获取所有语言 * @return \think\response\Json * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException * @author 段誉 * @date 2022/10/13 10:54 */ public function all() { $result = LanguageLogic::getAllData(); return $this->data($result); } /** * @notes 获取语言包数据 * @return \think\response\Json * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException * @author 段誉 * @date 2022/10/13 10:54 */ public function pagAll() { $params = (new LanguagePagValidate())->goCheck('all'); $result = LanguageLogic::getPagAllData($params); return $this->data($result); } }