refactor: Reorganize charging and errors modules into proper directory structure

- Move charging module files into charging/ directory (types.rs, engine.rs, credit_management.rs, rating_billing.rs)
- Move error module files into errors/ directory (types.rs, helpers.rs)
- Create mod.rs files for charging and errors modules with simplified exports
- Update import paths to use super:: for intra-module references
- Remove charging_new/errors_new aliases and use charging/errors directly
- Simplify module
This commit is contained in:
nutcas3
2026-04-14 16:29:27 +03:00
parent c1f408c789
commit c63c92245f
17 changed files with 199 additions and 209 deletions
+3 -13
View File
@@ -1,18 +1,8 @@
mod api;
mod charging_new as charging;
mod errors_new as errors;
mod models;
// Include the new modular components
mod charging_types;
mod charging_engine;
mod credit_management;
mod rating_billing;
mod monitoring_sync;
mod sync_operations;
mod charging;
mod monitoring;
mod error_types;
mod error_helpers;
mod errors;
mod models;
use anyhow::Result;
use std::sync::Arc;