dto

package
v0.0.0-...-51e95d8 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddAccessibilityFeaturesByReviewIDInputDTO

type AddAccessibilityFeaturesByReviewIDInputDTO struct {
	ReviewID string
	Features string
}

type AddFavoritesInputDTO

type AddFavoritesInputDTO struct {
	UserId  string `json:"userId"`
	PlaceId string `json:"placeId"`
}

type AuthenticateJwtUserInputDTO

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

type AuthenticateJwtUserOutputDTO

type AuthenticateJwtUserOutputDTO struct {
	Token string `json:"token"`
}

type CreatePlaceInputDTO

type CreatePlaceInputDTO struct {
	GooglePlaceId   string   `json:"GooglePlaceId"`
	Name            string   `json:"name"`
	FormatedAddress string   `json:"formatedAddress"`
	Lat             float64  `json:"lat"`
	Lng             float64  `json:"lng"`
	Icon            string   `json:"icon"`
	Types           []string `json:"types"`
	OpeningPeriods  []string `json:"openingPeriods"`
}

type CreateReviewInputDTO

type CreateReviewInputDTO struct {
	PlaceId               string         `json:"placeId"`
	UserID                string         `json:"userId"`
	Content               string         `json:"content"`
	Photos                []entity.Photo `json:"photos"`
	Rating                float64        `json:"rating"`
	AccessibilityFeatures []string       `json:"accessibilityFeatures"`
}

type CreateUserInputDTO

type CreateUserInputDTO struct {
	Email    string `json:"email"`
	Username string `json:"username"`
	Password string `json:"password"`
}

type DeleteFavoriteByUserIdAndPlaceIdInputDTO

type DeleteFavoriteByUserIdAndPlaceIdInputDTO struct {
	UserId  string `json:"userId"`
	PlaceId string `json:"placeId"`
}

type DeletePlaceByIDInputDTO

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

type DeleteReviewByIDInputDTO

type DeleteReviewByIDInputDTO struct {
	ID string
}

type DeleteUserByIdInputDTO

type DeleteUserByIdInputDTO struct {
	UserId string `json:"userId"`
}

type FindFavoritesByUserIdInputDTO

type FindFavoritesByUserIdInputDTO struct {
	UserId string `json:"userId"`
}

type FindFavoritesByUserIdOutputDTO

type FindFavoritesByUserIdOutputDTO struct {
	PlaceId string `json:"placeId"`
}

type FindNearbyPlacesInputDTO

type FindNearbyPlacesInputDTO struct {
	Lat          float64 `json:"lat"`
	Lng          float64 `json:"lng"`
	Radius       float64 `json:"radius"`
	IsFromGoogle bool    `json:"isFromGoogle"`
}

type FindNearbyPlacesOutputDTO

type FindNearbyPlacesOutputDTO struct {
	ID              string         `json:"id"`
	Name            string         `json:"name"`
	FormatedAddress string         `json:"formatedAddress"`
	Lat             float64        `json:"lat"`
	Lng             float64        `json:"lng"`
	Icon            string         `json:"icon"`
	Types           []string       `json:"types"`
	OpeningPeriods  []string       `json:"openingPeriods"`
	Photos          []entity.Photo `json:"photo"`
	Rating          float64        `json:"rating"`
}

type FindPlaceByIDInputDTO

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

type FindPlaceByIDOutputDTO

type FindPlaceByIDOutputDTO struct {
	ID              string         `json:"id"`
	Name            string         `json:"name"`
	FormatedAddress string         `json:"formatedAddress"`
	Lat             float64        `json:"lat"`
	Lng             float64        `json:"lng"`
	Icon            string         `json:"icon"`
	Types           []string       `json:"types"`
	OpeningPeriods  []string       `json:"openingPeriods"`
	Photos          []entity.Photo `json:"photo"`
	Rating          float64        `json:"rating"`
}

type FindPlacesByAccessibilityFeatureInputDTO

type FindPlacesByAccessibilityFeatureInputDTO struct {
	AccessibilityFeature string `json:"accessibilityFeature"`
}

type FindPlacesByAccessibilityFeatureOutputDTO

type FindPlacesByAccessibilityFeatureOutputDTO struct {
	ID              string         `json:"id"`
	Name            string         `json:"name"`
	FormatedAddress string         `json:"formatedAddress"`
	Lat             float64        `json:"lat"`
	Lng             float64        `json:"lng"`
	Icon            string         `json:"icon"`
	Types           []string       `json:"types"`
	OpeningPeriods  []string       `json:"openingPeriods"`
	Photos          []entity.Photo `json:"photo"`
	Rating          float64        `json:"rating"`
}

type FindReviewByIDInputDTO

type FindReviewByIDInputDTO struct {
	Id string
}

type FindReviewByIDOutputDTO

