Discover Packages
github.com/utilyre/todolist
model
package
Version:
v0.0.0-...-1e2a79c
Opens a new window with list of versions in this module.
Published: Sep 2, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Author struct {
ID uint64 `json:"id" validate:"-" db:"id"`
Name string `json:"name" validate:"required,min=3,max=255" db:"name"`
Email string `json:"email" validate:"required,email,max=255" db:"email"`
Password string `json:"password" validate:"required,min=8,max=255" db:"password"`
}
type Todo struct {
ID uint64 `json:"id" validate:"-" db:"id"`
AuthorID uint64 `json:"author_id" validate:"-" db:"author_id"`
Title string `json:"title" validate:"required,max=16" db:"title"`
Body string `json:"body" validate:"max=1024" db:"body"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.