fixtures

package
v0.0.0-...-87a19a3 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBooking

func AddBooking(store *db.Store, userID, roomID string, from, until time.Time) *types.Booking

func AddHotel

func AddHotel(store *db.Store, name, location string, rating int, rooms []primitive.ObjectID) *types.Hotel

func AddRoom

func AddRoom(store *db.Store, size string, price float64, hotelID string) *types.Room

func AddUser

func AddUser(store *db.Store, firstName, lastName string, isAdmin bool) *types.User

Types

This section is empty.

Jump to

Keyboard shortcuts

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