service

package
v0.0.0-...-ec2b105 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileService

type FileService struct {
	// contains filtered or unexported fields
}

func NewFileService

func NewFileService(repo repository.IFileRepository) *FileService

func (*FileService) DeleteIndexFileMeta

func (s *FileService) DeleteIndexFileMeta(ctx context.Context, fileId []byte, entityId string, entityType string) error

func (*FileService) IndexFileMeta

func (s *FileService) IndexFileMeta(ctx context.Context, fileId []byte, entityId string, entityType string) error

func (*FileService) Upload

func (s *FileService) Upload(ctx context.Context, fileDTO dto.FileDTO) (*domain.File, error)

type IFileService

type IFileService interface {
	Upload(ctx context.Context, fileDTO dto.FileDTO) (*domain.File, error)
	IndexFileMeta(ctx context.Context, fileId []byte, entityId string, entityType string) error
	DeleteIndexFileMeta(ctx context.Context, fileId []byte, entityId string, entityType string) error
}

Jump to

Keyboard shortcuts

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