package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: May 16, 2021
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type CreateTodoParam struct {
Task string `json:"task" bson:"task" validate:"required"`
Completed bool `json:"completed" bson:"completed" validate:"required"`
UserID primitive.ObjectID `json:"userId" bson:"userId,omitempty" validate:"required"`
}
type CreateUserParam struct {
Name string `json:"name" bson:"name" validate:"required"`
Email string `json:"email" bson:"email" validate:"required"`
ImageUrl string `json:"imageUrl" bson:"imageUrl" validate:"required"`
}
type GoogleAuth struct {
TokenID string `json:"token_id,omitempty"`
Name string `json:"name,omitempty"`
Email string `json:"email,omitempty"`
Imageurl string `json:"imageUrl,omitempty"`
}
type Todo struct {
ID primitive.ObjectID `json:"id" bson:"_id"`
Task string `json:"task" bson:"task"`
Completed bool `json:"completed" bson:"completed"`
UserID primitive.ObjectID `json:"userId" bson:"userId,omitempty"`
}
type UpdateTodoParam struct {
Task string `json:"task" bson:"task"`
Completed bool `json:"completed" bson:"completed"`
}
type User struct {
ID primitive.ObjectID `json:"id" bson:"_id"`
Name string `json:"name" bson:"name"`
Email string `json:"email" bson:"email"`
ImageUrl string `json:"imageUrl" bson:"imageUrl"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.