package
Version:
v0.0.2
Opens a new window with list of versions in this module.
Published: Jul 4, 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
¶
type AIRequest struct {
ID primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"`
User User `bson:"user,omitempty" json:"user,omitempty"`
Query string `bson:"query,omitempty" json:"query,omitempty"`
CreatedAt time.Time `bson:"created_at,omitempty" json:"created_at,omitempty"`
}
type AIResponse struct {
ID primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"`
AIRequest AIRequest `bson:"airequest,omitempty" json:"airequest,omitempty"`
Response string `bson:"response,omitempty" json:"response,omitempty"`
CreatedAt time.Time `bson:"created_at,omitempty" json:"created_at,omitempty"`
}
type Credential struct {
Status int `json:"status" bson:"status"`
Token string `json:"token,omitempty" bson:"token,omitempty"`
Message string `json:"message,omitempty" bson:"message,omitempty"`
}
type Password struct {
Password string `bson:"password,omitempty" json:"password,omitempty"`
Newpassword string `bson:"newpass,omitempty" json:"newpass,omitempty"`
Confirmpassword string `bson:"confirmpass,omitempty" json:"confirmpass,omitempty"`
}
type Response struct {
Status int `json:"status" bson:"status"`
Message string `json:"message,omitempty" bson:"message,omitempty"`
}
type User struct {
ID primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"`
NamaLengkap string `bson:"namalengkap,omitempty" json:"namalengkap,omitempty"`
Email string `bson:"email,omitempty" json:"email,omitempty"`
Password string `bson:"password,omitempty" json:"password,omitempty"`
Confirmpassword string `bson:"confirmpass,omitempty" json:"confirmpass,omitempty"`
Salt string `bson:"salt,omitempty" json:"salt,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.