command

package
v0.0.0-...-787d6dd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddRoleCommand

type AddRoleCommand struct {
	eventstore.BaseCommand
	Role string `json:"role" validate:"required"`
}

func NewAddRole

func NewAddRole(objectID, tenant, userId, role string) *AddRoleCommand

type LinkJobRoleCommand

type LinkJobRoleCommand struct {
	eventstore.BaseCommand
	JobRoleId string
}

func NewLinkJobRoleCommand

func NewLinkJobRoleCommand(objectID, tenant, jobRoleId string) *LinkJobRoleCommand

TODO add userId

type RemoveRoleCommand

type RemoveRoleCommand struct {
	eventstore.BaseCommand
	Role string
}

func NewRemoveRole

func NewRemoveRole(objectID, tenant, userId, role string) *RemoveRoleCommand

type UpsertUserCommand

type UpsertUserCommand struct {
	eventstore.BaseCommand
	IsCreateCommand bool
	DataFields      models.UserDataFields
	Source          cmnmod.Source
	ExternalSystem  cmnmod.ExternalSystem
	CreatedAt       *time.Time
	UpdatedAt       *time.Time
}

func NewUpsertUserCommand

func NewUpsertUserCommand(objectID, tenant, userId string, source cmnmod.Source, externalSystem cmnmod.ExternalSystem, dataFields models.UserDataFields, createdAt, updatedAt *time.Time) *UpsertUserCommand

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL