Documentation ¶
Index ¶
- Variables
- func AlreadyExistEmail() *errors.Error
- func AlreadyExistEmailFormat(format string, args ...any) *errors.Error
- func AlreadyExistPhone() *errors.Error
- func AlreadyExistPhoneFormat(format string, args ...any) *errors.Error
- func AlreadyExistUsername() *errors.Error
- func AlreadyExistUsernameFormat(format string, args ...any) *errors.Error
- func Database() *errors.Error
- func DatabaseFormat(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 GenCaptcha() *errors.Error
- func GenCaptchaFormat(format string, args ...any) *errors.Error
- func GenToken() *errors.Error
- func GenTokenFormat(format string, args ...any) *errors.Error
- func GetAuthInfo() *errors.Error
- func GetAuthInfoFormat(format string, args ...any) *errors.Error
- func IsAlreadyExistEmail(err error) bool
- func IsAlreadyExistPhone(err error) bool
- func IsAlreadyExistUsername(err error) bool
- func IsDatabase(err error) bool
- func IsEmptyToken(err error) bool
- func IsForbidden(err error) bool
- func IsGenCaptcha(err error) bool
- func IsGenToken(err error) bool
- func IsGetAuthInfo(err error) bool
- func IsMetadata(err error) bool
- func IsNotApp(err error) bool
- func IsNotAppChannel(err error) bool
- func IsNotExistEmail(err error) bool
- func IsNotFound(err error) bool
- func IsNotRecord(err error) bool
- func IsNotUser(err error) bool
- func IsNotUserApp(err error) bool
- func IsNotUserChannel(err error) bool
- func IsParseToken(err error) bool
- func IsPasswordExpire(err error) bool
- func IsPasswordFormat(err error) bool
- func IsRefreshToken(err error) bool
- func IsRegister(err error) bool
- func IsResourceServer(err error) bool
- func IsRsaDecode(err error) bool
- func IsTransform(err error) bool
- func IsUnBind(err error) bool
- func IsUserDisable(err error) bool
- func IsUsernameOrPassword(err error) bool
- func IsVerifyCaptcha(err error) bool
- func Metadata() *errors.Error
- func MetadataFormat(format string, args ...any) *errors.Error
- func NotApp() *errors.Error
- func NotAppChannel() *errors.Error
- func NotAppChannelFormat(format string, args ...any) *errors.Error
- func NotAppFormat(format string, args ...any) *errors.Error
- func NotExistEmail() *errors.Error
- func NotExistEmailFormat(format string, args ...any) *errors.Error
- func NotFound() *errors.Error
- func NotFoundFormat(format string, args ...any) *errors.Error
- func NotRecord() *errors.Error
- func NotRecordFormat(format string, args ...any) *errors.Error
- func NotUser() *errors.Error
- func NotUserApp() *errors.Error
- func NotUserAppFormat(format string, args ...any) *errors.Error
- func NotUserChannel() *errors.Error
- func NotUserChannelFormat(format string, args ...any) *errors.Error
- func NotUserFormat(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 Register() *errors.Error
- func RegisterFormat(format string, args ...any) *errors.Error
- func ResourceServer() *errors.Error
- func ResourceServerFormat(format string, args ...any) *errors.Error
- func RsaDecode() *errors.Error
- func RsaDecodeFormat(format string, args ...any) *errors.Error
- func Transform() *errors.Error
- func TransformFormat(format string, args ...any) *errors.Error
- func UnBind() *errors.Error
- func UnBindFormat(format string, args ...any) *errors.Error
- func UserDisable() *errors.Error
- func UserDisableFormat(format string, args ...any) *errors.Error
- func UsernameOrPassword() *errors.Error
- func UsernameOrPasswordFormat(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: "GenCaptcha", 5: "VerifyCaptcha", 6: "NotRecord", 7: "RsaDecode", 8: "PasswordFormat", 9: "PasswordExpire", 10: "UsernameOrPassword", 15: "UserDisable", 18: "GenToken", 19: "ParseToken", 20: "RefreshToken", 21: "EmptyToken", 22: "NotUserApp", 23: "NotUserChannel", 24: "NotApp", 31: "NotAppChannel", 25: "NotExistEmail", 26: "AlreadyExistEmail", 27: "AlreadyExistPhone", 28: "AlreadyExistUsername", 29: "Register", 30: "Forbidden", 32: "GetAuthInfo", 33: "UnBind", 34: "NotUser", 35: "ResourceServer", } ErrorReason_value = map[string]int32{ "NotFound": 0, "Database": 1, "Metadata": 2, "Transform": 3, "GenCaptcha": 4, "VerifyCaptcha": 5, "NotRecord": 6, "RsaDecode": 7, "PasswordFormat": 8, "PasswordExpire": 9, "UsernameOrPassword": 10, "UserDisable": 15, "GenToken": 18, "ParseToken": 19, "RefreshToken": 20, "EmptyToken": 21, "NotUserApp": 22, "NotUserChannel": 23, "NotApp": 24, "NotAppChannel": 31, "NotExistEmail": 25, "AlreadyExistEmail": 26, "AlreadyExistPhone": 27, "AlreadyExistUsername": 28, "Register": 29, "Forbidden": 30, "GetAuthInfo": 32, "UnBind": 33, "NotUser": 34, "ResourceServer": 35, } )
Enum value maps for ErrorReason.
View Source
var File_user_center_error_reason_proto protoreflect.FileDescriptor
Functions ¶
func AlreadyExistEmail ¶
func AlreadyExistEmailFormat ¶
func AlreadyExistPhone ¶
func AlreadyExistPhoneFormat ¶
func AlreadyExistUsername ¶
func EmptyToken ¶
func GenCaptcha ¶
func GetAuthInfo ¶
func IsAlreadyExistEmail ¶
func IsAlreadyExistPhone ¶
func IsAlreadyExistUsername ¶
func IsDatabase ¶
func IsEmptyToken ¶
func IsForbidden ¶
func IsGenCaptcha ¶
func IsGenToken ¶
func IsGetAuthInfo ¶
func IsMetadata ¶
func IsNotAppChannel ¶
func IsNotExistEmail ¶
func IsNotRecord ¶
func IsNotUserApp ¶
func IsNotUserChannel ¶
func IsParseToken ¶
func IsPasswordExpire ¶
func IsPasswordFormat ¶
func IsRefreshToken ¶
func IsRegister ¶
func IsResourceServer ¶ added in v1.0.7
func IsRsaDecode ¶
func IsTransform ¶
func IsUserDisable ¶
func IsUsernameOrPassword ¶
func IsVerifyCaptcha ¶
func NotAppChannel ¶
func NotExistEmail ¶
func NotUserApp ¶
func NotUserChannel ¶
func ParseToken ¶
func PasswordExpire ¶
func PasswordFormat ¶
func RefreshToken ¶
func ResourceServer ¶ added in v1.0.7
func ResourceServerFormat ¶ added in v1.0.7
func UserDisable ¶
func UsernameOrPassword ¶
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_GenCaptcha ErrorReason = 4 ErrorReason_VerifyCaptcha ErrorReason = 5 ErrorReason_NotRecord ErrorReason = 6 ErrorReason_RsaDecode ErrorReason = 7 ErrorReason_PasswordFormat ErrorReason = 8 ErrorReason_PasswordExpire ErrorReason = 9 ErrorReason_UsernameOrPassword ErrorReason = 10 ErrorReason_UserDisable ErrorReason = 15 ErrorReason_GenToken ErrorReason = 18 ErrorReason_ParseToken ErrorReason = 19 ErrorReason_RefreshToken ErrorReason = 20 ErrorReason_EmptyToken ErrorReason = 21 ErrorReason_NotUserApp ErrorReason = 22 ErrorReason_NotUserChannel ErrorReason = 23 ErrorReason_NotApp ErrorReason = 24 ErrorReason_NotAppChannel ErrorReason = 31 ErrorReason_NotExistEmail ErrorReason = 25 ErrorReason_AlreadyExistEmail ErrorReason = 26 ErrorReason_AlreadyExistPhone ErrorReason = 27 ErrorReason_AlreadyExistUsername ErrorReason = 28 ErrorReason_Register ErrorReason = 29 ErrorReason_Forbidden ErrorReason = 30 ErrorReason_GetAuthInfo ErrorReason = 32 ErrorReason_UnBind ErrorReason = 33 ErrorReason_NotUser ErrorReason = 34 ErrorReason_ResourceServer ErrorReason = 35 )
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
Source Files ¶
Click to show internal directories.
Click to hide internal directories.