SysConfig 接口
源码:src/business/controller/sysConfig/index.ts
前缀:/api/sys_config
| 方法 | 路径 | 鉴权 | 说明 |
|---|---|---|---|
| GET | /public | ignore | 公开配置 Map(public_flag=1),前端 boot 依赖 |
| POST | /page | system:config:page | 分页,form.keyword |
| GET | /list | system:config:list | 全量列表 |
| POST | /update | system:config:update + RepeatSubmit | 修改(不可改 configKey) |
| POST | /refresh_cache | system:config:update | 刷新内存缓存 |
Service 内维护 configKey → configValue 缓存;security.encrypt.enabled 为 true 时开启 加密传输。
http
GET /api/sys_config/public响应 data 示例:
json
{
"security.encrypt.enabled": "true",
"system.name": "Pangza Admin"
}