models

package
v0.8.7 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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 AddSideDishToOccurrenceInput struct {
	Occurrence uuid.UUID `json:"occurrence"`
	Dish       uuid.UUID `json:"dish"`
}

type AddTagToOccurrenceInput added in v0.6.0

type AddTagToOccurrenceInput struct {
	Occurrence uuid.UUID `json:"occurrence"`
	Tag        string    `json:"tag"`
}

type CreateDishAliasInput added in v0.6.0

type CreateDishAliasInput struct {
	AliasName           string    `json:"aliasName"`
	NormalizedAliasName string    `json:"normalizedAliasName"`
	Dish                uuid.UUID `json:"dish"`
}

type CreateDishInput added in v0.6.0

type CreateDishInput struct {
	NameDe string  `json:"nameDe"`
	NameEn *string `json:"nameEn,omitempty"`
}

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 CreateReviewInput struct {
	Occurrence  uuid.UUID     `json:"occurrence"`
	DisplayName *string       `json:"displayName,omitempty"`
	Images      []*ImageInput `json:"images,omitempty"`
	Stars       int           `json:"stars"`
	Text        *string       `json:"text,omitempty"`
}

type CreateTagInput added in v0.6.0

type CreateTagInput struct {
	Key         string              `json:"key"`
	Name        string              `json:"name"`
	Description string              `json:"description"`
	ShortName   *string             `json:"shortName,omitempty"`
	Priority    *schema.TagPriority `json:"priority,omitempty"`
	IsAllergy   *bool               `json:"isAllergy,omitempty"`
}

type DeleteDishAliasInput

type DeleteDishAliasInput struct {
	AliasName string `json:"aliasName"`
}

type DeleteImagesFromReviewInput added in v0.8.0

type DeleteImagesFromReviewInput struct {
	Review uuid.UUID   `json:"review"`
	Images []uuid.UUID `json:"images"`
}

type DeleteOccurrenceInput

type DeleteOccurrenceInput struct {
	ID uuid.UUID `json:"id"`
}

type DeleteReviewInput

type DeleteReviewInput struct {
	ID uuid.UUID `json:"id"`
}

type DishFilter added in v0.7.0

type DishFilter struct {
	Dishes []uuid.UUID `json:"dishes,omitempty"`
	NameDe *string     `json:"nameDe,omitempty"`
	NameEn *string     `json:"nameEn,omitempty"`
}

type ImageInput

type ImageInput struct {
	ID       uuid.UUID `json:"id"`
	Rotation *int      `json:"rotation,omitempty"`
}

type LocationFilter added in v0.6.0

type LocationFilter struct {
	Ids         []uuid.UUID `json:"ids,omitempty"`
	ExternalIds []int       `json:"externalIds,omitempty"`
	Names       []string    `json:"names,omitempty"`
	Visible     *bool       `json:"visible,omitempty"`
}

type LoginUserInput

type LoginUserInput struct {
	Email    string `json:"email"`
	Password string `json:"password"`
}

type OccurrenceFilter added in v0.6.0

type OccurrenceFilter struct {
	Occurrences []uuid.UUID `json:"occurrences,omitempty"`
	Dishes      []uuid.UUID `json:"dishes,omitempty"`
	StartDate   *time.Time  `json:"startDate,omitempty"`
	EndDate     *time.Time  `json:"endDate,omitempty"`
	Location    *uuid.UUID  `json:"location,omitempty"`
}

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 RemoveSideDishFromOccurrenceInput struct {
	Occurrence uuid.UUID `json:"occurrence"`
	Dish       uuid.UUID `json:"dish"`
}

type RemoveTagFromOccurrenceInput added in v0.6.0

type RemoveTagFromOccurrenceInput struct {
	Occurrence uuid.UUID `json:"occurrence"`
	Tag        string    `json:"tag"`
}

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 ReviewMetadataDish struct {
	AverageStars *float64 `json:"averageStars,omitempty"`
	ReviewCount  int      `json:"reviewCount"`
}

type ReviewMetadataOccurrence added in v0.6.0

type ReviewMetadataOccurrence struct {
	AverageStars *float64 `json:"averageStars,omitempty"`
	ReviewCount  int      `json:"reviewCount"`
}

type Subscription added in v0.8.0

type Subscription struct {
}

type UpdateDishInput added in v0.6.0

type UpdateDishInput struct {
	ID     uuid.UUID `json:"id"`
	NameDe *string   `json:"nameDe,omitempty"`
	NameEn *string   `json:"nameEn,omitempty"`
}

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

type UpdateReviewInput struct {
	ID          uuid.UUID  `json:"id"`
	Occurrence  *uuid.UUID `json:"occurrence,omitempty"`
	DisplayName *string    `json:"displayName,omitempty"`
	Stars       *int       `json:"stars,omitempty"`
	Text        *string    `json:"text,omitempty"`
	Approved    *bool      `json:"approved,omitempty"`
}

Jump to

Keyboard shortcuts

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