model

package
v0.0.0-...-b8c468f Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Location

type Location struct {
	ID string `json:"id"`
}

type LocationReviewInput

type LocationReviewInput struct {
	// Written text
	Comment string `json:"comment"`
	// A number from 1 - 5 with 1 being lowest and 5 being highest
	Rating int `json:"rating"`
	// Location Id
	LocationID string `json:"locationId"`
}

type Review

type Review struct {
	ID string `json:"id"`
	// Written text
	Comment *string `json:"comment,omitempty"`
	// A number from 1 - 5 with 1 being lowest and 5 being highest
	Rating *int `json:"rating,omitempty"`
	// The location the review is about
	Location *Location `json:"location,omitempty"`
}

type SubmitReviewResponse

type SubmitReviewResponse struct {
	// Similar to HTTP status code, represents the status of the mutation
	Code int `json:"code"`
	// Indicates whether the mutation was successful
	Success bool `json:"success"`
	// Human-readable message for the UI
	Message string `json:"message"`
	// Newly created review
	LocationReview *Review `json:"locationReview,omitempty"`
}

Jump to

Keyboard shortcuts

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