constant

package
v0.0.0-...-d6791e1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UserError = struct {
	UserEmailAlreadyExist         resp.ErrorResponse
	UserEmailNotExist             resp.ErrorResponse
	UserSignUp                    resp.ErrorResponse
	UserLogin                     resp.ErrorResponse
	UserEmailOrPasswordNotCorrect resp.ErrorResponse
	UserNotFound                  resp.ErrorResponse
}{
	UserEmailAlreadyExist: resp.ErrorResponse{
		Code:       "00002001",
		Message:    "email_already_exist",
		StatusCode: http.StatusBadRequest,
	},
	UserEmailNotExist: resp.ErrorResponse{
		Code:       "00002002",
		Message:    "email_not_exist",
		StatusCode: http.StatusBadRequest,
	},
	UserSignUp: resp.ErrorResponse{
		Code:       "00002003",
		Message:    "sign_up_error",
		StatusCode: http.StatusInternalServerError,
	},
	UserLogin: resp.ErrorResponse{
		Code:       "00002004",
		Message:    "login_error",
		StatusCode: http.StatusInternalServerError,
	},
	UserEmailOrPasswordNotCorrect: resp.ErrorResponse{
		Code:       "00002005",
		Message:    "email_or_password_not_correct",
		StatusCode: http.StatusBadRequest,
	},
	UserNotFound: resp.ErrorResponse{
		Code:       "00002006",
		Message:    "user_not_found",
		StatusCode: http.StatusNotFound,
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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