fix: move some logic to domain entities

This commit is contained in:
Elton Minetto
2020-10-05 08:49:21 -03:00
parent c008dbab29
commit 098477169a
25 changed files with 493 additions and 183 deletions
+3
View File
@@ -5,6 +5,9 @@ import "errors"
//ErrNotFound not found
var ErrNotFound = errors.New("Not found")
//ErrInvalidEntity invalid entity
var ErrInvalidEntity = errors.New("Invalid entity")
//ErrCannotBeDeleted cannot be deleted
var ErrCannotBeDeleted = errors.New("Cannot Be Deleted")