package
0.0.6
Repository: https://github.com/coderi421/gframework.git
Documentation: pkg.go.dev

# Constants

ErrBind - 400: Error occurred while binding the request body to the struct.
ErrCategoryNotFound - 404: Category not found.
ErrCodeInCorrect - 400: Sms code incorrect.
ErrCodeInvalidParam - 400: Invalid param.
ErrCodeNotExist - 400: Sms code incorrect or expired.
ErrConnectDB - 500: Init db error.
ErrConnectGRPC - 500: Connect to grpc error.
ErrDatabase - 500: Database error.
ErrDecodingFailed - 500: Decoding failed due to an error with the data.
ErrDecodingJSON - 500: JSON data could not be decoded.
ErrDecodingYaml - 500: Yaml data could not be decoded.
ErrEncodingFailed - 500: Encoding failed due to an error with the data.
ErrEncodingJSON - 500: JSON data could not be encoded.
ErrEncodingYaml - 500: Yaml data could not be encoded.
ErrEncrypt - 401: Error occurred while encrypting the user password.
ErrBrandNotFound - 500: Es unmarshal error.
ErrExpired - 401: Token expired.
ErrGoodsNotFound - 404: Goods not found.
ErrInvalidAuthHeader - 401: Invalid authorization header.
ErrInvalidJSON - 500: Data is not valid JSON.
ErrInvalidYaml - 500: Data is not valid Yaml.
ErrInventoryNotFound - 404: Inventory not found.
ErrInvNotEnough - 400: Inventory not enough.
ErrInvSellDetailNotFound - 400: Inventory sell detail not found.
ErrMissingHeader - 401: The `Authorization` header was empty.
ErrOrderNotFound - 404: No Goods selected.
ErrPageNotFound - 404: Page not found.
ErrPasswordIncorrect - 401: Password was incorrect.
PermissionDenied - 403: Permission denied.
ErrShopCartItemNotFound - 404: ShopCart item not found.
ErrSignatureInvalid - 401: Signature is invalid.
ErrSmsSend - 400: Send sms error.
ErrSubmitOrder - 400: Submit order error.
ErrSuccess - 200: OK.
ErrTokenInvalid - 401: Token invalid.
ErrUnknown - 500: Internal server error.
ErrUserAlreadyExists - 400: User already exists.
ErrUserNotFound - 404: User not found.
ErrUserPasswordIncorrect - 400: User password incorrect.
ErrValidation - 400: Validation failed.

# Structs

No description provided by the author