example

package module
v0.0.0-...-b94f7fb Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthTokenResponse

type AuthTokenResponse struct {
	AccessToken  string `json:"access_token"`
	TokenType    string `json:"token_type"`
	ExpiresIn    int    `json:"expires_in"`
	RefreshToken string `json:"refresh_token"`
}

AuthTokenResponse represents the response from the /token endpoint

type FoodCreate

type FoodCreate struct {
	UserID     uuid.UUID `json:"user_id"`
	Restaurant string    `json:"restaurant"`
	Rating     int64     `json:"rating"`
	FoodName   string    `json:"food_name"`
	Opinion    string    `json:"opinion"`
	Image      string    `json:"image"`
}

type FoodUpdate

type FoodUpdate struct {
	Id         *int64    `json:"id"`
	UserID     uuid.UUID `json:"user_id"`
	Restaurant string    `json:"restaurant"`
	Rating     int64     `json:"rating"`
	FoodName   string    `json:"food_name"`
	Opinion    string    `json:"opinion"`
	Image      string    `json:"image"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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