controller

package
v0.0.0-...-53e80a7 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateCreateRequest

func ValidateCreateRequest(dirtyData *AssociateAwayLogCreateRequestIDO) error

func ValidateUpdateRequest

func ValidateUpdateRequest(dirtyData *AssociateAwayLogUpdateRequestIDO) error

Types

type AssociateAwayLogController

AssociateAwayLogController Interface for associateawaylog business logic controller.

func NewController

func NewController(
	appCfg *config.Conf,
	loggerp *slog.Logger,
	uuidp uuid.Provider,
	s3 s3_storage.S3Storager,
	passwordp password.Provider,
	kmux kmutex.Provider,
	client *mongo.Client,
	temailer templatedemailer.TemplatedEmailer,
	usr_storer user_s.UserStorer,
	t_storer t_s.AssociateAwayLogStorer,
	c_storer c_s.CustomerStorer,
	a_ctorer a_c.AssociateStorer,
	o_storer o_s.OrderStorer,
	ti_storer ti_s.TaskItemStorer,
) AssociateAwayLogController

type AssociateAwayLogControllerImpl

type AssociateAwayLogControllerImpl struct {
	Config                 *config.Conf
	Logger                 *slog.Logger
	UUID                   uuid.Provider
	S3                     s3_storage.S3Storager
	Password               password.Provider
	Kmutex                 kmutex.Provider
	DbClient               *mongo.Client
	UserStorer             user_s.UserStorer
	AssociateAwayLogStorer t_s.AssociateAwayLogStorer
	CustomerStorer         c_s.CustomerStorer
	AssociateStorer        a_c.AssociateStorer
	OrderStorer            o_s.OrderStorer
	TaskItemStorer         ti_s.TaskItemStorer
	TemplatedEmailer       templatedemailer.TemplatedEmailer
}

func (*AssociateAwayLogControllerImpl) ArchiveByID

func (*AssociateAwayLogControllerImpl) Create

func (*AssociateAwayLogControllerImpl) DeleteByID

func (*AssociateAwayLogControllerImpl) GetByID

func (*AssociateAwayLogControllerImpl) ListAsSelectOptionByFilter

func (*AssociateAwayLogControllerImpl) UpdateByID

type AssociateAwayLogCreateRequestIDO

type AssociateAwayLogCreateRequestIDO struct {
	AssociateID        primitive.ObjectID `bson:"associate_id" json:"associate_id"`
	Reason             int8               `bson:"reason" json:"reason"`
	ReasonOther        string             `bson:"reason_other" json:"reason_other"`
	UntilFurtherNotice int8               `bson:"until_further_notice" json:"until_further_notice"`
	UntilDate          string             `bson:"until_date" json:"until_date"`
	UntilDateFormatted time.Time          `bson:"-" json:"-"`
	StartDate          string             `bson:"start_date" json:"start_date"`
	StartDateFormatted time.Time          `bson:"-" json:"-"`
}

type AssociateAwayLogUpdateRequestIDO

type AssociateAwayLogUpdateRequestIDO struct {
	ID                 primitive.ObjectID `bson:"id" json:"id"`
	AssociateID        primitive.ObjectID `bson:"associate_id" json:"associate_id"`
	Reason             int8               `bson:"reason" json:"reason"`
	ReasonOther        string             `bson:"reason_other" json:"reason_other"`
	UntilFurtherNotice int8               `bson:"until_further_notice" json:"until_further_notice"`
	UntilDate          string             `bson:"until_date" json:"until_date"`
	UntilDateFormatted time.Time          `bson:"-" json:"-"`
	StartDate          string             `bson:"start_date" json:"start_date"`
	StartDateFormatted time.Time          `bson:"-" json:"-"`
}

Jump to

Keyboard shortcuts

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