User

package
v0.0.0-...-b0a4e96 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2021 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 UserForm

type UserForm struct {
	Name string `form:"name" json:"name" validate:"required|CustomValidator"`
}

func (UserForm) CustomValidator

func (f UserForm) CustomValidator(val string) bool

自定义验证

func (UserForm) Messages

func (f UserForm) Messages() map[string]string

type UserLogin

type UserLogin struct {
	Email    string `form:"email" json:"email" validate:"required|email"`
	Password string `form:"password" json:"password" validate:"required|minLen:6"`
}

func (UserLogin) Messages

func (f UserLogin) Messages() map[string]string

Jump to

Keyboard shortcuts

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