models

package
v0.0.0-...-cfff90c Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Customer

type Customer struct {
	CustomerId  string `json:"customerid" bson:"customerid"`
	Email       string `json:"email" bson:"email"`
	FullName    string `json:"fullname" bson:"fullname"`
	Password    string `json:"password" bson:"password"`
	DateofBirth string `json:"dateofbirth" bson:"dateofbirth"`
	PhoneNumber string `json:"phonenumber" bson:"phonenumber"`
	HouseNo     string `json:"houseno" bson:"houseno"`
	Street      string `json:"street" bson:"street"`
	City        string `json:"city" bson:"city"`
	Country     string `json:"country" bson:"country"`
	Zip         string `json:"zip" bson:"zip"`
}

type CustomerResponse

type CustomerResponse struct {
	CustomerId string `json:"customerid" bson:"customerid"`
}

type EditTaskDetails

type EditTaskDetails struct {
	TaskId     string `json:"taskid" bson:"taskid"`
	CustomerId string `json:"customerid" bson:"customerid"`
	Field      string `json:"field"`
	Value      string `json:"value"`
}

type Login

type Login struct {
	CustomerId string `json:"customerid" bson:"customerid"`
	Email      string `json:"email" bson:"email"`
	Password   string `json:"password" bson:"password"`
}

type Task

type Task struct {
	TaskId        string   `json:"taskid" bson:"taskid"`
	CustomerId    string   `json:"customerid" bson:"customerid"`
	Title         string   `json:"title" bson:"title"`
	Description   string   `json:"description" bson:"description"`
	DueDate       string   `json:"duedate" bson:"duedate"`
	Priority      string   `json:"priority" bson:"priority"`
	Category      string   `json:"category" bson:"category"`
	CreatedAt     string   `json:"createdat" bson:"createdat"`
	Completed     bool     `json:"completed" bson:"completed"`
	UpdateHistory []Update `json:"updatehistory" bson:"updatehistory"`
}

type Task1

type Task1 struct {
	Token         string   `json:"token" bson:"token"`
	TaskId        string   `json:"taskid" bson:"taskid"`
	CustomerId    string   `json:"customerid" bson:"customerid"`
	Title         string   `json:"title" bson:"title"`
	Description   string   `json:"description" bson:"description"`
	DueDate       string   `json:"duedate" bson:"duedate"`
	Priority      string   `json:"priority" bson:"priority"`
	Category      string   `json:"category" bson:"category"`
	CreatedAt     string   `json:"createdat" bson:"createdat"`
	Completed     bool     `json:"completed" bson:"completed"`
	UpdateHistory []Update `json:"updatehistory" bson:"updatehistory"`
}

it is for getting token from frontend

type Task3

type Task3 struct {
	TaskId      string `json:"taskid" bson:"taskid"`
	CustomerId  string `json:"customerid" bson:"customerid"`
	Title       string `json:"title" bson:"title"`
	Description string `json:"description" bson:"description"`
	DueDate     string `json:"duedate" bson:"duedate"`
	Priority    string `json:"priority" bson:"priority"`
	Category    string `json:"category" bson:"category"`
	CreatedAt   string `json:"createdat" bson:"createdat"`
	Completed   bool   `json:"completed" bson:"completed"`
}

type Token

type Token struct {
	CustomerId string `json:"customerid" bson:"customerid"`
	Email      string `json:"email" bson:"email"`
	Token      string `json:"token" bson:"token"`
}

type TokenResponse

type TokenResponse struct {
	Token string `json:"token" bson:"token"`
}

type Update

type Update struct {
	UpdatedAt string `json:"updatedat"`
	Changes   string `json:"changes"`
}

Jump to

Keyboard shortcuts

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