Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Album ¶
type Album struct { base.DefaultModel Name string `gorm:"size:32;NOT NULL;comment:相册名"` AlbumType string `gorm:"size:32;NOT NULL;comment:相册类型"` AlbumRecords []*AlbumRecord }
Album 相册
type AlbumImage ¶
type AlbumImage struct { Visible bool `json:"visible"` File File `json:"file"` RawFile File `json:"raw_file"` OriginFile File `json:"origin_file"` }
AlbumImage 相册图片
type AlbumItem ¶
type AlbumItem struct { ShotLocation string `json:"shot_location"` Remark string `json:"remark"` ImageFiles []*AlbumImage `json:"images"` VideoFiles []*AlbumVideo `json:"videos"` }
AlbumItem 相册单个景点数据
type AlbumRecord ¶
type AlbumRecord struct { base.DefaultModel AlbumID uint ShotDate time.Time TempLow int8 TempHigh int8 Weather string `gorm:"size:32;NOT NULL;comment:天气"` Items datatypes.JSON }
AlbumRecord 相册记录,以天为记录
type AlbumVideo ¶
AlbumVideo 相册视频
Click to show internal directories.
Click to hide internal directories.