Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindAllReceiptsForUser ¶
Types ¶
type Receipt ¶
type Receipt struct { ID int64 `db:"id"` UserID int64 `db:"user_id"` Supermarket string `db:"supermarket"` Date time.Time `db:"receipt_date"` Total float64 `db:"total"` Currency string `db:"currency"` Items []ReceiptItem }
func CreateReceipt ¶
Create a new receipt in the database and return record ID or error if could not be created
type ReceiptFilter ¶
type ReceiptItem ¶
type User ¶
func FindUserByGoogleUid ¶
Check if given google id user exists in database
Click to show internal directories.
Click to hide internal directories.