Documentation ¶
Index ¶
- type HowHearAboutUsItemController
- type HowHearAboutUsItemControllerImpl
- func (impl *HowHearAboutUsItemControllerImpl) ArchiveByID(ctx context.Context, id primitive.ObjectID) (*howhear_s.HowHearAboutUsItem, error)
- func (impl *HowHearAboutUsItemControllerImpl) Create(ctx context.Context, requestData *HowHearAboutUsItemCreateRequestIDO) (*howhear_s.HowHearAboutUsItem, error)
- func (impl *HowHearAboutUsItemControllerImpl) DeleteByID(ctx context.Context, id primitive.ObjectID) error
- func (c *HowHearAboutUsItemControllerImpl) GetByID(ctx context.Context, id primitive.ObjectID) (*howhear_s.HowHearAboutUsItem, error)
- func (c *HowHearAboutUsItemControllerImpl) ListAndCountByFilter(ctx context.Context, f *t_s.HowHearAboutUsItemPaginationListFilter) (*t_s.HowHearAboutUsItemPaginationListAndCountResult, error)
- func (c *HowHearAboutUsItemControllerImpl) ListAsSelectOptionByFilter(ctx context.Context, f *howhear_s.HowHearAboutUsItemPaginationListFilter) ([]*howhear_s.HowHearAboutUsItemAsSelectOption, error)
- func (impl *HowHearAboutUsItemControllerImpl) UpdateByID(ctx context.Context, requestData *HowHearAboutUsItemUpdateRequestIDO) (*howhear_s.HowHearAboutUsItem, error)
- func (impl *HowHearAboutUsItemControllerImpl) UpdateRelatedAssociates(sessCtx mongo.SessionContext, hh *howhear_s.HowHearAboutUsItem) error
- func (impl *HowHearAboutUsItemControllerImpl) UpdateRelatedCustomers(sessCtx mongo.SessionContext, hh *howhear_s.HowHearAboutUsItem) error
- func (impl *HowHearAboutUsItemControllerImpl) UpdateRelatedStaff(sessCtx mongo.SessionContext, hh *howhear_s.HowHearAboutUsItem) error
- type HowHearAboutUsItemCreateRequestIDO
- type HowHearAboutUsItemUpdateRequestIDO
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HowHearAboutUsItemController ¶
type HowHearAboutUsItemController interface { Create(ctx context.Context, requestData *HowHearAboutUsItemCreateRequestIDO) (*howhear_s.HowHearAboutUsItem, error) GetByID(ctx context.Context, id primitive.ObjectID) (*howhear_s.HowHearAboutUsItem, error) UpdateByID(ctx context.Context, requestData *HowHearAboutUsItemUpdateRequestIDO) (*howhear_s.HowHearAboutUsItem, error) ListAndCountByFilter(ctx context.Context, f *howhear_s.HowHearAboutUsItemPaginationListFilter) (*howhear_s.HowHearAboutUsItemPaginationListAndCountResult, error) ListAsSelectOptionByFilter(ctx context.Context, f *howhear_s.HowHearAboutUsItemPaginationListFilter) ([]*howhear_s.HowHearAboutUsItemAsSelectOption, error) ArchiveByID(ctx context.Context, id primitive.ObjectID) (*howhear_s.HowHearAboutUsItem, error) DeleteByID(ctx context.Context, id primitive.ObjectID) error }
HowHearAboutUsItemController Interface for howhear 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, temailer templatedemailer.TemplatedEmailer, client *mongo.Client, usr_storer user_s.UserStorer, c_storer c_s.CustomerStorer, a_storer a_s.AssociateStorer, s_storer s_s.StaffStorer, howhear_s howhear_s.HowHearAboutUsItemStorer, ) HowHearAboutUsItemController
type HowHearAboutUsItemControllerImpl ¶
type HowHearAboutUsItemControllerImpl 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 CustomerStorer c_s.CustomerStorer AssociateStorer a_s.AssociateStorer StaffStorer s_s.StaffStorer HowHearAboutUsItemStorer howhear_s.HowHearAboutUsItemStorer TemplatedEmailer templatedemailer.TemplatedEmailer }
func (*HowHearAboutUsItemControllerImpl) ArchiveByID ¶
func (impl *HowHearAboutUsItemControllerImpl) ArchiveByID(ctx context.Context, id primitive.ObjectID) (*howhear_s.HowHearAboutUsItem, error)
func (*HowHearAboutUsItemControllerImpl) Create ¶
func (impl *HowHearAboutUsItemControllerImpl) Create(ctx context.Context, requestData *HowHearAboutUsItemCreateRequestIDO) (*howhear_s.HowHearAboutUsItem, error)
func (*HowHearAboutUsItemControllerImpl) DeleteByID ¶
func (*HowHearAboutUsItemControllerImpl) GetByID ¶
func (c *HowHearAboutUsItemControllerImpl) GetByID(ctx context.Context, id primitive.ObjectID) (*howhear_s.HowHearAboutUsItem, error)
func (*HowHearAboutUsItemControllerImpl) ListAndCountByFilter ¶
func (c *HowHearAboutUsItemControllerImpl) ListAndCountByFilter(ctx context.Context, f *t_s.HowHearAboutUsItemPaginationListFilter) (*t_s.HowHearAboutUsItemPaginationListAndCountResult, error)
func (*HowHearAboutUsItemControllerImpl) ListAsSelectOptionByFilter ¶
func (c *HowHearAboutUsItemControllerImpl) ListAsSelectOptionByFilter(ctx context.Context, f *howhear_s.HowHearAboutUsItemPaginationListFilter) ([]*howhear_s.HowHearAboutUsItemAsSelectOption, error)
func (*HowHearAboutUsItemControllerImpl) UpdateByID ¶
func (impl *HowHearAboutUsItemControllerImpl) UpdateByID(ctx context.Context, requestData *HowHearAboutUsItemUpdateRequestIDO) (*howhear_s.HowHearAboutUsItem, error)
func (*HowHearAboutUsItemControllerImpl) UpdateRelatedAssociates ¶
func (impl *HowHearAboutUsItemControllerImpl) UpdateRelatedAssociates(sessCtx mongo.SessionContext, hh *howhear_s.HowHearAboutUsItem) error
func (*HowHearAboutUsItemControllerImpl) UpdateRelatedCustomers ¶
func (impl *HowHearAboutUsItemControllerImpl) UpdateRelatedCustomers(sessCtx mongo.SessionContext, hh *howhear_s.HowHearAboutUsItem) error
func (*HowHearAboutUsItemControllerImpl) UpdateRelatedStaff ¶
func (impl *HowHearAboutUsItemControllerImpl) UpdateRelatedStaff(sessCtx mongo.SessionContext, hh *howhear_s.HowHearAboutUsItem) error
type HowHearAboutUsItemCreateRequestIDO ¶
type HowHearAboutUsItemCreateRequestIDO struct { Text string `bson:"text" json:"text"` SortNumber int8 `bson:"sort_number" json:"sort_number"` IsForAssociate bool `bson:"is_for_associate" json:"is_for_associate"` IsForCustomer bool `bson:"is_for_customer" json:"is_for_customer"` IsForStaff bool `bson:"is_for_staff" json:"is_for_staff"` }
type HowHearAboutUsItemUpdateRequestIDO ¶
type HowHearAboutUsItemUpdateRequestIDO struct { ID primitive.ObjectID `bson:"id" json:"id"` Text string `bson:"text" json:"text"` SortNumber int8 `bson:"sort_number" json:"sort_number"` IsForAssociate bool `bson:"is_for_associate" json:"is_for_associate"` IsForCustomer bool `bson:"is_for_customer" json:"is_for_customer"` IsForStaff bool `bson:"is_for_staff" json:"is_for_staff"` }
Click to show internal directories.
Click to hide internal directories.