\App\Http\Controllers\AdminConfigController

站点配置控制器

职责:站点配置值的读取与保存 HTTP 入口,校验入参、编排服务、组装统一响应, 配置项的取值/写库/缓存治理一律下沉 ConfigService。

Summary

Methods
Properties
Constants
__construct()
groupConfigs()
save()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$configService
N/A

Properties

$configService

$configService : \App\Services\Admin\ConfigService

Type

ConfigService

Methods

__construct()

__construct(\App\Services\Admin\ConfigService  $configService) : mixed

Parameters

\App\Services\Admin\ConfigService $configService

Returns

mixed —

groupConfigs()

groupConfigs(\Illuminate\Http\Request  $request) : \Illuminate\Http\JsonResponse

站点配置

返回所有分组及其配置项,前端按 type 渲染对应控件。

Parameters

\Illuminate\Http\Request $request

Returns

\Illuminate\Http\JsonResponse —

save()

save(\Illuminate\Http\Request  $request) : \Illuminate\Http\JsonResponse

保存配置

批量保存配置值:普通键与 tabs 载荷均按已定义配置项过滤, 未定义的键直接丢弃。敏感项如 mail.smtp_password 提交 ****** 或空串时保持原值不变。

Parameters

\Illuminate\Http\Request $request

Returns

\Illuminate\Http\JsonResponse —