Documentation ¶
Index ¶
Constants ¶
View Source
const ( FollowsTableName = "follows" Follower = "Follower" Following = "Following" Friend = "Friend" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Follows ¶
type Follows struct { gorm.Model ActorId uint `gorm:"primaryKey;type:bigint;actor_id;unique"` ObjectId uint `gorm:"primaryKey;type:bigint;object_id;unique"` IsFollower bool `gorm:"type:boolean;is_follower"` IsFollowing bool `gorm:"type:boolean;is_following"` IsFriend bool `gorm:"type:boolean;is_friend"` }
func NewFollower ¶
func NewFollowing ¶
func NewFollows ¶
Click to show internal directories.
Click to hide internal directories.