bizv1

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: MIT Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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