type FindReviewByIDOutputDTO struct {
	ID                    string            `json:"id"`
	PlaceID               string            `json:"placeId"`
	UserID                string            `json:"userId"`
	Content               string            `json:"content"`
	Photos                []entity.Photo    `json:"photos"`
	Rating                float64           `json:"rating"`
	Reactions             []entity.Reaction `json:"reactions"`
	AccessibilityFeatures []string          `json:"accessibilityFeatures"`
	CreatedAt             time.Time         `json:"createdAt"`
	UpdatedAt             time.Time         `json:"updatedAt"`
}

type FindReviewsByPlaceIDInputDTO

type FindReviewsByPlaceIDInputDTO struct {
	PlaceID string
	Limit   int
	Offset  int
}

type FindReviewsByPlaceIDOutputDTO

type FindReviewsByPlaceIDOutputDTO struct {
	ID                    string            `json:"id"`
	PlaceID               string            `json:"placeId"`
	UserID                string            `json:"userId"`
	Content               string            `json:"content"`
	Photos                []entity.Photo    `json:"photos"`
	Rating                float64           `json:"rating"`
	Reactions             []entity.Reaction `json:"reactions"`
	AccessibilityFeatures []string          `json:"accessibilityFeatures"`
	CreatedAt             time.Time         `json:"createdAt"`
	UpdatedAt             time.Time         `json:"updatedAt"`
}

type FindReviewsByUserIDInputDTO

type FindReviewsByUserIDInputDTO struct {
	UserID string
	Limit  int
	Offset int
}

type FindReviewsByUserIDOutputDTO

type FindReviewsByUserIDOutputDTO struct {
	ID                    string            `json:"id"`
	PlaceID               string            `json:"placeId"`
	UserID                string            `json:"userId"`
	Content               string            `json:"content"`
	Photos                []entity.Photo    `json:"photos"`
	Rating                float64           `json:"rating"`
	Reactions             []entity.Reaction `json:"reactions"`
	AccessibilityFeatures []string          `json:"accessibilityFeatures"`
	CreatedAt             time.Time         `json:"createdAt"`
	UpdatedAt             time.Time         `json:"updatedAt"`
}

type FindUserByEmailInputDTO

type FindUserByEmailInputDTO struct {
	Email string `json:"email"`
}

type FindUserByEmailOutputDTO

type FindUserByEmailOutputDTO struct {
	ID        string           `json:"id"`
	Email     string           `json:"email"`
	Username  string           `json:"username"`
	Avatar    []byte           `json:"avatar"`
	Points    int              `json:"points"`
	Missions  []entity.Mission `json:"missions"`
	CreatedAt time.Time        `json:"createdAt"`
	UpdatedAt time.Time        `json:"updatedAt"`
}

type FindUserByIDInputDTO

type FindUserByIDInputDTO struct {
	UserId string `json:"userId"`
}

type FindUserByIDOutputDTO

type FindUserByIDOutputDTO struct {
	ID        string           `json:"id"`
	Email     string           `json:"email"`
	Username  string           `json:"username"`
	Avatar    []byte           `json:"avatar"`
	Points    int              `json:"points"`
	Missions  []entity.Mission `json:"missions"`
	CreatedAt time.Time        `json:"createdAt"`
	UpdatedAt time.Time        `json:"updatedAt"`
}

type ListAllUsersOutputDTO

type ListAllUsersOutputDTO struct {
	UserId    string    `json:"userId"`
	Email     string    `json:"email"`
	CreatedAt time.Time `json:"createdAt"`
}

type UpdatePlaceByIDInputDTO

type UpdatePlaceByIDInputDTO struct {
	PlaceToUpadteID string         `json:"id"`
	GooglePlaceId   string         `json:"googlePlaceId"`
	Name            string         `json:"name"`
	FormatedAddress string         `json:"formatedAddress"`
	Lat             float64        `json:"lat"`
	Lng             float64        `json:"lng"`
	Icon            string         `json:"icon"`
	Types           []string       `json:"types"`
	OpeningPeriods  []string       `json:"openingPeriods"`
	Photos          []entity.Photo `json:"photos"`
}

type UpdateReviewByIDInputDTO

type UpdateReviewByIDInputDTO struct {
	ID                    string            `json:"id"`
	Content               string            `json:"content"`
	Images                []entity.Photo    `json:"images"`
	Rating                float64           `json:"rating"`
	Reactions             []entity.Reaction `json:"reactions"`
	AccessibilityFeatures []string          `json:"accessibilityFeatures"`
}

type UpdateUserInputDTO

type UpdateUserInputDTO struct {
	UserId    string           `json:"userId"`
	Email     string           `json:"email"`
	Avatar    []byte           `json:"avatar"`
	Username  string           `json:"username"`
	Password  string           `json:"password"`
	Points    int              `json:"points"`
	Missions  []entity.Mission `json:"missions"`
	UpdatedAt time.Time        `json:"updatedAt"`
}

type UpdateUserPointsByUserIDInputDTO

type UpdateUserPointsByUserIDInputDTO struct {
	UserId string `json:"userId"`
	Points int    `json:"points"`
}

Jump to

Keyboard shortcuts

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