package
Version:
v0.0.0-...-0f3224b
Opens a new window with list of versions in this module.
Published: Sep 10, 2022
License: MIT
Opens a new window with license information.
Imports: 13
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type CreateUserRequest struct {
UserName string `json:"username" binding:"required,alphanum"`
Password string `json:"password" binding:"required,min=6"`
Email string `json:"email" binding:"required,email"`
FullName string `json:"full_name" binding:"required"`
}
type CreateUserResponse struct {
Username string `json:"username"`
FullName string `json:"full_name"`
Email string `json:"email"`
PasswordChangedAt time.Time `json:"password_changed_at"`
CreatedAt time.Time `json:"created_at"`
}
type LoginUserRequest struct {
UserName string `json:"username" binding:"required,alphanum"`
Password string `json:"password" binding:"required,min=6"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.