Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Claim ¶
type Claim struct { Email string `json:"email"` ID primitive.ObjectID `bson:"_id" json:"_id,omitempty"` jwt.StandardClaims }
Claim is the structure to process JWT
type RecordPost ¶
type Relationship ¶
type Relationship struct { UserID string `bson:"userid" json:"userID"` UserRelationshipID string `bson:"userrelationshipid" json:"userRelationshipID"` }
Relationship model to record the relationship of one user with another
type RequestConsultRelation ¶
type RequestConsultRelation struct {
Status bool `json:"status"`
}
RequestConsultRelation has true or false that is obtained from querying the relationship between 2 users
type ReturnFollowersPosts ¶
type ReturnFollowersPosts struct { ID primitive.ObjectID `bson:"_id" json:"_id,omitempty"` UserID string `bson:"userid" json:"userID,omitempty` UserRelationshipID string `bson:"userrelationshipid" json:"userRelationshipID,omitempty"` News struct { Message string `bson:"message" json:"message,omitempty"` Date time.Time `bson:"date" json:"date,omitempty"` ID string `bson:"_id" json:"_id,omitempty"` } }
type ReturnPost ¶
type User ¶
type User struct { ID primitive.ObjectID `bson:"_id" json:"id,omitempty"` Name string `bson:"name" json:"name,omitempty"` LastName string `bson:"lastname" json:"lastname,omitempty"` BirthDate time.Time `bson:"birthdate" json""birthdate,omitempty"` Email string `bson:"email" json:"email"` Password string `bson:"password" json:"password,omitempty"` Avatar string `bson:"avatar" json:"avatar,omitempty"` Banner string `bson:"banner" json:"banner,omitempty"` Biography string `bson:"biography" json:"biography,omitempty"` Location string `bson:"location" json:"location,omitempty"` Website string `bson:"website" json:"website,omitempty"` }
Click to show internal directories.
Click to hide internal directories.