service

package
v0.0.0-...-745c2f0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BikeService

type BikeService interface {
	GetBikes() (entity.Stock, error)
	AddBike(bike *entity.Bike) (*entity.Bike, error)
	UpdateBike(bike *entity.Bike) (*entity.Bike, error)
	AddImages(bikeId string, paths []string) error
	GetBikeById(bikeId string) entity.Bike
}

func NewBikesService

func NewBikesService(bikesRepository repository.BikesRepository) BikeService

type UploadService

type UploadService interface {
	Upload(formdata *multipart.Form) ([]string, error)
}

func NewUploadService

func NewUploadService() UploadService

Jump to

Keyboard shortcuts

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