perf(struct): ddd
This commit is contained in:
13
src/domain/mod.rs
Normal file
13
src/domain/mod.rs
Normal 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,
|
||||
}
|
||||
Reference in New Issue
Block a user