v1

package
v0.0.0-...-d272d5c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Error_name = map[int32]string{
		0: "ERROR_UNKNOWN",
		1: "ERROR_SUCCESS",
		2: "ERROR_FAIL",
		3: "ERROR_PHONE_IS_USED",
	}
	Error_value = map[string]int32{
		"ERROR_UNKNOWN":       0,
		"ERROR_SUCCESS":       1,
		"ERROR_FAIL":          2,
		"ERROR_PHONE_IS_USED": 3,
	}
)

Enum value maps for Error.

View Source
var File_v1_error_reason_proto protoreflect.FileDescriptor

Functions

func ErrorErrorFail

func ErrorErrorFail(format string, args ...interface{}) *errors.Error

func ErrorErrorPhoneIsUsed

func ErrorErrorPhoneIsUsed(format string, args ...interface{}) *errors.Error

func ErrorErrorSuccess

func ErrorErrorSuccess(format string, args ...interface{}) *errors.Error

func ErrorErrorUnknown

func ErrorErrorUnknown(format string, args ...interface{}) *errors.Error

func IsErrorFail

func IsErrorFail(err error) bool

func IsErrorPhoneIsUsed

func IsErrorPhoneIsUsed(err error) bool

func IsErrorSuccess

func IsErrorSuccess(err error) bool

func IsErrorUnknown

func IsErrorUnknown(err error) bool

Types

type Error

type Error int32
const (
	Error_ERROR_UNKNOWN       Error = 0 //未知错误
	Error_ERROR_SUCCESS       Error = 1 //成功
	Error_ERROR_FAIL          Error = 2 //失败
	Error_ERROR_PHONE_IS_USED Error = 3 //手机号已被使用
)

func (Error) Descriptor

func (Error) Descriptor() protoreflect.EnumDescriptor

func (Error) Enum

func (x Error) Enum() *Error

func (Error) EnumDescriptor deprecated

func (Error) EnumDescriptor() ([]byte, []int)

Deprecated: Use Error.Descriptor instead.

func (Error) Number

func (x Error) Number() protoreflect.EnumNumber

func (Error) String

func (x Error) String() string

func (Error) Type

func (Error) Type() protoreflect.EnumType

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL