Discover Packages
github.com/erfahtech/be_erfahtech
model
package
Version:
v0.0.24
Opens a new window with list of versions in this module.
Published: Jan 8, 2024
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
Documentation
¶
type Credential struct {
Status bool `json:"status" bson:"status"`
Token string `json:"token,omitempty" bson:"token,omitempty"`
Message string `json:"message,omitempty" bson:"message,omitempty"`
}
type Device struct {
ID primitive .ObjectID `json:"id" bson:"_id,omitempty"`
Name string `json:"name" bson:"name"`
Topic string `json:"topic" bson:"topic"`
User string `json:"user" bson:"user"`
Status bool `json:"status" bson:"status"`
}
type DeviceResponse struct {
Status bool `json:"status"`
Message string `json:"message"`
Data []Device `json:"data"`
}
type History struct {
ID primitive .ObjectID `json:"id" bson:"_id,omitempty"`
Name string `json:"name" bson:"name"`
Topic string `json:"topic" bson:"topic"`
Payload string `json:"payload" bson:"payload"`
User string `json:"user" bson:"user"`
CreatedAt time .Time `json:"created_at" bson:"created_at"`
}
type HistoryResponse struct {
Status bool `json:"status"`
Message string `json:"message"`
Data []History `json:"data"`
}
type Otp struct {
ID primitive .ObjectID `bson:"_id,omitempty" json:"_id,omitempty"`
Email string `json:"email" bson:"email"`
OTP string `json:"otp" bson:"otp"`
ExpiredAt int64 `json:"expiredat" bson:"expiredat"`
Status bool `json:"status" bson:"status"`
}
type ResetPassword struct {
Email string `json:"email" bson:"email"`
OTP string `json:"otp" bson:"otp"`
Password string `json:"password" bson:"password"`
}
type Response struct {
Status bool `json:"status"`
Message string `json:"message"`
}
type User struct {
ID primitive .ObjectID `json:"id" bson:"_id,omitempty"`
Username string `json:"username" bson:"username"`
Email string `json:"Email" bson:"email"`
Password string `json:"password" bson:"password"`
PhoneNumber string `json:"phonenumber,omitempty" bson:"phonenumber,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.