package
Version:
v0.0.0-...-8c7e8b1
Opens a new window with list of versions in this module.
Published: Jul 10, 2023
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type UserLogin struct {
Email string `json:"email" binding:"required,email"`
Password string `json:"password" binding:"required,min=8,containsany=!@#$%&*"`
}
type UserRequest struct {
Email string `json:"email" binding:"required,email"`
Password string `json:"password" binding:"required,min=8,containsany=!@#$%&*"`
Name string `json:"name" binding:"required,min=4,max=50"`
Age int8 `json:"age" binding:"required,min=1"`
}
type UserUpdateRequest struct {
Name string `json:"name" binding:"omitempty,min=4,max=50"`
Age int8 `json:"age" binding:"omitempty,min=1"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.