getInfo()); } /** * 获取当前url配置 * @return Response */ public function url() { return success((new SystemService())->getUrl()); } /** * 获取系统环境配置 * @return Response */ public function getSystemInfo() { return success((new SystemService())->getSystemInfo()); } /** * 清理缓存,更新菜单 */ public function schemaCache() { return success((new SystemService())->schemaCache()); } /** * 校验消息队列是否正常运行 * @return Response */ public function checkJob() { return success(data: (new SystemService())->checkJob()); } /** * 校验计划任务是否正常运行 * @return Response */ public function checkSchedule() { return success(data: (new SystemService())->checkSchedule()); } /** * 获取布局 * @return Response */ public function layout() { $layouts = event('SiteLayout'); if (count($layouts) > 1) { array_multisort(array_column($layouts, 'sort'), SORT_ASC, $layouts); } return success($layouts); } /** * * 设置布局 * @return Response */ public function setLayout(){ $key = input('key', ''); return success(data: (new SystemService())->setLayout($key)); } /** * 环境变量查询 * @return Response */ public function getEnvInfo() { return success(['app_debug' => env('app_debug', false)]); } public function get_yjpz_config(){ return success(data: (new SystemService())->get_yjpz_config()); } public function yjpz_config(){ $data = $this->request->params([ ['priceRules', []], ]); return success(data: (new SystemService())->yjpz_config($data)); } public function xsyj_config(){ $data = $this->request->post(); return success(data: (new SystemService())->xsyj_config($data)); } public function get_xsyj_config(){ return success(data: (new SystemService())->get_xsyj_config()); } public function jlyj_config(){ $data = $this->request->post(); return success(data: (new SystemService())->jlyj_config($data)); } public function get_jlyj_config(){ return success(data: (new SystemService())->get_jlyj_config()); } public function home(){ $data = $this->request->params([ ['date', 'week'], ]); return success(data: (new SystemService())->home($data)); } public function scsjtj(){ $data = $this->request->params([ ['dateRange', []], ]); return success(data: (new SystemService())->scsjtj($data)); } //全部人员 public function person_all(){ return success(data: (new SystemService())->person_all()); } public function role_all(){ return success(data: (new SystemService())->role_all()); } public function departments_all(){ return success(data: (new SystemService())->departments_all()); } public function personnel_summary(){ return success(data: (new SystemService())->personnel_summary()); } }