package
Version:
v0.0.0-...-95714bc
Opens a new window with list of versions in this module.
Published: Dec 14, 2022
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 ParamsUserLogin struct {
UserName string `json:"user_name" binding:"required,min=6"`
Password string `json:"password" binding:"required,min=6,max=20"`
}
type ParamsUserSignUp struct {
UserName string `json:"user_name" binding:"required,min=6"`
OriginalPassword string `json:"original_password" binding:"required,min=6,max=20"`
ConfirmPassword string `json:"confirm_password" binding:"required,min=6,max=20,eqfield=OriginalPassword"`
}
type User struct {
UserID int64 `json:"user_id" db:"user_id"`
UserName string `json:"user_name" db:"user_name"`
Password string `json:"password" db:"password"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.