Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserProfile ¶
type UserProfile struct { ID primitive.ObjectID `bson:"_id,omitempty"` Email string `bson:"email"` Username string `bson:"username"` PhotoURL string `bson:"photo_url"` FirstName string `bson:"first_name"` LastName string `bson:"last_name"` IsOnline bool `bson:"is_online"` IsBanned bool `bson:"is_banned"` CreatedAt time.Time `bson:"created_at"` UpdatedAt time.Time `bson:"updated_at"` }
type UserRepository ¶
type UserRepository struct {
// contains filtered or unexported fields
}
func NewUserRepository ¶
func NewUserRepository(db *mongo.Database, collection string) (*UserRepository, *auth.AuthRepository)
func (UserRepository) GetContacts ¶
func (UserRepository) GetUserProfile ¶
Click to show internal directories.
Click to hide internal directories.