Documentation
¶
Index ¶
- type ProgramCategoryController
- type ProgramCategoryControllerImpl
- func (impl *ProgramCategoryControllerImpl) ArchiveByID(ctx context.Context, id primitive.ObjectID) (*programcategory_s.ProgramCategory, error)
- func (impl *ProgramCategoryControllerImpl) Create(ctx context.Context, requestData *ProgramCategoryCreateRequestIDO) (*programcategory_s.ProgramCategory, error)
- func (impl *ProgramCategoryControllerImpl) DeleteByID(ctx context.Context, id primitive.ObjectID) error
- func (c *ProgramCategoryControllerImpl) GetByID(ctx context.Context, id primitive.ObjectID) (*programcategory_s.ProgramCategory, error)
- func (c *ProgramCategoryControllerImpl) ListAsSelectOptionByFilter(ctx context.Context, f *programcategory_s.ProgramCategoryPaginationListFilter) ([]*programcategory_s.ProgramCategoryAsSelectOption, error)
- func (c *ProgramCategoryControllerImpl) ListByFilter(ctx context.Context, f *t_s.ProgramCategoryPaginationListFilter) (*t_s.ProgramCategoryPaginationListResult, error)
- func (c *ProgramCategoryControllerImpl) PublicListAsSelectOptionByFilter(ctx context.Context, f *programcategory_s.ProgramCategoryPaginationListFilter) ([]*programcategory_s.ProgramCategoryAsSelectOption, error)
- func (impl *ProgramCategoryControllerImpl) UpdateByID(ctx context.Context, requestData *ProgramCategoryUpdateRequestIDO) (*programcategory_s.ProgramCategory, error)
- type ProgramCategoryCreateRequestIDO
- type ProgramCategoryUpdateRequestIDO
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProgramCategoryController ¶
type ProgramCategoryController interface { Create(ctx context.Context, requestData *ProgramCategoryCreateRequestIDO) (*programcategory_s.ProgramCategory, error) GetByID(ctx context.Context, id primitive.ObjectID) (*programcategory_s.ProgramCategory, error) UpdateByID(ctx context.Context, requestData *ProgramCategoryUpdateRequestIDO) (*programcategory_s.ProgramCategory, error) ListByFilter(ctx context.Context, f *programcategory_s.ProgramCategoryPaginationListFilter) (*programcategory_s.ProgramCategoryPaginationListResult, error) ListAsSelectOptionByFilter(ctx context.Context, f *programcategory_s.ProgramCategoryPaginationListFilter) ([]*programcategory_s.ProgramCategoryAsSelectOption, error) PublicListAsSelectOptionByFilter(ctx context.Context, f *programcategory_s.ProgramCategoryPaginationListFilter) ([]*programcategory_s.ProgramCategoryAsSelectOption, error) ArchiveByID(ctx context.Context, id primitive.ObjectID) (*programcategory_s.ProgramCategory, error) DeleteByID(ctx context.Context, id primitive.ObjectID) error }
ProgramCategoryController Interface for programcategory 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, programcategory_s programcategory_s.ProgramCategoryStorer, ) ProgramCategoryController
type ProgramCategoryControllerImpl ¶
type ProgramCategoryControllerImpl 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 ProgramCategoryStorer programcategory_s.ProgramCategoryStorer TemplatedEmailer templatedemailer.TemplatedEmailer }
func (*ProgramCategoryControllerImpl) ArchiveByID ¶
func (impl *ProgramCategoryControllerImpl) ArchiveByID(ctx context.Context, id primitive.ObjectID) (*programcategory_s.ProgramCategory, error)
func (*ProgramCategoryControllerImpl) Create ¶
func (impl *ProgramCategoryControllerImpl) Create(ctx context.Context, requestData *ProgramCategoryCreateRequestIDO) (*programcategory_s.ProgramCategory, error)
func (*ProgramCategoryControllerImpl) DeleteByID ¶
func (*ProgramCategoryControllerImpl) GetByID ¶
func (c *ProgramCategoryControllerImpl) GetByID(ctx context.Context, id primitive.ObjectID) (*programcategory_s.ProgramCategory, error)
func (*ProgramCategoryControllerImpl) ListAsSelectOptionByFilter ¶
func (c *ProgramCategoryControllerImpl) ListAsSelectOptionByFilter(ctx context.Context, f *programcategory_s.ProgramCategoryPaginationListFilter) ([]*programcategory_s.ProgramCategoryAsSelectOption, error)
func (*ProgramCategoryControllerImpl) ListByFilter ¶
func (c *ProgramCategoryControllerImpl) ListByFilter(ctx context.Context, f *t_s.ProgramCategoryPaginationListFilter) (*t_s.ProgramCategoryPaginationListResult, error)
func (*ProgramCategoryControllerImpl) PublicListAsSelectOptionByFilter ¶
func (c *ProgramCategoryControllerImpl) PublicListAsSelectOptionByFilter(ctx context.Context, f *programcategory_s.ProgramCategoryPaginationListFilter) ([]*programcategory_s.ProgramCategoryAsSelectOption, error)
func (*ProgramCategoryControllerImpl) UpdateByID ¶
func (impl *ProgramCategoryControllerImpl) UpdateByID(ctx context.Context, requestData *ProgramCategoryUpdateRequestIDO) (*programcategory_s.ProgramCategory, error)
type ProgramCategoryCreateRequestIDO ¶
type ProgramCategoryCreateRequestIDO struct { Name string `bson:"name" json:"name"` Description string `bson:"description" json:"description"` 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.