domain

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	Id             uuid.UUID `gorm:"primary_key;size:36;<-:create"`
	Context        string    `gorm:"size:255"`
	OriginFilename string    `gorm:"size:255"`
	MimeType       string    `gorm:"size:128"`
	Size           uint
	CreatedAt      time.Time
}

func NewFile

func NewFile(context string, filename string, mimeType string, size uint) File

type InterfaceFileInteractor

type InterfaceFileInteractor interface {
	Save(contextName string, filename string, file multipart.File) (*dto.File, error)
	Get(id uuid.UUID) (*dto.File, error)
	Delete(id uuid.UUID) error
}

type InterfaceFileRepository

type InterfaceFileRepository interface {
	Save(File) error
	Get(uuid.UUID) (File, error)
	Delete(uuid.UUID) error
}

Jump to

Keyboard shortcuts

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