Documentation ¶
Index ¶
- Variables
- type Base
- type Base_Error
- func (*Base_Error) Descriptor() ([]byte, []int)deprecated
- func (x *Base_Error) GetErrorCode() int64
- func (x *Base_Error) GetErrorMessage() string
- func (x *Base_Error) GetFields() []string
- func (*Base_Error) ProtoMessage()
- func (x *Base_Error) ProtoReflect() protoreflect.Message
- func (x *Base_Error) Reset()
- func (x *Base_Error) String() string
- type Base_Success
Constants ¶
This section is empty.
Variables ¶
View Source
var File_basepb_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Base ¶
type Base struct {
// contains filtered or unexported fields
}
基础结构,主要提供给tcp内部使用,目前客户端用不到
func (*Base) Descriptor
deprecated
func (*Base) ProtoMessage ¶
func (*Base) ProtoMessage()
func (*Base) ProtoReflect ¶
func (x *Base) ProtoReflect() protoreflect.Message
type Base_Error ¶
type Base_Error struct { ErrorCode int64 `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"` ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` Fields []string `protobuf:"bytes,3,rep,name=fields,proto3" json:"fields,omitempty"` // contains filtered or unexported fields }
rpc 发生错误时可以返回这个值
func (*Base_Error) Descriptor
deprecated
func (*Base_Error) Descriptor() ([]byte, []int)
Deprecated: Use Base_Error.ProtoReflect.Descriptor instead.
func (*Base_Error) GetErrorCode ¶
func (x *Base_Error) GetErrorCode() int64
func (*Base_Error) GetErrorMessage ¶
func (x *Base_Error) GetErrorMessage() string
func (*Base_Error) GetFields ¶
func (x *Base_Error) GetFields() []string
func (*Base_Error) ProtoMessage ¶
func (*Base_Error) ProtoMessage()
func (*Base_Error) ProtoReflect ¶
func (x *Base_Error) ProtoReflect() protoreflect.Message
func (*Base_Error) Reset ¶
func (x *Base_Error) Reset()
func (*Base_Error) String ¶
func (x *Base_Error) String() string
type Base_Success ¶
type Base_Success struct {
// contains filtered or unexported fields
}
rpc 无消息返回时可以返回这个值
func (*Base_Success) Descriptor
deprecated
func (*Base_Success) Descriptor() ([]byte, []int)
Deprecated: Use Base_Success.ProtoReflect.Descriptor instead.
func (*Base_Success) ProtoMessage ¶
func (*Base_Success) ProtoMessage()
func (*Base_Success) ProtoReflect ¶
func (x *Base_Success) ProtoReflect() protoreflect.Message
func (*Base_Success) Reset ¶
func (x *Base_Success) Reset()
func (*Base_Success) String ¶
func (x *Base_Success) String() string
Click to show internal directories.
Click to hide internal directories.