restaurant

package
v0.0.0-...-b76b2b2 Latest Latest
Warning

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

Go to latest
Published: May 8, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store interface {
	GetByID(userId, restaurantId uuid.UUID) (*model.Restaurant, error)
	GetAll(userId uuid.UUID) ([]model.Restaurant, error)
	AddRestaurantToUser(userId uuid.UUID, restaurant model.Restaurant) error
	Update(uuid.UUID, *model.Restaurant) (*model.Restaurant, error)
	DeleteRestaurantFromUser(userId, restaurantId uuid.UUID) error

	AddAddressToRestaurant(userId, restaurantId uuid.UUID, addr *model.Address) (*model.Address, error)
}

Jump to

Keyboard shortcuts

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