增加预选参数-系统列表

This commit is contained in:
2025-07-21 16:58:22 +08:00
committed by mzl
parent 608a952ffc
commit 7acf3fca99
4 changed files with 55 additions and 1 deletions
+16 -1
View File
@@ -5,11 +5,14 @@ namespace app\common\controller;
use support\Request;
use app\common\service\CorpService;
use app\common\service\CorpFeishuAppService;
use app\common\service\SystemsService;
class PresetController extends BaseController
{
protected $noNeedLogin = ['corps', 'feishuApp'];
protected $noNeedLogin = ['corps', 'feishuApp', 'systems'];
protected $noNeedHeaderData = ['corps', 'feishuApp', 'systems'];
public function corps()
{
@@ -33,4 +36,16 @@ class PresetController extends BaseController
return $this->error($e->getMessage());
}
}
public function systems()
{
try {
$result = (new SystemsService())->getList();
return $this->success($result, '获取系统列表');
} catch (\Throwable $e) {
return $this->error($e->getMessage());
}
}
}