Documentation
¶
Index ¶
- type UploadFileController
- type UploadFileControllerImpl
- func (impl *UploadFileControllerImpl) Create(ctx context.Context, req *UploadFileCreateRequestIDO) (*a_d.UploadFile, error)
- func (impl *UploadFileControllerImpl) DeleteByID(ctx context.Context, id primitive.ObjectID) error
- func (c *UploadFileControllerImpl) GetByID(ctx context.Context, id primitive.ObjectID) (*domain.UploadFile, error)
- func (c *UploadFileControllerImpl) ListAsSelectOptionByFilter(ctx context.Context, f *domain.UploadFilePaginationListFilter) ([]*domain.UploadFileAsSelectOption, error)
- func (c *UploadFileControllerImpl) ListByFilter(ctx context.Context, f *domain.UploadFilePaginationListFilter) (*domain.UploadFilePaginationListResult, error)
- func (impl *UploadFileControllerImpl) PermanentlyDeleteByID(ctx context.Context, id primitive.ObjectID) error
- func (impl *UploadFileControllerImpl) UpdateByID(ctx context.Context, req *UploadFileUpdateRequestIDO) (*a_d.UploadFile, error)
- type UploadFileCreateRequestIDO
- type UploadFileUpdateRequestIDO
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UploadFileController ¶
type UploadFileController interface { Create(ctx context.Context, req *UploadFileCreateRequestIDO) (*uploadfile_ds.UploadFile, error) GetByID(ctx context.Context, id primitive.ObjectID) (*uploadfile_ds.UploadFile, error) UpdateByID(ctx context.Context, ns *UploadFileUpdateRequestIDO) (*uploadfile_ds.UploadFile, error) ListByFilter(ctx context.Context, f *uploadfile_ds.UploadFilePaginationListFilter) (*uploadfile_ds.UploadFilePaginationListResult, error) ListAsSelectOptionByFilter(ctx context.Context, f *uploadfile_ds.UploadFilePaginationListFilter) ([]*uploadfile_ds.UploadFileAsSelectOption, error) DeleteByID(ctx context.Context, id primitive.ObjectID) error PermanentlyDeleteByID(ctx context.Context, id primitive.ObjectID) error }
UploadFileController Interface for uploadfile business logic controller.
func NewController ¶
func NewController( appCfg *config.Conf, loggerp *slog.Logger, uuidp uuid.Provider, s3 s3_storage.S3Storager, client *mongo.Client, emailer mg.Emailer, t_storer tenant_s.TenantStorer, uploaddirectory_s uploaddirectory_s.UploadDirectoryStorer, org_storer uploadfile_ds.UploadFileStorer, usr_storer user_s.UserStorer, ) UploadFileController
type UploadFileControllerImpl ¶
type UploadFileControllerImpl struct { Config *config.Conf Logger *slog.Logger UUID uuid.Provider S3 s3_storage.S3Storager Emailer mg.Emailer DbClient *mongo.Client TenantStorer tenant_s.TenantStorer UploadFileStorer uploadfile_ds.UploadFileStorer UploadDirectoryStorer uploaddirectory_s.UploadDirectoryStorer UserStorer user_s.UserStorer }
func (*UploadFileControllerImpl) Create ¶
func (impl *UploadFileControllerImpl) Create(ctx context.Context, req *UploadFileCreateRequestIDO) (*a_d.UploadFile, error)
func (*UploadFileControllerImpl) DeleteByID ¶
func (*UploadFileControllerImpl) GetByID ¶
func (c *UploadFileControllerImpl) GetByID(ctx context.Context, id primitive.ObjectID) (*domain.UploadFile, error)
func (*UploadFileControllerImpl) ListAsSelectOptionByFilter ¶
func (c *UploadFileControllerImpl) ListAsSelectOptionByFilter(ctx context.Context, f *domain.UploadFilePaginationListFilter) ([]*domain.UploadFileAsSelectOption, error)
func (*UploadFileControllerImpl) ListByFilter ¶
func (c *UploadFileControllerImpl) ListByFilter(ctx context.Context, f *domain.UploadFilePaginationListFilter) (*domain.UploadFilePaginationListResult, error)
func (*UploadFileControllerImpl) PermanentlyDeleteByID ¶
func (*UploadFileControllerImpl) UpdateByID ¶
func (impl *UploadFileControllerImpl) UpdateByID(ctx context.Context, req *UploadFileUpdateRequestIDO) (*a_d.UploadFile, error)
Click to show internal directories.
Click to hide internal directories.