configService = $configService; } public function show(): JsonResponse { // 处理显示单个用户的逻辑 $result = $this->configService->getConfig(); return self::success($result); } public function update(Request $request): JsonResponse { // 更新用户逻辑 $params = $request->all(); $this->configService->updateConfig($params); return self::success(true); } }