package
Version:
v0.0.0-...-ba8bc2d
Opens a new window with list of versions in this module.
Published: May 27, 2022
License: Apache-2.0
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 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 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 struct {
Message string `json:"message"`
Error int `json:"error"`
}
type User struct {
Model
Login string `json:"login"`
Password string `json:"password"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.