Files
easygoadmin-wiki/EasyGoAdmin_Gin_NaiveVue/zh/modules/config.md
T
2026-10-25 17:24:27 +08:00

46 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 6.14 配置管理
:::tip 概述
配置管理维护 gin_config(分组)+ gin_config_item(配置项)的分组树,承载站点级与业务级运营配置。另有前台站点配置的专用读写入口(WebIndex / WebSave)。
:::
## 功能清单
### 配置分组(/api/config/*)
| 接口 | 说明 |
|---|---|
| Page / List / Detail / Add / Update / Delete / BatchDelete | 分组维护 |
| GET /api/config/web/index | 网站配置聚合读取(权限码 sys:configWeb:data) |
| POST /api/config/web/save | 网站配置聚合保存(权限码 sys:configWeb:save) |
### 配置项(/api/config/item/*,权限码 sys:configitem:*)
| 接口 | 说明 |
|---|---|
| Page / List / Detail / Add / Update / Delete / BatchDelete | 配置项维护(归属分组) |
## 分组语义
```text
gin_config(分组,如"站点配置")
└── gin_config_item(项:site_name=易购后台 / site_logo=... / icp=...)
```
WebIndex/WebSave 为管理前台设置页的聚合契约——避免前端逐项调用。
## 界面双入口
| 入口 | 面向 | 说明 |
|---|---|---|
| setting/configWeb | 站点设置页 | 经 WebIndex/WebSave 聚合读写 |
| data/config | 系统配置管理 | 分组/配置项的后台维护 |
## 管理界面
`data/config`:分组列表 + 配置项明细面板。
## 相关
- [5.12 系统配置管理](/zh/core/config.html)(机制与两层配置分工)