Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActivePeerRoomModel ¶
type DispatchProfilesModel ¶
type GetProfilesModel ¶
type GetProfilesModel struct {
UserIds []string `json:"userIds" bson:"userIds"`
}
type GetUserRoomsModel ¶
type MessageModel ¶
type MessageModel struct { ObjectId uuid.UUID `json:"objectId" bson:"objectId"` OwnerUserId uuid.UUID `json:"ownerUserId" bson:"ownerUserId"` RoomId uuid.UUID `json:"roomId" bson:"roomId"` Text string `json:"text" bson:"text"` CreatedDate int64 `json:"createdDate" bson:"createdDate"` UpdatedDate int64 `json:"updatedDate" bson:"updatedDate"` }
type QueryMessageModel ¶
type ResUserRoomModel ¶
type RoomMemberModel ¶
type RoomModel ¶
type RoomModel struct { ObjectId uuid.UUID `json:"objectId" bson:"objectId"` Members []string `json:"members" bson:"members"` Type int8 `json:"type" bson:"type"` // {0: peer, 1: multiple} ReadDate map[string]int64 `json:"readDate" bson:"readDate"` // {'userId1': last_seen_date_time, 'userId2': last_seen_date_time} ReadCount map[string]int64 `json:"readCount" bson:"readCount"` // {'userId1': read_count, 'userId2': read_count} ReadMessageId map[string]string `json:"readMessageId" bson:"readMessageId"` // {'userId1': 'message_id_234', 'userId2': 'message_id_2323'} DeactiveUsers []string `json:"deactiveUsers" bson:"deactiveUsers"` // ['userId1', 'userId2'] LastMessage map[string]interface{} `json:"lastMessage" bson:"lastMessage"` // {'text': 'message_text', 'ownerId': 'userId'} MemberCount int64 `json:"memberCount" bson:"memberCount"` MessageCount int64 `json:"messageCount" bson:"messageCount"` CreatedDate int64 `json:"createdDate" bson:"createdDate"` UpdatedDate int64 `json:"updatedDate" bson:"updatedDate"` }
type SaveMessagesModel ¶
type UpdateReadMessageModel ¶
type UserModel ¶
type UserModel struct { ObjectId uuid.UUID `json:"objectId"` FullName string `json:"fullName"` Avatar string `json:"avatar"` Banner string `json:"banner"` TagLine string `json:"tagLine"` Birthday int64 `json:"birthday"` WebUrl string `json:"webUrl"` CompanyName string `json:"companyName"` FacebookId string `json:"facebookId"` InstagramId string `json:"instagramId"` TwitterId string `json:"twitterId"` }
type UserProfileModel ¶
type UserProfileModel struct { ObjectId uuid.UUID `json:"objectId" bson:"objectId"` FullName string `json:"fullName" bson:"fullName"` SocialName string `json:"socialName" bson:"socialName"` Avatar string `json:"avatar" bson:"avatar"` Banner string `json:"banner" bson:"banner"` TagLine string `json:"tagLine" bson:"tagLine"` CreatedDate int64 `json:"created_date" bson:"created_date"` LastUpdated int64 `json:"last_updated" bson:"last_updated"` LastSeen int64 `json:"lastSeen" bson:"lastSeen"` Email string `json:"email" bson:"email"` Birthday int64 `json:"birthday" bson:"birthday"` WebUrl string `json:"webUrl" bson:"webUrl"` CompanyName string `json:"companyName" bson:"companyName"` VoteCount int64 `json:"voteCount" bson:"voteCount"` FollowCount int64 `json:"followCount" bson:"followCount"` FollowerCount int64 `json:"followerCount" bson:"followerCount"` PostCount int64 `json:"postCount" bson:"postCount"` FacebookId string `json:"facebookId" bson:"facebookId"` InstagramId string `json:"instagramId" bson:"instagramId"` TwitterId string `json:"twitterId" bson:"twitterId"` AccessUserList []string `json:"accessUserList" bson:"accessUserList"` Permission constants.UserPermissionConst `json:"permission" bson:"permission"` }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.