package
Version:
v0.0.0-...-3da7468
Opens a new window with list of versions in this module.
Published: Jan 27, 2019
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type AddUserRequest struct {
Email string `validate:"required,email"`
Password string `validate:"required,min=6,max=30"`
Name string `validate:"required,min=3,max=20"`
Age models.NullInt64 `validate:"omitempty,gte=0"`
Gender models.NullString `validate:"omitempty,oneof=male female"`
}
type UpdateUserRequest struct {
Email string `validate:"omitempty,email"`
Password string `validate:"omitempty,min=6,max=30"`
Name string `validate:"omitempty,min=3,max=20"`
Age models.NullInt64 `validate:"omitempty,gte=0"`
Gender models.NullString `validate:"omitempty,oneof=male female"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.