Documentation
¶
Index ¶
- Variables
- type BusinessError
- func (*BusinessError) Descriptor() ([]byte, []int)deprecated
- func (x *BusinessError) GetCode() uint32
- func (x *BusinessError) GetMsg() string
- func (*BusinessError) ProtoMessage()
- func (x *BusinessError) ProtoReflect() protoreflect.Message
- func (x *BusinessError) Reset()
- func (x *BusinessError) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_errors_business_error_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type BusinessError ¶
type BusinessError struct { // 错误代码 Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // 错误消息 Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
BusinessError 业务错误
func (*BusinessError) Descriptor
deprecated
func (*BusinessError) Descriptor() ([]byte, []int)
Deprecated: Use BusinessError.ProtoReflect.Descriptor instead.
func (*BusinessError) GetCode ¶
func (x *BusinessError) GetCode() uint32
func (*BusinessError) GetMsg ¶
func (x *BusinessError) GetMsg() string
func (*BusinessError) ProtoMessage ¶
func (*BusinessError) ProtoMessage()
func (*BusinessError) ProtoReflect ¶
func (x *BusinessError) ProtoReflect() protoreflect.Message
func (*BusinessError) Reset ¶
func (x *BusinessError) Reset()
func (*BusinessError) String ¶
func (x *BusinessError) String() string
Click to show internal directories.
Click to hide internal directories.