package
Version:
v0.0.0-...-91f31b7
Opens a new window with list of versions in this module.
Published: Nov 15, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type ErrorResponse struct {
Error string `json:"error"`
}
type Request struct {
Name string `json:"name"`
}
type Response struct {
Message string `json:"message"`
}
type User struct {
UserID int `db:"user_id" json:"user_id"`
FirstName string `db:"first_name" json:"first_name"`
LastName string `db:"last_name" json:"last_name"`
Email string `db:"email" json:"email"`
Password string `db:"password" json:"password"`
}
type UserBson struct {
ID primitive.ObjectID `bson:"_id,omitempty" json:"user_id"`
FirstName string `bson:"first_name" json:"first_name"`
LastName string `bson:"last_name" json:"last_name"`
Email string `bson:"email" json:"email"`
Password string `bson:"password" json:"password"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.