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 es la estructura usada para procesar JWT
type DevuelvoTweet ¶
type DevuelvoTweet struct { ID primitive.ObjectID `bson:"_id" json:"_id,omitempty"` Userid string `bson:"userid" json:"userId,omitempty"` Mensaje string `bson:"mensaje" json:"mensaje,omitempty"` Fecha time.Time `bson:"fecha" json:"fecha,omitempty"` }
DevuelvoTweet es la estructura para devolver tweets
type DevuelvoTweetsSeguidores ¶
type DevuelvoTweetsSeguidores struct { ID primitive.ObjectID `bson:"_id" json:"_id,omitempty"` UsuarioID string `bson:"usuarioid" json:"userID,omitempty"` UsuarioRelacionID string `bson:"usuariorelacionid" json:"userRelationId,omitempty"` Tweet struct { Mensaje string `bson:"mensaje" json:"mensaje,omitempty"` Fecha time.Time `bson:"fecha" json:"fecha,omitempty"` ID string `bson:"_id" json:"_id,omitempty"` } }
type GraboTweet ¶
type RespuestaConsultaRelacion ¶
type RespuestaConsultaRelacion struct {
Status bool `json:"status"`
}
type RespuestaLogin ¶
type RespuestaLogin struct {
Token string `json:"token,omitempty"`
}
type Usuario ¶
type Usuario struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"id"` RolId string `bson:"rolid" json:"rolid,omitempty"` Nombre string `bson:"nombre" json:"nombre,omitempty"` Apellidos string `bson:"apellidos" json:"apellidos,omitempty"` FechaNacimiento time.Time `bson:"fechaNacimiento" json:"fechaNacimiento,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"` Biografia string `bson:"biografia" json:"biografia,omitempty"` Ubicacion string `bson:"ubicacion" json:"ubicacion,omitempty"` SitioWeb string `bson:"sitioWeb" json:"sitioWeb,omitempty"` }
Usuario es el modelo de usuarios de la BD
Click to show internal directories.
Click to hide internal directories.