Documentation ¶
Index ¶
- Variables
- func ErrorNoData(format string, args ...interface{}) *errors.Error
- func ErrorNoPermission(format string, args ...interface{}) *errors.Error
- func IsNoData(err error) bool
- func IsNoPermission(err error) bool
- type CommonErrorReason
- func (CommonErrorReason) Descriptor() protoreflect.EnumDescriptor
- func (x CommonErrorReason) Enum() *CommonErrorReason
- func (CommonErrorReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x CommonErrorReason) Number() protoreflect.EnumNumber
- func (x CommonErrorReason) String() string
- func (CommonErrorReason) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CommonErrorReason_name = map[int32]string{ 0: "NoPermission", 1: "NoData", } CommonErrorReason_value = map[string]int32{ "NoPermission": 0, "NoData": 1, } )
Enum value maps for CommonErrorReason.
View Source
var File_api_common_err_common_error_proto protoreflect.FileDescriptor
Functions ¶
func ErrorNoData ¶ added in v0.0.13
没有数据
func ErrorNoPermission ¶ added in v0.0.13
没有权限
Types ¶
type CommonErrorReason ¶
type CommonErrorReason int32
const ( // 没有权限 CommonErrorReason_NoPermission CommonErrorReason = 0 // 没有数据 CommonErrorReason_NoData CommonErrorReason = 1 )
func (CommonErrorReason) Descriptor ¶
func (CommonErrorReason) Descriptor() protoreflect.EnumDescriptor
func (CommonErrorReason) Enum ¶
func (x CommonErrorReason) Enum() *CommonErrorReason
func (CommonErrorReason) EnumDescriptor
deprecated
func (CommonErrorReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use CommonErrorReason.Descriptor instead.
func (CommonErrorReason) Number ¶
func (x CommonErrorReason) Number() protoreflect.EnumNumber
func (CommonErrorReason) String ¶
func (x CommonErrorReason) String() string
func (CommonErrorReason) Type ¶
func (CommonErrorReason) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.