Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteRequest ¶
type DeleteRequest struct {
ID string `json:"id" validate:"required"`
}
func (*DeleteRequest) Validate ¶
func (d *DeleteRequest) Validate() error
type PatchRequest ¶
type PatchRequest struct { ID string `json:"id" validate:"required"` Age int `json:"age" validate:"required,gt=0,lte=130,number"` Surname string `json:"surname" validate:"required,gt=0,lte=200,alpha"` }
func (*PatchRequest) Validate ¶
func (p *PatchRequest) Validate() error
type PostRequest ¶
type PostRequest struct { Name string `json:"name" validate:"required,gt=0,lte=200,alpha"` Surname string `json:"surname" validate:"required,gt=0,lte=200,alpha"` Age int `json:"age" validate:"required,gt=0,lte=130,number"` }
func (*PostRequest) Validate ¶
func (p *PostRequest) Validate() error
Click to show internal directories.
Click to hide internal directories.