mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-13 04:29:50 +08:00
refactor: 拆分 system.rs 大文件,将 email_templates/proxy_errors/system_config 下沉到 shared 层
- 删除 1666 行的 admin/system/shared/system.rs,按职责拆分到独立模块 - 新增 handlers/shared/email_templates.rs 和 system_config_values.rs 存放跨层共用的模板/配置工具函数 - 新增 admin/system/shared/email_templates.rs 存放 admin 专用的模板操作逻辑 - 新增 admin/shared/proxy_errors.rs 存放 build_proxy_error_response - 清理 public/system_modules_helpers 中不属于 public 层的导出 - 新增架构测试守护模块归属边界
This commit is contained in:
@@ -15,10 +15,3 @@ pub(crate) use self::system_modules_keys_grouped::build_admin_keys_grouped_by_fo
|
||||
pub(crate) use self::system_modules_modules::{
|
||||
build_public_auth_modules_status_payload, ldap_module_config_is_valid,
|
||||
};
|
||||
pub(crate) use self::system_modules_system::{
|
||||
apply_admin_email_template_update, build_admin_email_template_payload,
|
||||
build_admin_email_templates_payload, escape_admin_email_template_html,
|
||||
module_available_from_env, preview_admin_email_template, read_admin_email_template_payload,
|
||||
render_admin_email_template_html, reset_admin_email_template, system_config_bool,
|
||||
system_config_string,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user