Documentation ¶
Index ¶
- type UserPurchaseController
- type UserPurchaseControllerImpl
- func (c *UserPurchaseControllerImpl) Create(ctx context.Context, m *s_d.UserPurchase) (*s_d.UserPurchase, error)
- func (impl *UserPurchaseControllerImpl) DeleteByID(ctx context.Context, id primitive.ObjectID) error
- func (c *UserPurchaseControllerImpl) GetByID(ctx context.Context, id primitive.ObjectID) (*domain.UserPurchase, error)
- func (c *UserPurchaseControllerImpl) ListAsSelectOptionByFilter(ctx context.Context, f *domain.UserPurchasePaginationListFilter) ([]*domain.UserPurchaseAsSelectOption, error)
- func (c *UserPurchaseControllerImpl) ListByFilter(ctx context.Context, f *domain.UserPurchasePaginationListFilter) (*domain.UserPurchasePaginationListResult, error)
- func (c *UserPurchaseControllerImpl) UpdateByID(ctx context.Context, ns *domain.UserPurchase) (*domain.UserPurchase, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserPurchaseController ¶
type UserPurchaseController interface { Create(ctx context.Context, m *domain.UserPurchase) (*domain.UserPurchase, error) GetByID(ctx context.Context, id primitive.ObjectID) (*domain.UserPurchase, error) UpdateByID(ctx context.Context, m *domain.UserPurchase) (*domain.UserPurchase, error) ListByFilter(ctx context.Context, f *domain.UserPurchasePaginationListFilter) (*domain.UserPurchasePaginationListResult, error) ListAsSelectOptionByFilter(ctx context.Context, f *domain.UserPurchasePaginationListFilter) ([]*domain.UserPurchaseAsSelectOption, error) DeleteByID(ctx context.Context, id primitive.ObjectID) error }
UserPurchaseController 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.UserPurchaseStorer, ) UserPurchaseController
type UserPurchaseControllerImpl ¶
type UserPurchaseControllerImpl struct { Config *config.Conf Logger *slog.Logger UUID uuid.Provider DbClient *mongo.Client StoreStorer store_s.StoreStorer UserPurchaseStorer domain.UserPurchaseStorer }
func (*UserPurchaseControllerImpl) Create ¶
func (c *UserPurchaseControllerImpl) Create(ctx context.Context, m *s_d.UserPurchase) (*s_d.UserPurchase, error)
func (*UserPurchaseControllerImpl) DeleteByID ¶
func (*UserPurchaseControllerImpl) GetByID ¶
func (c *UserPurchaseControllerImpl) GetByID(ctx context.Context, id primitive.ObjectID) (*domain.UserPurchase, error)
func (*UserPurchaseControllerImpl) ListAsSelectOptionByFilter ¶
func (c *UserPurchaseControllerImpl) ListAsSelectOptionByFilter(ctx context.Context, f *domain.UserPurchasePaginationListFilter) ([]*domain.UserPurchaseAsSelectOption, error)
func (*UserPurchaseControllerImpl) ListByFilter ¶
func (c *UserPurchaseControllerImpl) ListByFilter(ctx context.Context, f *domain.UserPurchasePaginationListFilter) (*domain.UserPurchasePaginationListResult, error)
func (*UserPurchaseControllerImpl) UpdateByID ¶
func (c *UserPurchaseControllerImpl) UpdateByID(ctx context.Context, ns *domain.UserPurchase) (*domain.UserPurchase, error)
Click to show internal directories.
Click to hide internal directories.