Documentation ¶
Index ¶
- type Change
- type ChangePass
- type ChangePlan
- type Destroy
- type IndexUser
- type IndexUserAndPlan
- type Save
- type UserHelper
- func (uh *UserHelper) ValidateChangePasswordRequest(r *http.Request) (internal_user.UserAccount, string, error)
- func (uh *UserHelper) ValidateChangePlanRequest(r *http.Request) (internal_user.UserAccount, error)
- func (uh *UserHelper) ValidateChangeRequest(r *http.Request) (internal_user.UserAccount, string, error)
- func (uh *UserHelper) ValidateDestroyRequest(r *http.Request) (internal_user.UserAccount, error)
- func (uh *UserHelper) ValidateIndexRequest(r *http.Request) (string, error)
- func (uh *UserHelper) ValidateSaveRequest(r *http.Request) (internal_user.UserAccount, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Change ¶
type Change struct { Email string `json:"email" validate:"required"` NewEmail string `json:"newEmail"` Phone string `json:"phone" validate:"required"` Name string `json:"name" validate:"required"` LastName string `json:"lastName" validate:"required"` DataRegion string `json:"dataRegion" validate:"required"` }
type ChangePass ¶
type ChangePlan ¶
type IndexUserAndPlan ¶
type IndexUserAndPlan struct {
Email string `json:"Email"`
}
type Save ¶
type Save struct { Email string `json:"email" validate:"required,email"` Password string `json:"password" validate:"required"` Phone string `json:"phone" validate:"required"` Name string `json:"name" validate:"required"` LastName string `json:"lastName" validate:"required"` DataRegion string `json:"dataRegion" validate:"required"` PlanID int `json:"planId" validate:"required"` }
type UserHelper ¶
type UserHelper struct {
Validator *validator.Validate
}
func NewUserHelper ¶
func NewUserHelper() *UserHelper
func (*UserHelper) ValidateChangePasswordRequest ¶
func (uh *UserHelper) ValidateChangePasswordRequest(r *http.Request) (internal_user.UserAccount, string, error)
func (*UserHelper) ValidateChangePlanRequest ¶
func (uh *UserHelper) ValidateChangePlanRequest(r *http.Request) (internal_user.UserAccount, error)
func (*UserHelper) ValidateChangeRequest ¶
func (uh *UserHelper) ValidateChangeRequest(r *http.Request) (internal_user.UserAccount, string, error)
func (*UserHelper) ValidateDestroyRequest ¶
func (uh *UserHelper) ValidateDestroyRequest(r *http.Request) (internal_user.UserAccount, error)
func (*UserHelper) ValidateIndexRequest ¶
func (uh *UserHelper) ValidateIndexRequest(r *http.Request) (string, error)
func (*UserHelper) ValidateSaveRequest ¶
func (uh *UserHelper) ValidateSaveRequest(r *http.Request) (internal_user.UserAccount, error)
Click to show internal directories.
Click to hide internal directories.