package
Version:
v0.0.0-...-e4ef09c
Opens a new window with list of versions in this module.
Published: Sep 22, 2024
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=6,containsany=!@#$%*"`
}
type UserRequest struct {
Email string `json:"email" binding:"required,email"`
Password string `json:"password" binding:"required,min=6,containsany=!@#$%*"`
Name string `json:"name" binding:"required,min=4,max=50"`
Age int8 `json:"age" binding:"required,min=14,max=140"`
}
type UserUpdateRequest struct {
Name string `json:"name" binding:"omitempty,min=4,max=50"`
Age int8 `json:"age" binding:"omitempty,min=14,max=140"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.