Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Moment ¶
type Moment struct { entity.Base EntityID uuid.UUID `gorm:"not null;index:entityID"` Title string Message string ImageURLs []string `gorm:"type:text[]"` VideoURLs []string `gorm:"type:text[]"` LikedEntities []uuid.UUID `gorm:"type:UUID[]"` Replies []*Reply }
Moment entity
func (*Moment) MarshalBinary ¶
MarshalBinary for redis
func (*Moment) UnmarshalBinary ¶
UnmarshalBinary for redis
type Reply ¶
type Reply struct { entity.Base EntityID uuid.UUID `gorm:"not null;index:entityID"` Message string `gorm:"not null"` ImageURLs []string `gorm:"type:text[]"` VideoURLs []string `gorm:"type:text[]"` }
Reply entity
func (*Reply) MarshalBinary ¶
MarshalBinary for redis
func (*Reply) UnmarshalBinary ¶
UnmarshalBinary for redis
Click to show internal directories.
Click to hide internal directories.