model

package
v0.0.0-...-29094d0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: GPL-2.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 Todo

type Todo struct {
	Id       int    `json:"id"`
	Name     string `json:"name" form:"name" validate:"required"`
	Priority string `json:"priority" gorm:"type:ENUM('low', 'medium', 'high'); default:'medium'" validate:"required,oneof=low medium high"`
	IsDone   bool   `json:"is_done"`
}

type User

type User struct {
	Id       int    `json:"id"`
	Username string `json:"username" form:"username" validate:"required,len=6,alphanum"`
	Password string `json:"password" form:"password" validate:"required,len=6,alphanum"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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