perf(struct): ddd

This commit is contained in:
2026-02-03 17:31:08 +08:00
parent 202b5eaad5
commit 4a071bd7c8
64 changed files with 1214 additions and 1189 deletions

13
src/domain/mod.rs Normal file
View File

@@ -0,0 +1,13 @@
pub mod aggregates;
pub mod entities;
pub mod repositories;
#[derive(Debug, thiserror::Error)]
pub enum DomainError {
#[error("unauthorized")]
Unauthorized,
#[error("invalid argument: {0}")]
InvalidArgument(String),
#[error("unexpected error")]
Unexpected,
}