domain crate code quality cleanup
strip all comments, extract tests to tests/ dirs, remove #[allow(clippy::...)], extract magic numbers to constants, refactor schedule engine private methods to use param structs, add Default impls, clippy.toml for persistence constructors
This commit is contained in:
@@ -1,13 +1,3 @@
|
||||
//! Domain ports (trait definitions).
|
||||
//!
|
||||
//! These traits define the abstract interfaces that infrastructure adapters
|
||||
//! implement. The domain layer depends only on these traits, never on concrete
|
||||
//! implementations.
|
||||
//!
|
||||
//! Repository traits follow a CQRS split: separate Command (write) and Query
|
||||
//! (read) traits for each aggregate. Small or rarely-split repositories keep
|
||||
//! a single trait when the split adds no value.
|
||||
|
||||
pub mod activity;
|
||||
pub mod auth;
|
||||
pub mod channel;
|
||||
@@ -20,8 +10,6 @@ pub mod settings;
|
||||
pub mod transcode;
|
||||
pub mod user;
|
||||
|
||||
// -- Re-exports for convenience --
|
||||
|
||||
pub use activity::{ActivityLogCommand, ActivityLogQuery};
|
||||
pub use auth::AuthService;
|
||||
pub use channel::{ChannelCommand, ChannelQuery};
|
||||
|
||||
Reference in New Issue
Block a user