models

package
v0.0.0-...-ba8bc2d Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	ID        primitive.ObjectID `bson:"_id" json:"_id,omitempty"`
	CreatedAt time.Time          `bson:"created_at" json:"created_at"`
	UpdatedAt time.Time          `bson:"updated_at" json:"updated_at"`
	DeletedAt time.Time          `bson:"deleted_at" json:"deleted_at"`
}

type Note

type Note struct {
	Model
	Title   string   `json:"title"`
	Content string   `json:"content"`
	Path    []string `json:"path"`
	Author  string   `json:"author"`
	Public  bool     `json:"public"`
	Type    string   `json:"type"`
	Tags    []string `json:"tags"`
}

type REST

type REST struct {
	Message string `json:"message"`
	Error   int    `json:"error"`
}

type User

type User struct {
	Model
	Login    string `json:"login"`
	Password string `json:"password"`
}

Jump to

Keyboard shortcuts

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