{"modulePath":"github.com/answerdev/answer","version":"v1.2.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package reason\n\n## Constants\n\n```go\nconst (\n\tPrivilegeLevel1Desc = \"privilege.level_1.description\"\n\tPrivilegeLevel2Desc = \"privilege.level_2.description\"\n\tPrivilegeLevel3Desc = \"privilege.level_3.description\"\n\n\tRankQuestionAddLabel               = \"privilege.rank_question_add_label\"\n\tRankAnswerAddLabel                 = \"privilege.rank_answer_add_label\"\n\tRankCommentAddLabel                = \"privilege.rank_comment_add_label\"\n\tRankReportAddLabel                 = \"privilege.rank_report_add_label\"\n\tRankCommentVoteUpLabel             = \"privilege.rank_comment_vote_up_label\"\n\tRankLinkUrlLimitLabel              = \"privilege.rank_link_url_limit_label\"\n\tRankQuestionVoteUpLabel            = \"privilege.rank_question_vote_up_label\"\n\tRankAnswerVoteUpLabel              = \"privilege.rank_answer_vote_up_label\"\n\tRankQuestionVoteDownLabel          = \"privilege.rank_question_vote_down_label\"\n\tRankAnswerVoteDownLabel            = \"privilege.rank_answer_vote_down_label\"\n\tRankInviteSomeoneToAnswerLabel     = \"privilege.rank_invite_someone_to_answer_label\"\n\tRankTagAddLabel                    = \"privilege.rank_tag_add_label\"\n\tRankTagEditLabel                   = \"privilege.rank_tag_edit_label\"\n\tRankQuestionEditLabel              = \"privilege.rank_question_edit_label\"\n\tRankAnswerEditLabel                = \"privilege.rank_answer_edit_label\"\n\tRankQuestionEditWithoutReviewLabel = \"privilege.rank_question_edit_without_review_label\"\n\tRankAnswerEditWithoutReviewLabel   = \"privilege.rank_answer_edit_without_review_label\"\n\tRankQuestionAuditLabel             = \"privilege.rank_question_audit_label\"\n\tRankAnswerAuditLabel               = \"privilege.rank_answer_audit_label\"\n\tRankTagAuditLabel                  = \"privilege.rank_tag_audit_label\"\n\tRankTagEditWithoutReviewLabel      = \"privilege.rank_tag_edit_without_review_label\"\n\tRankTagSynonymLabel                = \"privilege.rank_tag_synonym_label\"\n)\n```\n\n```go\nconst (\n\t// Success .\n\tSuccess = \"base.success\"\n\t// UnknownError unknown error\n\tUnknownError = \"base.unknown\"\n\t// RequestFormatError request format error\n\tRequestFormatError = \"base.request_format_error\"\n\t// UnauthorizedError unauthorized error\n\tUnauthorizedError = \"base.unauthorized_error\"\n\t// DatabaseError database error\n\tDatabaseError = \"base.database_error\"\n\t// ForbiddenError forbidden error\n\tForbiddenError = \"base.forbidden_error\"\n\t// DuplicateRequestError duplicate request error\n\tDuplicateRequestError = \"base.duplicate_request_error\"\n)\n```\n\n```go\nconst (\n\tEmailOrPasswordWrong             = \"error.object.email_or_password_incorrect\"\n\tCommentNotFound                  = \"error.comment.not_found\"\n\tCommentCannotEditAfterDeadline   = \"error.comment.cannot_edit_after_deadline\"\n\tQuestionNotFound                 = \"error.question.not_found\"\n\tQuestionCannotDeleted            = \"error.question.cannot_deleted\"\n\tQuestionCannotClose              = \"error.question.cannot_close\"\n\tQuestionCannotUpdate             = \"error.question.cannot_update\"\n\tQuestionAlreadyDeleted           = \"error.question.already_deleted\"\n\tAnswerNotFound                   = \"error.answer.not_found\"\n\tAnswerCannotDeleted              = \"error.answer.cannot_deleted\"\n\tAnswerCannotUpdate               = \"error.answer.cannot_update\"\n\tAnswerCannotAddByClosedQuestion  = \"error.answer.question_closed_cannot_add\"\n\tCommentEditWithoutPermission     = \"error.comment.edit_without_permission\"\n\tDisallowVote                     = \"error.object.disallow_vote\"\n\tDisallowFollow                   = \"error.object.disallow_follow\"\n\tDisallowVoteYourSelf             = \"error.object.disallow_vote_your_self\"\n\tCaptchaVerificationFailed        = \"error.object.captcha_verification_failed\"\n\tOldPasswordVerificationFailed    = \"error.object.old_password_verification_failed\"\n\tNewPasswordSameAsPreviousSetting = \"error.object.new_password_same_as_previous_setting\"\n\tUserNotFound                     = \"error.user.not_found\"\n\tUsernameInvalid                  = \"error.user.username_invalid\"\n\tUsernameDuplicate                = \"error.user.username_duplicate\"\n\tUserSetAvatar                    = \"error.user.set_avatar\"\n\tEmailDuplicate                   = \"error.email.duplicate\"\n\tEmailVerifyURLExpired            = \"error.email.verify_url_expired\"\n\tEmailNeedToBeVerified            = \"error.email.need_to_be_verified\"\n\tEmailIllegalDomainError          = \"error.email.illegal_email_domain_error\"\n\tUserSuspended                    = \"error.user.suspended\"\n\tObjectNotFound                   = \"error.object.not_found\"\n\tTagNotFound                      = \"error.tag.not_found\"\n\tTagNotContainSynonym             = \"error.tag.not_contain_synonym_tags\"\n\tTagCannotUpdate                  = \"error.tag.cannot_update\"\n\tTagIsUsedCannotDelete            = \"error.tag.is_used_cannot_delete\"\n\tTagAlreadyExist                  = \"error.tag.already_exist\"\n\tRankFailToMeetTheCondition       = \"error.rank.fail_to_meet_the_condition\"\n\tVoteRankFailToMeetTheCondition   = \"error.rank.vote_fail_to_meet_the_condition\"\n\tNoEnoughRankToOperate            = \"error.rank.no_enough_rank_to_operate\"\n\tThemeNotFound                    = \"error.theme.not_found\"\n\tLangNotFound                     = \"error.lang.not_found\"\n\tReportHandleFailed               = \"error.report.handle_failed\"\n\tReportNotFound                   = \"error.report.not_found\"\n\tReadConfigFailed                 = \"error.config.read_config_failed\"\n\tDatabaseConnectionFailed         = \"error.database.connection_failed\"\n\tInstallCreateTableFailed         = \"error.database.create_table_failed\"\n\tInstallConfigFailed              = \"error.install.create_config_failed\"\n\tSiteInfoConfigNotFound           = \"error.site_info.config_not_found\"\n\tUploadFileSourceUnsupported      = \"error.upload.source_unsupported\"\n\tUploadFileUnsupportedFileFormat  = \"error.upload.unsupported_file_format\"\n\tRecommendTagNotExist             = \"error.tag.recommend_tag_not_found\"\n\tRecommendTagEnter                = \"error.tag.recommend_tag_enter\"\n\tRevisionReviewUnderway           = \"error.revision.review_underway\"\n\tRevisionNoPermission             = \"error.revision.no_permission\"\n\tUserCannotUpdateYourRole         = \"error.user.cannot_update_your_role\"\n\tTagCannotSetSynonymAsItself      = \"error.tag.cannot_set_synonym_as_itself\"\n\tNotAllowedRegistration           = \"error.user.not_allowed_registration\"\n\tSMTPConfigFromNameCannotBeEmail  = \"error.smtp.config_from_name_cannot_be_email\"\n\tAdminCannotUpdateTheirPassword   = \"error.admin.cannot_update_their_password\"\n\tAdminCannotModifySelfStatus      = \"error.admin.cannot_modify_self_status\"\n\tUserAccessDenied                 = \"error.user.access_denied\"\n\tUserPageAccessDenied             = \"error.user.page_access_denied\"\n\n\tAddBulkUsersFormatError = \"error.user.add_bulk_users_format_error\"\n\tAddBulkUsersAmountError = \"error.user.add_bulk_users_amount_error\"\n)\n```\n\n```go\nconst (\n\tUserExternalLoginUnbindingForbidden = \"error.user.external_login_unbinding_forbidden\"\n\tUserExternalLoginMissingUserID      = \"error.user.external_login_missing_user_id\"\n)\n```\nuser external login reasons\n\n","path":"github.com/answerdev/answer/internal/base/reason","name":"reason","synopsis":"","isRedistributable":true}
