Documentation
¶
Index ¶
- type GenerateShareableLinkRequestIDO
- type GenerateShareableLinkResponseIDO
- type SmartFolderController
- type SmartFolderControllerImpl
- func (impl *SmartFolderControllerImpl) ArchiveByID(ctx context.Context, id primitive.ObjectID) (*smartfolder_s.SmartFolder, error)
- func (impl *SmartFolderControllerImpl) Create(ctx context.Context, requestData *SmartFolderCreateRequestIDO) (*smartfolder_s.SmartFolder, error)
- func (impl *SmartFolderControllerImpl) DeleteByID(ctx context.Context, sfid primitive.ObjectID) error
- func (impl *SmartFolderControllerImpl) GenerateShareableLink(ctx context.Context, requestData *GenerateShareableLinkRequestIDO) (*GenerateShareableLinkResponseIDO, error)
- func (c *SmartFolderControllerImpl) GetByID(ctx context.Context, id primitive.ObjectID) (*smartfolder_s.SmartFolder, error)
- func (c *SmartFolderControllerImpl) ListAsSelectOptionByFilter(ctx context.Context, f *smartfolder_s.SmartFolderPaginationListFilter) ([]*smartfolder_s.SmartFolderAsSelectOption, error)
- func (c *SmartFolderControllerImpl) ListByFilter(ctx context.Context, f *t_s.SmartFolderPaginationListFilter) (*t_s.SmartFolderPaginationListResult, error)
- func (c *SmartFolderControllerImpl) PublicListAsSelectOptionByFilter(ctx context.Context, f *smartfolder_s.SmartFolderPaginationListFilter) ([]*smartfolder_s.SmartFolderAsSelectOption, error)
- func (impl *SmartFolderControllerImpl) UpdateByID(ctx context.Context, requestData *SmartFolderUpdateRequestIDO) (*smartfolder_s.SmartFolder, error)
- type SmartFolderCreateRequestIDO
- type SmartFolderUpdateRequestIDO
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GenerateShareableLinkRequestIDO ¶
type GenerateShareableLinkRequestIDO struct {}
type GenerateShareableLinkResponseIDO ¶
type GenerateShareableLinkResponseIDO struct {
}type SmartFolderController ¶
type SmartFolderController interface { Create(ctx context.Context, requestData *SmartFolderCreateRequestIDO) (*smartfolder_s.SmartFolder, error) GetByID(ctx context.Context, id primitive.ObjectID) (*smartfolder_s.SmartFolder, error) UpdateByID(ctx context.Context, requestData *SmartFolderUpdateRequestIDO) (*smartfolder_s.SmartFolder, error) ListByFilter(ctx context.Context, f *smartfolder_s.SmartFolderPaginationListFilter) (*smartfolder_s.SmartFolderPaginationListResult, error) ListAsSelectOptionByFilter(ctx context.Context, f *smartfolder_s.SmartFolderPaginationListFilter) ([]*smartfolder_s.SmartFolderAsSelectOption, error) PublicListAsSelectOptionByFilter(ctx context.Context, f *smartfolder_s.SmartFolderPaginationListFilter) ([]*smartfolder_s.SmartFolderAsSelectOption, error) ArchiveByID(ctx context.Context, id primitive.ObjectID) (*smartfolder_s.SmartFolder, error) DeleteByID(ctx context.Context, id primitive.ObjectID) error }
SmartFolderController Interface for smartfolder business logic controller.
func NewController ¶
func NewController( appCfg *config.Conf, loggerp *slog.Logger, uuidp uuid.Provider, object object_storage.ObjectStorager, passwordp password.Provider, kmux kmutex.Provider, temailer templatedemailer.TemplatedEmailer, client *mongo.Client, usr_storer user_s.UserStorer, smartfolder_s smartfolder_s.SmartFolderStorer, obj_storer objectfile_s.ObjectFileStorer, ) SmartFolderController
type SmartFolderControllerImpl ¶
type SmartFolderControllerImpl struct { Config *config.Conf Logger *slog.Logger UUID uuid.Provider ObjectStorage object_storage.ObjectStorager Password password.Provider Kmutex kmutex.Provider DbClient *mongo.Client UserStorer user_s.UserStorer SmartFolderStorer smartfolder_s.SmartFolderStorer ObjectFileStorer objectfile_s.ObjectFileStorer TemplatedEmailer templatedemailer.TemplatedEmailer }
func (*SmartFolderControllerImpl) ArchiveByID ¶
func (impl *SmartFolderControllerImpl) ArchiveByID(ctx context.Context, id primitive.ObjectID) (*smartfolder_s.SmartFolder, error)
func (*SmartFolderControllerImpl) Create ¶
func (impl *SmartFolderControllerImpl) Create(ctx context.Context, requestData *SmartFolderCreateRequestIDO) (*smartfolder_s.SmartFolder, error)
func (*SmartFolderControllerImpl) DeleteByID ¶
func (*SmartFolderControllerImpl) GenerateShareableLink ¶
func (impl *SmartFolderControllerImpl) GenerateShareableLink(ctx context.Context, requestData *GenerateShareableLinkRequestIDO) (*GenerateShareableLinkResponseIDO, error)
func (*SmartFolderControllerImpl) GetByID ¶
func (c *SmartFolderControllerImpl) GetByID(ctx context.Context, id primitive.ObjectID) (*smartfolder_s.SmartFolder, error)
func (*SmartFolderControllerImpl) ListAsSelectOptionByFilter ¶
func (c *SmartFolderControllerImpl) ListAsSelectOptionByFilter(ctx context.Context, f *smartfolder_s.SmartFolderPaginationListFilter) ([]*smartfolder_s.SmartFolderAsSelectOption, error)
func (*SmartFolderControllerImpl) ListByFilter ¶
func (c *SmartFolderControllerImpl) ListByFilter(ctx context.Context, f *t_s.SmartFolderPaginationListFilter) (*t_s.SmartFolderPaginationListResult, error)
func (*SmartFolderControllerImpl) PublicListAsSelectOptionByFilter ¶
func (c *SmartFolderControllerImpl) PublicListAsSelectOptionByFilter(ctx context.Context, f *smartfolder_s.SmartFolderPaginationListFilter) ([]*smartfolder_s.SmartFolderAsSelectOption, error)
func (*SmartFolderControllerImpl) UpdateByID ¶
func (impl *SmartFolderControllerImpl) UpdateByID(ctx context.Context, requestData *SmartFolderUpdateRequestIDO) (*smartfolder_s.SmartFolder, error)
type SmartFolderCreateRequestIDO ¶
type SmartFolderCreateRequestIDO struct { Name string `bson:"name" json:"name"` Description string `bson:"description" json:"description"` Category uint64 `bson:"category,omitempty" json:"category,omitempty"` SubCategory uint64 `bson:"sub_category,omitempty" json:"sub_category,omitempty"` SortNumber int8 `bson:"sort_number" json:"sort_number"` }
type SmartFolderUpdateRequestIDO ¶
type SmartFolderUpdateRequestIDO struct { ID primitive.ObjectID `bson:"id" json:"id"` Description string `bson:"description" json:"description"` Name string `bson:"name" json:"name"` Category uint64 `bson:"category,omitempty" json:"category,omitempty"` SubCategory uint64 `bson:"sub_category,omitempty" json:"sub_category,omitempty"` SortNumber int8 `bson:"sort_number" json:"sort_number"` }
Click to show internal directories.
Click to hide internal directories.