model

package
v0.0.0-...-bcbb06c Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Receipt

type Receipt struct {
	ID          uint64    `json:"id"`
	Name        string    `json:"name" validate:"nonzero"`
	Description string    `json:"filename"`
	Filename    string    `json:"date" validate:"nonzero"`
	Date        time.Time `json:"string" validate:"nonzero"`
	CreatedBy   uint64    `json:"created_by"`
}

type User

type User struct {
	ID       uint64 `json:"id"`
	Email    string `json:"email" validate:"regexp=^[0-9a-z]+@[0-9a-z]+(\\.[0-9a-z]+)+$"`
	Password string `json:"password" validate:"min=8"`
}

Jump to

Keyboard shortcuts

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