model

package
v0.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChatHistory added in v0.0.9

type ChatHistory struct {
	ID        primitive.ObjectID `bson:"_id,omitempty"`
	UserID    string             `bson:"user_id"`
	Timestamp string             `bson:"timestamp"`
	Message   string             `bson:"message"`
}

type ChatRequest

type ChatRequest struct {
	Message string `json:"message"`
}

struct ChatRequest

type ChatResponse

type ChatResponse struct {
	ID       primitive.ObjectID `bson:"_id,omitempty" json:"id,omitempty"`
	Message  string             `bson:"message" json:"message"`
	Response string             `bson:"response" json:"response"`
}

ChatResponse represents a chat response

type Chats added in v0.0.9

type Chats struct {
	IDChats   string `json:"idchats"`
	Message   string `json:"message"`
	Responses string `json:"responses"`
	Score     float64
}

type Credential added in v0.0.8

type Credential struct {
	//	ID       string    `json:"id"`
	Status  bool   `json:"status" bson:"status"`
	Token   string `json:"token,omitempty" bson:"token,omitempty"`
	Message string `json:"message,omitempty" bson:"message,omitempty"`
}

type Dataset added in v0.0.9

type Dataset struct {
	ID       primitive.ObjectID `bson:"_id,omitempty" json:"id,omitempty"`
	Question string             `bson:"question" json:"question"`
	Answer   string             `bson:"answer" json:"answer"`
}

type ForgotPasswordRequest added in v0.1.0

type ForgotPasswordRequest struct {
	PhoneNumber string `json:"phone_number" bson:"phone_number"`
}

struct ForgotPasswordRequest

type Menu struct {
	ID   primitive.ObjectID `bson:"_id,omitempty"`
	Name string             `bson:"name"`
}
type MenuService struct {
	// contains filtered or unexported fields
}

type Payload added in v0.0.9

type Payload struct {
	ID string `json:"id"`
	// Role     string    `json:"role"`
	IssuedAt time.Time `json:"issued_at"`
	Expiry   time.Time `json:"expiry"`
}

type Pengguna

type Pengguna struct {
	ID       primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"`
	Username string             `bson:"username,omitempty" json:"username,omitempty"`
	Akun     User               `bson:"akun,omitempty" json:"akun,omitempty"`
}

struct Pengguna

type Response

type Response struct {
	Status  bool        `json:"status"`
	Message string      `json:"message"`
	Data    interface{} `json:"data"`
}

struct response

type User

type User struct {
	ID       primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"`
	Email    string             `bson:"email,omitempty" json:"email,omitempty"`
	Password string             `bson:"password,omitempty" json:"password,omitempty"`
	Salt     string             `bson:"salt,omitempty" json:"salt,omitempty"`
	Role     string             `bson:"role,omitempty" json:"role,omitempty"`
}

struct user

type VerificationCode added in v0.1.3

type VerificationCode struct {
	PhoneNumber string `json:"phone_number" bson:"phone_number"`
	Code        string `json:"code" bson:"code"`
	ExpiresAt   int64  `json:"expires_at" bson:"expires_at"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL