Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ImageUpload ¶
type ImageUpload struct { Business string `form:"business" json:"business" binding:"required"` Image *multipart.FileHeader `form:"image" json:"image" binding:"required"` }
func (ImageUpload) GetMessages ¶
func (imageUpload ImageUpload) GetMessages() ValidatorMessages
type Login ¶
type Login struct { Mobile string `form:"mobile" json:"mobile" binding:"required,mobile"` Password string `form:"password" json:"password" binding:"required"` }
func (Login) GetMessages ¶
func (login Login) GetMessages() ValidatorMessages
type Register ¶
type Register struct { Name string `form:"name" json:"name" binding:"required"` Mobile string `form:"mobile" json:"mobile" binding:"required,mobile"` Password string `form:"password" json:"password" binding:"required"` }
func (Register) GetMessages ¶
func (register Register) GetMessages() ValidatorMessages
type Validator ¶
type Validator interface {
GetMessages() ValidatorMessages
}
type ValidatorMessages ¶
Click to show internal directories.
Click to hide internal directories.