-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update to `[email protected]`
- Loading branch information
Sergio García Prado
committed
Feb 3, 2022
1 parent
8a5f103
commit f387b1e
Showing
7 changed files
with
61 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,22 @@ | ||
from uuid import ( | ||
UUID, | ||
) | ||
|
||
from minos.aggregate import ( | ||
Aggregate, | ||
RootEntity, | ||
) | ||
|
||
|
||
class {{ aggregate }}(Aggregate): | ||
"""{{ aggregate }} Aggregate class.""" | ||
class {{ aggregate }}(RootEntity): | ||
"""{{ aggregate }} RootEntity class.""" | ||
|
||
|
||
class {{ aggregate }}Aggregate(Aggregate[{{ aggregate }}]): | ||
"""{{ aggregate }}Aggregate class.""" | ||
|
||
@staticmethod | ||
async def create() -> UUID: | ||
"""Create a new instance.""" | ||
root = await {{ aggregate }}.create() | ||
return root.uuid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters