bizv1

package
v1.1.19 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Err_name = map[int32]string{
		0: "ERR_INVALID",
		1: "ERR_USER_NOT_FOUND",
		2: "ERR_CONTENT_MISSING",
	}
	Err_value = map[string]int32{
		"ERR_INVALID":         0,
		"ERR_USER_NOT_FOUND":  1,
		"ERR_CONTENT_MISSING": 2,
	}
)

Enum value maps for Err.

View Source
var File_errors_proto protoreflect.FileDescriptor

Functions

func ErrContentMissing

func ErrContentMissing() eerrors.Error

func ErrInvalid

func ErrInvalid() eerrors.Error

func ErrUserNotFound

func ErrUserNotFound() eerrors.Error

Types

type Err

type Err int32

错误定义

const (
	// 未知类型
	// @code=UNKNOWN
	Err_ERR_INVALID Err = 0
	// 找不到资源
	// @code=NOT_FOUND
	Err_ERR_USER_NOT_FOUND Err = 1
	// 客户端参数错误
	// @code=INVALID_ARGUMENT
	Err_ERR_CONTENT_MISSING Err = 2
)

func (Err) Descriptor

func (Err) Descriptor() protoreflect.EnumDescriptor

func (Err) Enum

func (x Err) Enum() *Err

func (Err) EnumDescriptor deprecated

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

Deprecated: Use Err.Descriptor instead.

func (Err) Number

func (x Err) Number() protoreflect.EnumNumber

func (Err) String

func (x Err) String() string

func (Err) Type

func (Err) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

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