Documentation ¶
Index ¶
- type OfferControllerImpl
- func (impl *OfferControllerImpl) DeleteByID(ctx context.Context, id primitive.ObjectID) error
- func (c *OfferControllerImpl) GetByID(ctx context.Context, id primitive.ObjectID) (*domain.Offer, error)
- func (c *OfferControllerImpl) GetByServiceType(ctx context.Context, serviceType int8) (*domain.Offer, error)
- func (c *OfferControllerImpl) ListAsSelectOptionByFilter(ctx context.Context, f *domain.OfferPaginationListFilter) ([]*domain.OfferAsSelectOption, error)
- func (c *OfferControllerImpl) ListByFilter(ctx context.Context, f *domain.OfferPaginationListFilter) (*domain.OfferPaginationListResult, error)
- func (impl *OfferControllerImpl) UpdateByID(ctx context.Context, ns *domain.Offer) (*domain.Offer, error)
- type Offerontroller
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OfferControllerImpl ¶
type OfferControllerImpl struct { Config *config.Conf Logger *slog.Logger UUID uuid.Provider DbClient *mongo.Client StoreStorer store_s.StoreStorer OfferStorer domain.OfferStorer UserStorer user_s.UserStorer }
func (*OfferControllerImpl) DeleteByID ¶
func (*OfferControllerImpl) GetByServiceType ¶
func (*OfferControllerImpl) ListAsSelectOptionByFilter ¶
func (c *OfferControllerImpl) ListAsSelectOptionByFilter(ctx context.Context, f *domain.OfferPaginationListFilter) ([]*domain.OfferAsSelectOption, error)
func (*OfferControllerImpl) ListByFilter ¶
func (c *OfferControllerImpl) ListByFilter(ctx context.Context, f *domain.OfferPaginationListFilter) (*domain.OfferPaginationListResult, error)
func (*OfferControllerImpl) UpdateByID ¶
type Offerontroller ¶
type Offerontroller interface { // Create(ctx context.Context, m *domain.Offer) (*domain.Offer, error) GetByID(ctx context.Context, id primitive.ObjectID) (*domain.Offer, error) GetByServiceType(ctx context.Context, serviceType int8) (*domain.Offer, error) UpdateByID(ctx context.Context, m *domain.Offer) (*domain.Offer, error) ListByFilter(ctx context.Context, f *domain.OfferPaginationListFilter) (*domain.OfferPaginationListResult, error) ListAsSelectOptionByFilter(ctx context.Context, f *domain.OfferPaginationListFilter) ([]*domain.OfferAsSelectOption, error) }
Offerontroller Interface for store business logic controller.
func NewController ¶
func NewController( appCfg *config.Conf, loggerp *slog.Logger, uuidp uuid.Provider, client *mongo.Client, org_storer store_s.StoreStorer, sub_storer domain.OfferStorer, usr_storer user_s.UserStorer, ) Offerontroller
Source Files ¶
Click to show internal directories.
Click to hide internal directories.