Documentation ¶
Index ¶
- Variables
- func Database() *errors.Error
- func DatabaseFormat(format string, args ...any) *errors.Error
- func DeleteSelfDepartment() *errors.Error
- func DeleteSelfDepartmentFormat(format string, args ...any) *errors.Error
- func DeleteSelfRole() *errors.Error
- func DeleteSelfRoleFormat(format string, args ...any) *errors.Error
- func DeleteSelfUser() *errors.Error
- func DeleteSelfUserFormat(format string, args ...any) *errors.Error
- func DeleteSystemData() *errors.Error
- func DeleteSystemDataFormat(format string, args ...any) *errors.Error
- func DepartmentPermissions() *errors.Error
- func DepartmentPermissionsFormat(format string, args ...any) *errors.Error
- func DisableSelfUser() *errors.Error
- func DisableSelfUserFormat(format string, args ...any) *errors.Error
- func EditSystemData() *errors.Error
- func EditSystemDataFormat(format string, args ...any) *errors.Error
- func EmptyToken() *errors.Error
- func EmptyTokenFormat(format string, args ...any) *errors.Error
- func Forbidden() *errors.Error
- func ForbiddenFormat(format string, args ...any) *errors.Error
- func IsDatabase(err error) bool
- func IsDeleteSelfDepartment(err error) bool
- func IsDeleteSelfRole(err error) bool
- func IsDeleteSelfUser(err error) bool
- func IsDeleteSystemData(err error) bool
- func IsDepartmentPermissions(err error) bool
- func IsDisableSelfUser(err error) bool
- func IsEditSystemData(err error) bool
- func IsEmptyToken(err error) bool
- func IsForbidden(err error) bool
- func IsMenuPermissions(err error) bool
- func IsMetadata(err error) bool
- func IsNewCaptcha(err error) bool
- func IsNewToken(err error) bool
- func IsNotFound(err error) bool
- func IsParentMenu(err error) bool
- func IsParseToken(err error) bool
- func IsPasswordExpire(err error) bool
- func IsPasswordFormat(err error) bool
- func IsRefreshToken(err error) bool
- func IsResetSelfUserPassword(err error) bool
- func IsRoleDisable(err error) bool
- func IsRolePermissions(err error) bool
- func IsRsaDecode(err error) bool
- func IsSendEmailCaptcha(err error) bool
- func IsTransform(err error) bool
- func IsUserDisable(err error) bool
- func IsUserPassword(err error) bool
- func IsUserPermissions(err error) bool
- func IsUsernameFormat(err error) bool
- func IsUsernameNotExist(err error) bool
- func IsVerifyCaptcha(err error) bool
- func MenuPermissions() *errors.Error
- func MenuPermissionsFormat(format string, args ...any) *errors.Error
- func Metadata() *errors.Error
- func MetadataFormat(format string, args ...any) *errors.Error
- func NewCaptcha() *errors.Error
- func NewCaptchaFormat(format string, args ...any) *errors.Error
- func NewToken() *errors.Error
- func NewTokenFormat(format string, args ...any) *errors.Error
- func NotFound() *errors.Error
- func NotFoundFormat(format string, args ...any) *errors.Error
- func ParentMenu() *errors.Error
- func ParentMenuFormat(format string, args ...any) *errors.Error
- func ParseToken() *errors.Error
- func ParseTokenFormat(format string, args ...any) *errors.Error
- func PasswordExpire() *errors.Error
- func PasswordExpireFormat(format string, args ...any) *errors.Error
- func PasswordFormat() *errors.Error
- func PasswordFormatFormat(format string, args ...any) *errors.Error
- func RefreshToken() *errors.Error
- func RefreshTokenFormat(format string, args ...any) *errors.Error
- func ResetSelfUserPassword() *errors.Error
- func ResetSelfUserPasswordFormat(format string, args ...any) *errors.Error
- func RoleDisable() *errors.Error
- func RoleDisableFormat(format string, args ...any) *errors.Error
- func RolePermissions() *errors.Error
- func RolePermissionsFormat(format string, args ...any) *errors.Error
- func RsaDecode() *errors.Error
- func RsaDecodeFormat(format string, args ...any) *errors.Error
- func SendEmailCaptcha() *errors.Error
- func SendEmailCaptchaFormat(format string, args ...any) *errors.Error
- func Transform() *errors.Error
- func TransformFormat(format string, args ...any) *errors.Error
- func UserDisable() *errors.Error
- func UserDisableFormat(format string, args ...any) *errors.Error
- func UserPassword() *errors.Error
- func UserPasswordFormat(format string, args ...any) *errors.Error
- func UserPermissions() *errors.Error
- func UserPermissionsFormat(format string, args ...any) *errors.Error
- func UsernameFormat() *errors.Error
- func UsernameFormatFormat(format string, args ...any) *errors.Error
- func UsernameNotExist() *errors.Error
- func UsernameNotExistFormat(format string, args ...any) *errors.Error
- func VerifyCaptcha() *errors.Error
- func VerifyCaptchaFormat(format string, 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: "NotFound", 1: "Database", 2: "Metadata", 3: "Transform", 4: "DepartmentPermissions", 5: "RolePermissions", 6: "UserPermissions", 7: "MenuPermissions", 8: "EditSystemData", 9: "DeleteSystemData", 10: "NewCaptcha", 11: "VerifyCaptcha", 12: "RsaDecode", 13: "PasswordFormat", 14: "PasswordExpire", 15: "UserDisable", 16: "RoleDisable", 17: "UserPassword", 18: "NewToken", 19: "ParseToken", 20: "RefreshToken", 21: "EmptyToken", 22: "DeleteSelfRole", 23: "DeleteSelfDepartment", 24: "ParentMenu", 25: "SendEmailCaptcha", 26: "UsernameFormat", 27: "UsernameNotExist", 28: "DisableSelfUser", 29: "Forbidden", 30: "DeleteSelfUser", 31: "ResetSelfUserPassword", } ErrorReason_value = map[string]int32{ "NotFound": 0, "Database": 1, "Metadata": 2, "Transform": 3, "DepartmentPermissions": 4, "RolePermissions": 5, "UserPermissions": 6, "MenuPermissions": 7, "EditSystemData": 8, "DeleteSystemData": 9, "NewCaptcha": 10, "VerifyCaptcha": 11, "RsaDecode": 12, "PasswordFormat": 13, "PasswordExpire": 14, "UserDisable": 15, "RoleDisable": 16, "UserPassword": 17, "NewToken": 18, "ParseToken": 19, "RefreshToken": 20, "EmptyToken": 21, "DeleteSelfRole": 22, "DeleteSelfDepartment": 23, "ParentMenu": 24, "SendEmailCaptcha": 25, "UsernameFormat": 26, "UsernameNotExist": 27, "DisableSelfUser": 28, "Forbidden": 29, "DeleteSelfUser": 30, "ResetSelfUserPassword": 31, } )
Enum value maps for ErrorReason.
View Source
var File_manager_error_proto protoreflect.FileDescriptor
Functions ¶
func DeleteSelfDepartment ¶
func DeleteSelfRole ¶
func DeleteSelfUser ¶
func DeleteSystemData ¶
func DepartmentPermissions ¶
func DisableSelfUser ¶
func EditSystemData ¶
func EmptyToken ¶
func IsDatabase ¶
func IsDeleteSelfDepartment ¶
func IsDeleteSelfRole ¶
func IsDeleteSelfUser ¶
func IsDeleteSystemData ¶
func IsDepartmentPermissions ¶
func IsDisableSelfUser ¶
func IsEditSystemData ¶
func IsEmptyToken ¶
func IsForbidden ¶
func IsMenuPermissions ¶
func IsMetadata ¶
func IsNewCaptcha ¶
func IsNewToken ¶
func IsNotFound ¶
func IsParentMenu ¶
func IsParseToken ¶
func IsPasswordExpire ¶
func IsPasswordFormat ¶
func IsRefreshToken ¶
func IsResetSelfUserPassword ¶
func IsRoleDisable ¶
func IsRolePermissions ¶
func IsRsaDecode ¶
func IsSendEmailCaptcha ¶
func IsTransform ¶
func IsUserDisable ¶
func IsUserPassword ¶
func IsUserPermissions ¶
func IsUsernameFormat ¶
func IsUsernameNotExist ¶
func IsVerifyCaptcha ¶
func MenuPermissions ¶
func NewCaptcha ¶
func ParentMenu ¶
func ParseToken ¶
func PasswordExpire ¶
func PasswordFormat ¶
func RefreshToken ¶
func ResetSelfUserPassword ¶
func RoleDisable ¶
func RolePermissions ¶
func SendEmailCaptcha ¶
func UserDisable ¶
func UserPassword ¶
func UserPermissions ¶
func UsernameFormat ¶
func UsernameNotExist ¶
func VerifyCaptcha ¶
Types ¶
type ErrorReason ¶
type ErrorReason int32
const ( ErrorReason_NotFound ErrorReason = 0 ErrorReason_Database ErrorReason = 1 ErrorReason_Metadata ErrorReason = 2 ErrorReason_Transform ErrorReason = 3 ErrorReason_DepartmentPermissions ErrorReason = 4 ErrorReason_RolePermissions ErrorReason = 5 ErrorReason_UserPermissions ErrorReason = 6 ErrorReason_MenuPermissions ErrorReason = 7 ErrorReason_EditSystemData ErrorReason = 8 ErrorReason_DeleteSystemData ErrorReason = 9 ErrorReason_NewCaptcha ErrorReason = 10 ErrorReason_VerifyCaptcha ErrorReason = 11 ErrorReason_RsaDecode ErrorReason = 12 ErrorReason_PasswordFormat ErrorReason = 13 ErrorReason_PasswordExpire ErrorReason = 14 ErrorReason_UserDisable ErrorReason = 15 ErrorReason_RoleDisable ErrorReason = 16 ErrorReason_UserPassword ErrorReason = 17 ErrorReason_NewToken ErrorReason = 18 ErrorReason_ParseToken ErrorReason = 19 ErrorReason_RefreshToken ErrorReason = 20 ErrorReason_EmptyToken ErrorReason = 21 ErrorReason_DeleteSelfRole ErrorReason = 22 ErrorReason_DeleteSelfDepartment ErrorReason = 23 ErrorReason_ParentMenu ErrorReason = 24 ErrorReason_SendEmailCaptcha ErrorReason = 25 ErrorReason_UsernameFormat ErrorReason = 26 ErrorReason_UsernameNotExist ErrorReason = 27 ErrorReason_DisableSelfUser ErrorReason = 28 ErrorReason_Forbidden ErrorReason = 29 ErrorReason_DeleteSelfUser ErrorReason = 30 ErrorReason_ResetSelfUserPassword ErrorReason = 31 )
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.