Documentation ¶
Index ¶
- Variables
- func CreateError(args ...any) *errors.Error
- func DatabaseError(args ...any) *errors.Error
- func DeleteError(args ...any) *errors.Error
- func DeleteSystemDataError(args ...any) *errors.Error
- func DeleteTrashError(args ...any) *errors.Error
- func DepartmentPermissionsError(args ...any) *errors.Error
- func EditSystemDataError(args ...any) *errors.Error
- func ExportError(args ...any) *errors.Error
- func ForbiddenError(args ...any) *errors.Error
- func GenCaptchaError(args ...any) *errors.Error
- func GenTokenError(args ...any) *errors.Error
- func GetError(args ...any) *errors.Error
- func GetTrashError(args ...any) *errors.Error
- func ImportError(args ...any) *errors.Error
- func IsCreateError(err error) bool
- func IsDatabaseError(err error) bool
- func IsDeleteError(err error) bool
- func IsDeleteSystemDataError(err error) bool
- func IsDeleteTrashError(err error) bool
- func IsDepartmentPermissionsError(err error) bool
- func IsEditSystemDataError(err error) bool
- func IsExportError(err error) bool
- func IsForbiddenError(err error) bool
- func IsGenCaptchaError(err error) bool
- func IsGenTokenError(err error) bool
- func IsGetError(err error) bool
- func IsGetTrashError(err error) bool
- func IsImportError(err error) bool
- func IsListError(err error) bool
- func IsListTrashError(err error) bool
- func IsMenuPermissionsError(err error) bool
- func IsParamsError(err error) bool
- func IsParseTokenError(err error) bool
- func IsPasswordError(err error) bool
- func IsPasswordExpireError(err error) bool
- func IsRefreshTokenError(err error) bool
- func IsResourceServerError(err error) bool
- func IsRevertTrashError(err error) bool
- func IsRoleDisableError(err error) bool
- func IsRolePermissionsError(err error) bool
- func IsSendCaptchaError(err error) bool
- func IsSystemError(err error) bool
- func IsTransformError(err error) bool
- func IsUpdateError(err error) bool
- func IsUserDisableError(err error) bool
- func IsUserPermissionsError(err error) bool
- func IsUsernameFormatError(err error) bool
- func IsUsernameNotExistError(err error) bool
- func IsVerifyCaptchaError(err error) bool
- func ListError(args ...any) *errors.Error
- func ListTrashError(args ...any) *errors.Error
- func MenuPermissionsError(args ...any) *errors.Error
- func ParamsError(args ...any) *errors.Error
- func ParseTokenError(args ...any) *errors.Error
- func PasswordError(args ...any) *errors.Error
- func PasswordExpireError(args ...any) *errors.Error
- func RefreshTokenError(args ...any) *errors.Error
- func ResourceServerError(args ...any) *errors.Error
- func RevertTrashError(args ...any) *errors.Error
- func RoleDisableError(args ...any) *errors.Error
- func RolePermissionsError(args ...any) *errors.Error
- func SendCaptchaError(args ...any) *errors.Error
- func SystemError(args ...any) *errors.Error
- func TransformError(args ...any) *errors.Error
- func UpdateError(args ...any) *errors.Error
- func UserDisableError(args ...any) *errors.Error
- func UserPermissionsError(args ...any) *errors.Error
- func UsernameFormatError(args ...any) *errors.Error
- func UsernameNotExistError(args ...any) *errors.Error
- func VerifyCaptchaError(args ...any) *errors.Error
- type ErrorReason
- func (ErrorReason) Descriptor() protoreflect.EnumDescriptor
- func (x ErrorReason) Enum() *ErrorReason
- func (ErrorReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x ErrorReason) Number() protoreflect.EnumNumber
- func (x ErrorReason) String() string
- func (ErrorReason) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorReason_name = map[int32]string{ 0: "ParamsError", 1: "SystemError", 2: "DatabaseError", 3: "TransformError", 4: "GetError", 5: "ListError", 6: "CreateError", 7: "ImportError", 8: "ExportError", 9: "UpdateError", 10: "DeleteError", 11: "GetTrashError", 12: "ListTrashError", 13: "DeleteTrashError", 14: "RevertTrashError", 15: "DepartmentPermissionsError", 16: "RolePermissionsError", 17: "UserPermissionsError", 18: "MenuPermissionsError", 19: "EditSystemDataError", 20: "GenCaptchaError", 21: "SendCaptchaError", 22: "DeleteSystemDataError", 23: "VerifyCaptchaError", 24: "PasswordError", 25: "PasswordExpireError", 26: "RefreshTokenError", 27: "UsernameFormatError", 28: "UsernameNotExistError", 29: "UserDisableError", 30: "RoleDisableError", 31: "GenTokenError", 32: "ParseTokenError", 33: "ForbiddenError", 34: "ResourceServerError", } ErrorReason_value = map[string]int32{ "ParamsError": 0, "SystemError": 1, "DatabaseError": 2, "TransformError": 3, "GetError": 4, "ListError": 5, "CreateError": 6, "ImportError": 7, "ExportError": 8, "UpdateError": 9, "DeleteError": 10, "GetTrashError": 11, "ListTrashError": 12, "DeleteTrashError": 13, "RevertTrashError": 14, "DepartmentPermissionsError": 15, "RolePermissionsError": 16, "UserPermissionsError": 17, "MenuPermissionsError": 18, "EditSystemDataError": 19, "GenCaptchaError": 20, "SendCaptchaError": 21, "DeleteSystemDataError": 22, "VerifyCaptchaError": 23, "PasswordError": 24, "PasswordExpireError": 25, "RefreshTokenError": 26, "UsernameFormatError": 27, "UsernameNotExistError": 28, "UserDisableError": 29, "RoleDisableError": 30, "GenTokenError": 31, "ParseTokenError": 32, "ForbiddenError": 33, "ResourceServerError": 34, } )
Enum value maps for ErrorReason.
View Source
var File_api_manager_errors_manager_error_reason_proto protoreflect.FileDescriptor
Functions ¶
func CreateError ¶
func DatabaseError ¶
func DeleteError ¶
func DeleteSystemDataError ¶
func DeleteTrashError ¶
func EditSystemDataError ¶
func ExportError ¶
func ForbiddenError ¶
func GenCaptchaError ¶
func GenTokenError ¶
func GetTrashError ¶
func ImportError ¶
func IsCreateError ¶
func IsDatabaseError ¶
func IsDeleteError ¶
func IsDeleteSystemDataError ¶
func IsDeleteTrashError ¶
func IsEditSystemDataError ¶
func IsExportError ¶
func IsForbiddenError ¶
func IsGenCaptchaError ¶
func IsGenTokenError ¶
func IsGetError ¶
func IsGetTrashError ¶
func IsImportError ¶
func IsListError ¶
func IsListTrashError ¶
func IsMenuPermissionsError ¶
func IsParamsError ¶
func IsParseTokenError ¶
func IsPasswordError ¶
func IsPasswordExpireError ¶
func IsRefreshTokenError ¶
func IsResourceServerError ¶
func IsRevertTrashError ¶
func IsRoleDisableError ¶
func IsRolePermissionsError ¶
func IsSendCaptchaError ¶
func IsSystemError ¶
func IsTransformError ¶
func IsUpdateError ¶
func IsUserDisableError ¶
func IsUserPermissionsError ¶
func IsUsernameFormatError ¶
func IsUsernameNotExistError ¶
func IsVerifyCaptchaError ¶
func ListTrashError ¶
func MenuPermissionsError ¶
func ParamsError ¶
func ParseTokenError ¶
func PasswordError ¶
func PasswordExpireError ¶
func RefreshTokenError ¶
func ResourceServerError ¶
func RevertTrashError ¶
func RoleDisableError ¶
func RolePermissionsError ¶
func SendCaptchaError ¶
func SystemError ¶
func TransformError ¶
func UpdateError ¶
func UserDisableError ¶
func UserPermissionsError ¶
func UsernameFormatError ¶
func UsernameNotExistError ¶
func VerifyCaptchaError ¶
Types ¶
type ErrorReason ¶
type ErrorReason int32
const ( ErrorReason_ParamsError ErrorReason = 0 ErrorReason_SystemError ErrorReason = 1 ErrorReason_DatabaseError ErrorReason = 2 ErrorReason_TransformError ErrorReason = 3 ErrorReason_GetError ErrorReason = 4 ErrorReason_ListError ErrorReason = 5 ErrorReason_CreateError ErrorReason = 6 ErrorReason_ImportError ErrorReason = 7 ErrorReason_ExportError ErrorReason = 8 ErrorReason_UpdateError ErrorReason = 9 ErrorReason_DeleteError ErrorReason = 10 ErrorReason_GetTrashError ErrorReason = 11 ErrorReason_ListTrashError ErrorReason = 12 ErrorReason_DeleteTrashError ErrorReason = 13 ErrorReason_RevertTrashError ErrorReason = 14 ErrorReason_DepartmentPermissionsError ErrorReason = 15 ErrorReason_RolePermissionsError ErrorReason = 16 ErrorReason_UserPermissionsError ErrorReason = 17 ErrorReason_MenuPermissionsError ErrorReason = 18 ErrorReason_EditSystemDataError ErrorReason = 19 ErrorReason_GenCaptchaError ErrorReason = 20 ErrorReason_SendCaptchaError ErrorReason = 21 ErrorReason_DeleteSystemDataError ErrorReason = 22 ErrorReason_VerifyCaptchaError ErrorReason = 23 ErrorReason_PasswordError ErrorReason = 24 ErrorReason_PasswordExpireError ErrorReason = 25 ErrorReason_RefreshTokenError ErrorReason = 26 ErrorReason_UsernameFormatError ErrorReason = 27 ErrorReason_UsernameNotExistError ErrorReason = 28 ErrorReason_UserDisableError ErrorReason = 29 ErrorReason_RoleDisableError ErrorReason = 30 ErrorReason_GenTokenError ErrorReason = 31 ErrorReason_ParseTokenError ErrorReason = 32 ErrorReason_ForbiddenError ErrorReason = 33 ErrorReason_ResourceServerError ErrorReason = 34 )
func (ErrorReason) Descriptor ¶
func (ErrorReason) Descriptor() protoreflect.EnumDescriptor
func (ErrorReason) Enum ¶
func (x ErrorReason) Enum() *ErrorReason
func (ErrorReason) EnumDescriptor
deprecated
func (ErrorReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use ErrorReason.Descriptor instead.
func (ErrorReason) Number ¶
func (x ErrorReason) Number() protoreflect.EnumNumber
func (ErrorReason) String ¶
func (x ErrorReason) String() string
func (ErrorReason) Type ¶
func (ErrorReason) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.