package
0.0.0-20221006145729-6d5e59d1ed0e
Repository: https://github.com/cyb0225/iam.git
Documentation: pkg.go.dev

# Constants

ErrBind -400: Error occurred while binding the request body to the struct.
ErrCodeNotExisted - 404: Code not existed.
ErrDatabase - 500: Database error.
ErrEmailRequired - 200: Email does not meet requirements.
ErrGetFormFile -400: Can not get post form file.
ErrGetToken -400: Get Token from head failed.
ErrGetTokenFromCtx -500: Get Token from context failed.
ErrGetUserIDFromCtx -500: Get User ID from context failed.
ErrPassword -200: Error password.
ErrPasswordRequired - 200: Password does not meet requirements.
ErrPasswordTooLong -200: Password is longer than 26.
ErrPasswordTooShort -200: Password is shorter than 8.
ErrPasswordTooSimple -200: The kind of character in password is less than 2.
ErrSaveUploadFile -500: Can not save the upload file.
ErrSendEmail -500: Send email failed.
ErrTokenNotExisted - 404: Token not existed.
ErrTypeAssertion -500: Type assertion error.
ErrTypeTransform -500: Type transform error.
ErrUserAlreadyExisted - 200: User already existed.
ErrUserNotFound - 404: User not found.