model

package
v0.3.217 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Categories added in v0.3.22

type Categories struct {
	Category string `bson:"category,omitempty" json:"category,omitempty"`
}

type Credential

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"`
	Data    []User `bson:"data,omitempty" json:"data,omitempty"`
}

type GridFSFile added in v0.3.214

type GridFSFile struct {
	ID          primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"`
	FileName    string             `bson:"filename,omitempty" json:"filename,omitempty"`
	FileSize    int64              `bson:"size,omitempty" json:"size,omitempty"`
	ContentType string             `bson:"contentType,omitempty" json:"contentType,omitempty"`
}

type LogTodo added in v0.3.22

type LogTodo struct {
	TimeStamp int64                    `bson:"timestamp,omitempty" json:"timestamp,omitempty"`
	Action    string                   `bson:"action,omitempty" json:"action,omitempty"`
	TodoID    string                   `bson:"todoid,omitempty" json:"todoid,omitempty"`
	UserID    string                   `bson:"userid,omitempty" json:"userid,omitempty"`
	Change    []map[string]interface{} `bson:"change,omitempty" json:"change,omitempty"`
}

type LogTodoResponse added in v0.3.22

type LogTodoResponse struct {
	Status  bool      `bson:"status" json:"status"`
	Message string    `bson:"message,omitempty" json:"message,omitempty"`
	Data    []LogTodo `bson:"data,omitempty" json:"data,omitempty"`
}

type LogUser added in v0.3.22

type LogUser struct {
	TimeStamp int64                    `bson:"timestamp,omitempty" json:"timestamp,omitempty"`
	Action    string                   `bson:"action,omitempty" json:"action,omitempty"`
	ID        string                   `bson:"id,omitempty" json:"id,omitempty"`
	UserID    string                   `bson:"userid,omitempty" json:"userid,omitempty"`
	Change    []map[string]interface{} `bson:"change,omitempty" json:"change,omitempty"`
}

type TimeStamps added in v0.3.22

type TimeStamps struct {
	CreatedAt int64 `bson:"createdat,omitempty" json:"createdat,omitempty"`
	UpdatedAt int64 `bson:"updatedat,omitempty" json:"updatedat,omitempty"`
}

type Todo

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"`
	Deadline    string             `bson:"deadline,omitempty" json:"deadline,omitempty"`
	Time        string             `bson:"time,omitempty" json:"time,omitempty"`
	File        GridFSFile         `bson:"file,omitempty" json:"file,omitempty"`
	Tags        Categories         `bson:"tags,omitempty" json:"tags,omitempty"`
	TimeStamps  TimeStamps         `bson:"timestamps,omitempty" json:"timestamps,omitempty"`
	User        User               `bson:"user,omitempty" json:"user,omitempty"`
}

type TodoClear added in v0.3.22

type TodoClear struct {
	IsDone    bool  `bson:"isdone,omitempty" json:"isdone,omitempty"`
	TimeClear int64 `bson:"timeclear,omitempty" json:"timeclear,omitempty"`
	Todo      Todo  `bson:"todo,omitempty" json:"todo,omitempty"`
}

type TodoClearResponse added in v0.3.22

type TodoClearResponse struct {
	Status  bool        `bson:"status" json:"status"`
	Message string      `bson:"message,omitempty" json:"message,omitempty"`
	Data    []TodoClear `bson:"data,omitempty" json:"data,omitempty"`
}

type TodoResponse added in v0.2.0

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"`
	DataTags []Categories `bson:"datatags,omitempty" json:"datatags,omitempty"`
}

type User

type User struct {
	ID              primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"`
	UID             string             `bson:"uid,omitempty" json:"uid,omitempty"`
	Email           string             `bson:"email,omitempty" json:"email,omitempty"`
	Phonenumber     string             `bson:"phonenumber,omitempty" json:"phonenumber,omitempty"`
	Username        string             `bson:"username,omitempty" json:"username,omitempty"`
	Password        string             `bson:"password,omitempty" json:"password,omitempty"`
	ConfirmPassword string             `bson:"confirmpassword,omitempty" json:"confirmpassword,omitempty"`
	Role            string             `bson:"role,omitempty" json:"role,omitempty"`
}

Jump to

Keyboard shortcuts

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