delivery

package
v0.0.0-...-6ed9fbc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 15, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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 ChangePass struct {
	Email       string `json:"email" validate:"required"`
	Password    string `json:"password" validate:"required"`
	NewPassword string `json:"newPassword" validate:"required"`
}

type ChangePlan

type ChangePlan struct {
	Email  string `json:"email" validate:"required"`
	PlanID int    `json:"planId" validate:"required"`
}

type Destroy

type Destroy struct {
	Email    string `json:"email" validate:"required"`
	Password string `json:"password" validate:"required"`
}

type IndexUser

type IndexUser struct {
	Email string `json:"Email"`
}

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL