Documentation ¶
Index ¶
- func ValidateCreateRequest(dirtyData *AssociateAwayLogCreateRequestIDO) error
- func ValidateUpdateRequest(dirtyData *AssociateAwayLogUpdateRequestIDO) error
- type AssociateAwayLogController
- type AssociateAwayLogControllerImpl
- func (impl *AssociateAwayLogControllerImpl) ArchiveByID(ctx context.Context, id primitive.ObjectID) (*aal_s.AssociateAwayLog, error)
- func (impl *AssociateAwayLogControllerImpl) Create(ctx context.Context, requestData *AssociateAwayLogCreateRequestIDO) (*aal_s.AssociateAwayLog, error)
- func (impl *AssociateAwayLogControllerImpl) DeleteByID(ctx context.Context, id primitive.ObjectID) error
- func (c *AssociateAwayLogControllerImpl) GetByID(ctx context.Context, id primitive.ObjectID) (*aal_s.AssociateAwayLog, error)
- func (c *AssociateAwayLogControllerImpl) ListAndCountByFilter(ctx context.Context, f *t_s.AssociateAwayLogPaginationListFilter) (*t_s.AssociateAwayLogPaginationListAndCountResult, error)
- func (c *AssociateAwayLogControllerImpl) ListAsSelectOptionByFilter(ctx context.Context, f *aal_s.AssociateAwayLogPaginationListFilter) ([]*aal_s.AssociateAwayLogAsSelectOption, error)
- func (impl *AssociateAwayLogControllerImpl) UpdateByID(ctx context.Context, requestData *AssociateAwayLogUpdateRequestIDO) (*aal_s.AssociateAwayLog, error)
- type AssociateAwayLogCreateRequestIDO
- type AssociateAwayLogUpdateRequestIDO
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 ¶
type AssociateAwayLogController interface { Create(ctx context.Context, requestData *AssociateAwayLogCreateRequestIDO) (*aal_s.AssociateAwayLog, error) GetByID(ctx context.Context, id primitive.ObjectID) (*aal_s.AssociateAwayLog, error) UpdateByID(ctx context.Context, nu *AssociateAwayLogUpdateRequestIDO) (*aal_s.AssociateAwayLog, error) ListAndCountByFilter(ctx context.Context, f *t_s.AssociateAwayLogPaginationListFilter) (*t_s.AssociateAwayLogPaginationListAndCountResult, error) ListAsSelectOptionByFilter(ctx context.Context, f *aal_s.AssociateAwayLogPaginationListFilter) ([]*aal_s.AssociateAwayLogAsSelectOption, error) ArchiveByID(ctx context.Context, id primitive.ObjectID) (*aal_s.AssociateAwayLog, error) DeleteByID(ctx context.Context, id primitive.ObjectID) error }
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 (impl *AssociateAwayLogControllerImpl) ArchiveByID(ctx context.Context, id primitive.ObjectID) (*aal_s.AssociateAwayLog, error)
func (*AssociateAwayLogControllerImpl) Create ¶
func (impl *AssociateAwayLogControllerImpl) Create(ctx context.Context, requestData *AssociateAwayLogCreateRequestIDO) (*aal_s.AssociateAwayLog, error)
func (*AssociateAwayLogControllerImpl) DeleteByID ¶
func (*AssociateAwayLogControllerImpl) GetByID ¶
func (c *AssociateAwayLogControllerImpl) GetByID(ctx context.Context, id primitive.ObjectID) (*aal_s.AssociateAwayLog, error)
func (*AssociateAwayLogControllerImpl) ListAndCountByFilter ¶
func (c *AssociateAwayLogControllerImpl) ListAndCountByFilter(ctx context.Context, f *t_s.AssociateAwayLogPaginationListFilter) (*t_s.AssociateAwayLogPaginationListAndCountResult, error)
func (*AssociateAwayLogControllerImpl) ListAsSelectOptionByFilter ¶
func (c *AssociateAwayLogControllerImpl) ListAsSelectOptionByFilter(ctx context.Context, f *aal_s.AssociateAwayLogPaginationListFilter) ([]*aal_s.AssociateAwayLogAsSelectOption, error)
func (*AssociateAwayLogControllerImpl) UpdateByID ¶
func (impl *AssociateAwayLogControllerImpl) UpdateByID(ctx context.Context, requestData *AssociateAwayLogUpdateRequestIDO) (*aal_s.AssociateAwayLog, error)
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:"-"` }
Click to show internal directories.
Click to hide internal directories.