feat: handle duplicate ID and name for Product and CategoryAggregate
This commit is contained in:
parent
a3a947fd89
commit
13e913e661
1 changed files with 3 additions and 0 deletions
|
@ -10,7 +10,10 @@ pub type InventoryDBResult<V> = Result<V, InventoryDBError>;
|
|||
#[derive(Debug, Display, Clone, Serialize, Deserialize, PartialEq, Eq, PartialOrd, Ord)]
|
||||
pub enum InventoryDBError {
|
||||
DuplicateCategoryName,
|
||||
DuplicateCategoryID,
|
||||
DuplicateStoreName,
|
||||
DuplicateStoreID,
|
||||
DuplicateProductName,
|
||||
DuplicateProductID,
|
||||
InternalError,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue