Documentation
¶
Index ¶
- type AddImagesToReviewInput
- type AddSideDishToOccurrenceInput
- type AddTagToOccurrenceInput
- type CreateDishAliasInput
- type CreateDishInput
- type CreateOccurrenceInput
- type CreateReviewInput
- type CreateTagInput
- type DeleteDishAliasInput
- type DeleteImagesFromReviewInput
- type DeleteOccurrenceInput
- type DeleteReviewInput
- type DishFilter
- type ImageInput
- type LocationFilter
- type LoginUserInput
- type OccurrenceFilter
- type OccurrenceSideDish
- type OccurrenceTag
- type RemoveSideDishFromOccurrenceInput
- type RemoveTagFromOccurrenceInput
- type ReviewDataDish
- type ReviewDataOccurrence
- type ReviewFilter
- type ReviewMetadataDish
- type ReviewMetadataOccurrence
- type Subscription
- type UpdateDishInput
- type UpdateOccurrenceInput
- type UpdateReviewInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddImagesToReviewInput ¶
type AddImagesToReviewInput struct {
Review uuid.UUID `json:"review"`
Images []*ImageInput `json:"images"`
}
type AddSideDishToOccurrenceInput ¶ added in v0.6.0
type AddTagToOccurrenceInput ¶ added in v0.6.0
type CreateDishAliasInput ¶ added in v0.6.0
type CreateDishInput ¶ added in v0.6.0
type CreateOccurrenceInput ¶ added in v0.6.0
type CreateOccurrenceInput struct {
Location uuid.UUID `json:"location"`
Dish uuid.UUID `json:"dish"`
SideDishes []uuid.UUID `json:"sideDishes,omitempty"`
Date *time.Time `json:"date,omitempty"`
Kj *int `json:"kj,omitempty"`
Kcal *int `json:"kcal,omitempty"`
Fat *int `json:"fat,omitempty"`
SaturatedFat *int `json:"saturatedFat,omitempty"`
Carbohydrates *int `json:"carbohydrates,omitempty"`
Sugar *int `json:"sugar,omitempty"`
Fiber *int `json:"fiber,omitempty"`
Protein *int `json:"protein,omitempty"`
Salt *int `json:"salt,omitempty"`
PriceStudent *int `json:"priceStudent,omitempty"`
PriceStaff *int `json:"priceStaff,omitempty"`
PriceGuest *int `json:"priceGuest,omitempty"`
Tags []string `json:"tags,omitempty"`
}
type CreateReviewInput ¶ added in v0.6.0
type CreateTagInput ¶ added in v0.6.0
type DeleteDishAliasInput ¶
type DeleteDishAliasInput struct {
AliasName string `json:"aliasName"`
}
type DeleteImagesFromReviewInput ¶ added in v0.8.0
type DeleteOccurrenceInput ¶
type DeleteReviewInput ¶
type DishFilter ¶ added in v0.7.0
type ImageInput ¶
type LocationFilter ¶ added in v0.6.0
type LoginUserInput ¶
type OccurrenceFilter ¶ added in v0.6.0
type OccurrenceSideDish ¶ added in v0.6.0
type OccurrenceSideDish struct {
Occurrence *ent.Occurrence `json:"occurrence"`
Dish *ent.Dish `json:"dish"`
}
type OccurrenceTag ¶ added in v0.6.0
type OccurrenceTag struct {
Occurrence *ent.Occurrence `json:"occurrence"`
Tag *ent.Tag `json:"tag"`
}
type RemoveSideDishFromOccurrenceInput ¶ added in v0.6.0
type RemoveTagFromOccurrenceInput ¶ added in v0.6.0
type ReviewDataDish ¶
type ReviewDataDish struct {
Reviews []*ent.Review `json:"reviews"`
Images []*ent.Image `json:"images"`
Metadata *ReviewMetadataDish `json:"metadata"`
}
type ReviewDataOccurrence ¶
type ReviewDataOccurrence struct {
Reviews []*ent.Review `json:"reviews"`
Images []*ent.Image `json:"images"`
Metadata *ReviewMetadataOccurrence `json:"metadata"`
}
type ReviewFilter ¶
type ReviewFilter struct {
Approved *bool `json:"approved,omitempty"`
}
type ReviewMetadataDish ¶ added in v0.6.0
type ReviewMetadataOccurrence ¶ added in v0.6.0
type Subscription ¶ added in v0.8.0
type Subscription struct {
}
type UpdateDishInput ¶ added in v0.6.0
type UpdateOccurrenceInput ¶ added in v0.6.0
type UpdateOccurrenceInput struct {
ID uuid.UUID `json:"id"`
Dish *uuid.UUID `json:"dish,omitempty"`
Date *time.Time `json:"date,omitempty"`
Kj *int `json:"kj,omitempty"`
Kcal *int `json:"kcal,omitempty"`
Fat *int `json:"fat,omitempty"`
SaturatedFat *int `json:"saturatedFat,omitempty"`
Carbohydrates *int `json:"carbohydrates,omitempty"`
Sugar *int `json:"sugar,omitempty"`
Fiber *int `json:"fiber,omitempty"`
Protein *int `json:"protein,omitempty"`
Salt *int `json:"salt,omitempty"`
PriceStudent *int `json:"priceStudent,omitempty"`
PriceStaff *int `json:"priceStaff,omitempty"`
PriceGuest *int `json:"priceGuest,omitempty"`
}
type UpdateReviewInput ¶ added in v0.6.0
Click to show internal directories.
Click to hide internal directories.