controller

package
v0.0.0-...-5e664b8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2024 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UploadFileController

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 (*UploadFileControllerImpl) DeleteByID

func (impl *UploadFileControllerImpl) DeleteByID(ctx context.Context, id primitive.ObjectID) error

func (*UploadFileControllerImpl) GetByID

func (*UploadFileControllerImpl) ListAsSelectOptionByFilter

func (*UploadFileControllerImpl) PermanentlyDeleteByID

func (impl *UploadFileControllerImpl) PermanentlyDeleteByID(ctx context.Context, id primitive.ObjectID) error

func (*UploadFileControllerImpl) UpdateByID

type UploadFileCreateRequestIDO

type UploadFileCreateRequestIDO struct {
	Name              string
	Description       string
	FileName          string
	FileType          string
	File              multipart.File
	UploadDirectoryID primitive.ObjectID
}

type UploadFileUpdateRequestIDO

type UploadFileUpdateRequestIDO struct {
	ID                primitive.ObjectID
	Name              string
	Description       string
	FileName          string
	FileType          string
	File              multipart.File
	UploadDirectoryID primitive.ObjectID
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL