form

package
v0.0.0-...-3871cc9 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2020 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 {
	ID      string `json:"id"`
	Name    string `json:"name"`
	Phone   string `json:"phone"`
	Email   string `json:"email"`
	Address string `json:"address"`
}

UserForm represent the user request model

func (*UserForm) Validate

func (v *UserForm) Validate() []string

Validate represent the validation method from UserForm

type UserQueryForm

type UserQueryForm struct {
	Query string `json:"query"`
}

UserQueryForm represent the user request model

func (*UserQueryForm) Validate

func (v *UserQueryForm) Validate() []string

Validate represent the validation method from UserQueryForm

Jump to

Keyboard shortcuts

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