Documentation ¶
Index ¶
- type MenuStore
- type RestaurantStore
- func (rs RestaurantStore) AddAddressToRestaurant(userId, restaurantId uuid.UUID, addr *model.Address) (*model.Address, error)
- func (rs RestaurantStore) AddRestaurantToUser(userId uuid.UUID, restaurant model.Restaurant) error
- func (rs RestaurantStore) DeleteRestaurantFromUser(userId, restaurantId uuid.UUID) error
- func (rs RestaurantStore) GetAll(userId uuid.UUID) ([]model.Restaurant, error)
- func (rs RestaurantStore) GetByID(userId, restaurantId uuid.UUID) (*model.Restaurant, error)
- func (rs RestaurantStore) Update(userId uuid.UUID, restaurant *model.Restaurant) (*model.Restaurant, error)
- type UserStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MenuStore ¶
type MenuStore struct {
// contains filtered or unexported fields
}
func NewMenuStore ¶
func (MenuStore) AddFoodToMenu ¶
type RestaurantStore ¶
type RestaurantStore struct {
// contains filtered or unexported fields
}
func NewRestaurantStore ¶
func NewRestaurantStore(db *gorm.DB) *RestaurantStore
func (RestaurantStore) AddAddressToRestaurant ¶
func (RestaurantStore) AddRestaurantToUser ¶
func (rs RestaurantStore) AddRestaurantToUser(userId uuid.UUID, restaurant model.Restaurant) error
func (RestaurantStore) DeleteRestaurantFromUser ¶
func (rs RestaurantStore) DeleteRestaurantFromUser(userId, restaurantId uuid.UUID) error
func (RestaurantStore) GetAll ¶
func (rs RestaurantStore) GetAll(userId uuid.UUID) ([]model.Restaurant, error)
func (RestaurantStore) GetByID ¶
func (rs RestaurantStore) GetByID(userId, restaurantId uuid.UUID) (*model.Restaurant, error)
func (RestaurantStore) Update ¶
func (rs RestaurantStore) Update(userId uuid.UUID, restaurant *model.Restaurant) (*model.Restaurant, error)
type UserStore ¶
type UserStore struct {
// contains filtered or unexported fields
}
func NewUserStore ¶
Click to show internal directories.
Click to hide internal directories.