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

30 lines
869 B
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.15 行政区划管理
:::tip 概述
行政区划(gin_city)维护省市区三级数据,为地址选择、属地统计提供基础数据。树形结构 + 按父级取子级的级联查询。
:::
## 功能清单
| 接口 | 说明 |
|---|---|
| Page / List / Detail | 标准查询 |
| Add / Update / Delete / BatchDelete | 维护(平台级数据) |
| ByParent | 按父级 ID 取下级(级联选择器数据源) |
| GetCityList | 区划列表聚合 |
| AreaProvince | 省份数据入口 |
## 结构特点
- parent_id 三级树(省 → 市 → 区/县)
- 平台级表(无租户隔离——区划是公共基础数据)
- 前端配套 ChinaArea / Region 组件消费级联数据
## 管理界面
`data/city`:树形表格 + 级联维护。
## 相关
- [9.10 数据录入组件](/zh/frontend/form-components.html)(ChinaArea/Region 组件)