Skip to content

Commit

Permalink
Merge pull request #7 from tonybka/feature/tonybka/domain-event-improve
Browse files Browse the repository at this point in the history
Redefine domain event and event handler interfaces
  • Loading branch information
tonybka authored Mar 14, 2023
2 parents 26250d1 + 6890ce8 commit 831c913
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion domain/event/base_domain_event.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ package event
import "time"

type IBaseDomainEvent interface {
EventName() string
Name() string
ToJson() (string, error)
ID() string
OccurredAt() time.Time
}

0 comments on commit 831c913

Please sign in to comment.