Documentation ¶
Overview ¶
This file is in core bc GenUUID generates UUID that are needed for core models
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Community ¶
type Community struct { ID string `bson:"_id"` Name string `bson:"name"` Image string `bson:"image"` Info string `bson:"info"` FollowerIDs []string `bson:"followers,omitempty"` AdminIDs []string `bson:"admins,omitempty"` PostIDs []string `bson:"posts,omitempty"` CreatedAt int64 `bson:"created_at"` // unix timestamp }
type PaginationParameters ¶
type Post ¶
type Post struct { ID string `bson:"_id"` AuthorID string `bson:"author_id"` Message string `bson:"message"` Images []string `bson:"images,omitempty"` Attachments []string `bson:"attachments,omitempty"` CreatedAt int64 `bson:"created_at"` // unix timestamp Type string `bson:"type"` CommentsIDs []string `bson:"comment_ids,omitempty"` }
type User ¶
type User struct { ID string `bson:"_id"` Name common.UserName `bson:"name"` Image string `bson:"images"` Email string `bson:"email"` Phone string `bson:"phone"` Location string `bson:"location"` BirthDay string `bson:"birth_day"` CreatedAt int64 `bson:"created_at"` // unix timestamp Posts []string `bson:"posts,omitempty"` DialogIDs []string `bson:"dialog_ids,omitempty"` CommunityIDs []string `bson:"community_ids,omitempty"` }
User describes a user entity
Source Files ¶
Click to show internal directories.
Click to hide internal directories.