entity

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlreadyVerifiedResponse

type AlreadyVerifiedResponse struct {
	Response string `json:"response" example:"user already verified"`
}

type Authenticate

type Authenticate struct {
	Email    string `json:"email" form:"email" binding:"required" example:"james@yahoo.com"`
	Password string `json:"password" form:"password" binding:"required,min=8" example:"password!@#123"`
}

type DBErrorResponse

type DBErrorResponse struct {
	Response string `json:"response" example:"failed to save data to db"`
}

type DataBodyResponse

type DataBodyResponse struct {
	Response string `json:"response" example:"body properties required"`
}

type IncorrectCurrentPasswordResponse

type IncorrectCurrentPasswordResponse struct {
	Response string `json:"response" example:"current password is incorrect"`
}

type LinkExpireResponse

type LinkExpireResponse struct {
	Response string `json:"response" example:"link is invalid or expired"`
}

type LinkRequest

type LinkRequest struct {
	URL   string `json:"url" form:"url" binding:"required"`
	Param string `json:"param" form:"param"  binding:"omitempty,min=7,max=7"`
}

type LoginSignUpOkResponse

type LoginSignUpOkResponse struct {
	Response string `` /* 242-byte string literal not displayed */
}

type NewPasswordEqualResponse

type NewPasswordEqualResponse struct {
	Response string `json:"response" example:"new passwords must be equal"`
}

type PasswordIncorrectResponsse

type PasswordIncorrectResponsse struct {
	Response string `json:"response" example:"password is incorrect"`
}

type PasswordOkResponse

type PasswordOkResponse struct {
	Response string `json:"response" example:"password changed successfully"`
}

type PasswordRequest

type PasswordRequest struct {
	CurrentPassword string `json:"current_password" binding:"required,min=8" example:"James!123"`
	Password        string `json:"password" binding:"required,min=8" example:"1qaz2wsx"`
	ConfirmPassword string `json:"confirm_password" binding:"required,min=8" example:"1qaz2wsx"`
}

type ShortLinkDBErrorResponse

type ShortLinkDBErrorResponse struct {
	Response string `json:"response" example:"cant short long url"`
}

type ShortLinkExistsResponse

type ShortLinkExistsResponse struct {
	Response string `json:"response" example:"url already exists"`
}

type ShortLinkNotExistsResponse

type ShortLinkNotExistsResponse struct {
	Response string `json:"response" example:"url not found"`
}

type ShortLinkOkResponse

type ShortLinkOkResponse struct {
	Response string `json:"response" example:"http://domain/yjMl1vl"`
}

type ShortLinkValidateResponse

type ShortLinkValidateResponse struct {
	Response string `json:"response" example:"url is invalid"`
}

type User404Responsse

type User404Responsse struct {
	Response string `json:"response" example:"user not found"`
}

type UserExistResponse

type UserExistResponse struct {
	Response string `json:"response" example:"user with this email already exists"`
}

type VerifyOKResponse

type VerifyOKResponse struct {
	Response string `json:"response" example:"user verified successfully"`
}

Jump to

Keyboard shortcuts

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