Skip to content

Commit

Permalink
Added basic account creation (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulobressan authored Jun 20, 2024
1 parent eba54b2 commit fb4dd2b
Show file tree
Hide file tree
Showing 8 changed files with 172 additions and 262 deletions.
269 changes: 7 additions & 262 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions src/domain/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,16 @@ pub struct NamespaceCreation {
pub name: String,
pub slug: String,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct AccountCreation {
pub name: String,
}

#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum Event {
NamespaceCreation(NamespaceCreation),
AccountCreation(AccountCreation),
}

#[async_trait::async_trait]
Expand Down
Loading

0 comments on commit fb4dd2b

Please sign in to comment.