Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrMsgIDInternalErr = 1002 ErrCodeInternalErr = "internal" // Example error code for invalid input ErrMsgIDBannedDomain = 1003 // New custom message ID ErrCodeBannedDomain = "banned_domain" // New custom error code )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CreateUserRequest ¶
type CreateUserRequest struct { Name string `json:"name" validate:"required"` Email string `json:"email" validate:"required,email"` Username string `json:"username" validate:"required,min=3"` PhoneNumber string `json:"phone_number" validate:"omitempty,e164"` // Assuming e164 format for phone numbers }
Click to show internal directories.
Click to hide internal directories.