photo

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func NewPhotoService

func NewPhotoService(repo interfaces.Repository, storage interfaces.Storage) *Service

func (*Service) GetPhotos

func (s *Service) GetPhotos(offset, count int) ([]*models.Photo, error)

func (*Service) GetPhotosByIDs

func (s *Service) GetPhotosByIDs(photoIDs []string) ([]*models.Photo, error)

func (*Service) SavePhoto

func (s *Service) SavePhoto(creator string, src multipart.File, height, width int) (models.Photo, error)

Jump to

Keyboard shortcuts

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