Documentation ¶
Index ¶
- Variables
- type Response
- func (*Response) Descriptor() ([]byte, []int)deprecated
- func (x *Response) GetCode() int32
- func (x *Response) GetData() *anypb.Any
- func (x *Response) GetMessage() string
- func (x *Response) GetMeta() map[string]string
- func (x *Response) GetNamespace() string
- func (x *Response) GetReason() string
- func (x *Response) GetType() string
- func (*Response) ProtoMessage()
- func (x *Response) ProtoReflect() protoreflect.Message
- func (x *Response) Reset()
- func (x *Response) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_pb_response_response_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Response ¶ added in v0.9.2
type Response struct { // 自定义返回码 0:表示正常 Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // 数据类型, 可以缺省 Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` // 异常的范围 Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"` // 异常原因 Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"` // 关于这次响应的说明信息 Message string `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"` // 数据meta Meta map[string]string `` /* 149-byte string literal not displayed */ // data 具体的数据 Data *anypb.Any `protobuf:"bytes,7,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
Response to be used by controllers.
func (*Response) Descriptor
deprecated
added in
v0.9.2
func (*Response) GetMessage ¶ added in v0.9.2
func (*Response) GetNamespace ¶ added in v0.9.2
func (*Response) ProtoMessage ¶ added in v0.9.2
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶ added in v0.9.2
func (x *Response) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.