Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Base ¶
type Photo ¶
type Photo struct {
Base
AuthorID uuid.UUID `json:"author_id" gorm:"type:char(36);not null"`
Author User `json:"-" gorm:"foreignkey:AuthorID"`
FileName string `json:"-"`
Url string `json:"url" gorm:"-"`
}
func (*Photo) PopulateUrl ¶
type Point ¶
type Point struct {
Base
AuthorID uuid.UUID `json:"author_id" gorm:"type:char(36);not null"`
Author User `json:"-" gorm:"foreignkey:AuthorID"`
Latitude float32 `json:"latitude" gorm:"not null"`
Longitude float32 `json:"longitude" gorm:"not null"`
PhotoID uuid.UUID `json:"photo_id" gorm:"char(36)"`
Photo Photo `json:"photo" gorm:"foreignkey:PhotoID"`
AverageTaste float32 `json:"average_taste" gorm:"-"`
UserRating *Rating `json:"user_rating" gorm:"-"`
}
Click to show internal directories.
Click to hide internal directories.