service

package
v0.0.0-...-6f340aa Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2023 License: Apache-2.0 Imports: 15 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 interface {
	GetById(tenantId string, id string) (*entity.File, error)
	UploadSingleFile(tenantId string, multipartFileHeader *multipart.FileHeader) (*entity.File, error)
	DownloadSingleFile(tenantId string, id string) (*entity.File, []byte, error)
	Base64Image(tenantId string, id string) (*string, error)
}

func NewFileService

func NewFileService(cfg *config.Config, db *gorm.DB, repositories *repository.PostgresRepositories) FileService

type Services

type Services struct {
	FileService FileService
}

func InitServices

func InitServices(cfg *config.Config, db *gorm.DB) *Services

Jump to

Keyboard shortcuts

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