models

package
v0.0.0-...-0e8bb44 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const MinLenPassword = 6

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	ID       uint64 `json:"id"       valid:"required"`
	Email    string `json:"email"    valid:"required,email~Некорректный формат email"`
	Password string `json:"password" valid:"required,password~Пароль должен быть минимум 6 символов длинной"`
}

func (*User) Sanitize

func (u *User) Sanitize()

func (*User) Trim

func (u *User) Trim()

Jump to

Keyboard shortcuts

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