feat(admin): unify system data management and aggregate import/export

This commit is contained in:
fawney19
2026-05-16 02:16:53 +08:00
parent 48da062251
commit f59cf1090d
16 changed files with 872 additions and 206 deletions
@@ -63,6 +63,14 @@ pub(super) fn classify_admin_system_family_route(
"admin:system",
false,
))
} else if method == http::Method::GET && normalized_path == "/api/admin/system/data/export" {
Some(classified(
"admin_proxy",
"system_manage",
"data_export",
"admin:system",
false,
))
} else if method == http::Method::POST && normalized_path == "/api/admin/system/config/import" {
Some(classified(
"admin_proxy",
@@ -79,6 +87,14 @@ pub(super) fn classify_admin_system_family_route(
"admin:system",
false,
))
} else if method == http::Method::POST && normalized_path == "/api/admin/system/data/import" {
Some(classified(
"admin_proxy",
"system_manage",
"data_import",
"admin:system",
false,
))
} else if method == http::Method::POST && normalized_path == "/api/admin/system/smtp/test" {
Some(classified(
"admin_proxy",