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 AssistantFileController

AssistantFileController Interface for assistantfile 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,
	org_storer assistantfile_s.AssistantFileStorer,
	usr_storer user_s.UserStorer,
) AssistantFileController

type AssistantFileControllerImpl

type AssistantFileControllerImpl struct {
	Config              *config.Conf
	Logger              *slog.Logger
	UUID                uuid.Provider
	S3                  s3_storage.S3Storager
	Emailer             mg.Emailer
	DbClient            *mongo.Client
	TenantStorer        tenant_s.TenantStorer
	AssistantFileStorer assistantfile_s.AssistantFileStorer
	UserStorer          user_s.UserStorer
}

func (*AssistantFileControllerImpl) Create

func (*AssistantFileControllerImpl) DeleteByID

func (*AssistantFileControllerImpl) GetByID

func (*AssistantFileControllerImpl) ListAsSelectOptionByFilter

func (*AssistantFileControllerImpl) PermanentlyDeleteByID

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

func (*AssistantFileControllerImpl) UpdateByID

type AssistantFileCreateRequestIDO

type AssistantFileCreateRequestIDO struct {
	Name        string
	Description string
	FileName    string
	FileType    string
	File        multipart.File
}

type AssistantFileUpdateRequestIDO

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

Jump to

Keyboard shortcuts

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