Documentation
¶
Index ¶
- func CreateProfile(username string, fullName string, email string, password string, ...) (insertedID interface{})
- func DeleteProfile(username string, db *mongo.Database, input string)
- func InsertOneDoc(db *mongo.Database, collection string, doc interface{}) (insertedID interface{})
- func InsertProfile(pendidikan string, username string, bio string, checkin string, ...) (InsertID interface{})
- func UpdateProfilePassword(username string, newPassword string, input string, db *mongo.Database)
- type ListData
- type ProfilU
- type Profile
- type TanggalU
- type UserProfil
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateProfile ¶
func InsertOneDoc ¶
func InsertProfile ¶
Types ¶
type ProfilU ¶
type ProfilU struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"` UserID primitive.ObjectID `bson:"user_id,omitempty" json:"user_id,omitempty"` Full_Name string `bson:"full_name,omitempty" json:"full_name,omitempty"` Email string `bson:"email,omitempty" json:"email,omitempty"` Gambar string `bson:"gambar,omitempty" json:"gambar,omitempty"` Bio string `bson:"bio,omitempty" json:"bio,omitempty"` Alamat string `bson:"alamat,omitempty" json:"alamat,omitempty"` Pekerjaan string `bson:"pekerjaan,omitempty" json:"pekerjaan,omitempty"` }
type Profile ¶
type Profile struct { Username string `bson:"username"` FullName string `bson:"full_name"` Email string `bson:"email"` Password string `bson:"password"` }
func GetDataProfFromStatus ¶
type UserProfil ¶
type UserProfil struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"` Username string `bson:"username,omitempty" json:"username,omitempty"` Email string `bson:"email,omitempty" json:"email,omitempty"` Password string `bson:"password,omitempty" json:"password,omitempty"` Nama string `bson:"nama,omitempty" json:"nama,omitempty"` }
Click to show internal directories.
Click to hide internal directories.