package
Version:
v0.2.2
Opens a new window with list of versions in this module.
Published: Nov 12, 2023
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
type Credential struct {
Status bool `bson:"status" json:"status"`
Token string `bson:"token,omitempty" json:"token,omitempty"`
Message string `bson:"message,omitempty" json:"message,omitempty"`
}
type Todo struct {
ID primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"`
Title string `bson:"title,omitempty" json:"title,omitempty"`
Description string `bson:"description,omitempty" json:"description,omitempty"`
IsDone bool `bson:"isdone,omitempty" json:"isdone,omitempty"`
}
type TodoList struct {
Users []User `bson:"users,omitempty" json:"users,omitempty"`
DataTodo []Todo `bson:"todolist,omitempty" json:"todolist,omitempty"`
}
type TodoResponse struct {
Status bool `bson:"status" json:"status"`
Message string `bson:"message,omitempty" json:"message,omitempty"`
Data []Todo `bson:"data,omitempty" json:"data,omitempty"`
}
type User struct {
ID primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"`
Email string `bson:"email,omitempty" json:"email,omitempty"`
Username string `bson:"username,omitempty" json:"username,omitempty"`
Password string `bson:"password,omitempty" json:"password,omitempty"`
Role string `bson:"role,omitempty" json:"role,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.