Documentation ¶
Index ¶
Constants ¶
View Source
const (
JobRoleCreateV1 = "V1_JOB_ROLE_CREATE"
)
Variables ¶
This section is empty.
Functions ¶
func NewJobRoleCreateEvent ¶
func NewJobRoleCreateEvent(aggregate eventstore.Aggregate, command *model.CreateJobRoleCommand) (eventstore.Event, error)
Types ¶
type JobRoleCreateEvent ¶
type JobRoleCreateEvent struct { Tenant string `json:"tenant" validate:"required"` StartedAt *time.Time `json:"startedAt,omitempty"` EndedAt *time.Time `json:"endedAt,omitempty"` JobTitle string `json:"jobTitle" validate:"required"` Description *string `json:"description,omitempty"` Primary bool `json:"primary"` Source string `json:"source"` SourceOfTruth string `json:"sourceOfTruth"` AppSource string `json:"appSource"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` }
type JobRoleUpdateEvent ¶
type JobRoleUpdateEvent struct { Tenant string `json:"tenant" validate:"required"` StartedAt *time.Time `json:"startedAt,omitempty"` EndedAt *time.Time `json:"endedAt,omitempty"` JobTitle *string `json:"jobTitle,omitempty"` Description *string `json:"description"` Primary *bool `json:"primary"` SourceOfTruth string `json:"sourceOfTruth"` UpdatedAt time.Time `json:"updatedAt"` }
Click to show internal directories.
Click to hide internal directories.