Documentation ¶
Index ¶
- Variables
- type AnyReply
- func (*AnyReply) Descriptor() ([]byte, []int)deprecated
- func (x *AnyReply) GetCode() uint32
- func (x *AnyReply) GetDetails() *anypb.Any
- func (x *AnyReply) GetMessage() string
- func (*AnyReply) ProtoMessage()
- func (x *AnyReply) ProtoReflect() protoreflect.Message
- func (x *AnyReply) Reset()
- func (x *AnyReply) String() string
- type CommonRep
- func (*CommonRep) Descriptor() ([]byte, []int)deprecated
- func (x *CommonRep) GetCode() uint32
- func (x *CommonRep) GetDetails() string
- func (x *CommonRep) GetMessage() string
- func (*CommonRep) ProtoMessage()
- func (x *CommonRep) ProtoReflect() protoreflect.Message
- func (x *CommonRep) Reset()
- func (x *CommonRep) String() string
- type GoReply
- type HttpResponse
- func (*HttpResponse) Descriptor() ([]byte, []int)deprecated
- func (x *HttpResponse) GetBody() []byte
- func (x *HttpResponse) GetContentType() string
- func (x *HttpResponse) GetHeader() []string
- func (x *HttpResponse) GetStatusCode() uint32
- func (*HttpResponse) ProtoMessage()
- func (x *HttpResponse) ProtoReflect() protoreflect.Message
- func (x *HttpResponse) Reset()
- func (x *HttpResponse) Response(w http.ResponseWriter)
- func (x *HttpResponse) String() string
- type RawReply
- func (*RawReply) Descriptor() ([]byte, []int)deprecated
- func (x *RawReply) GetCode() uint32
- func (x *RawReply) GetDetails() *any1.RawJson
- func (x *RawReply) GetMessage() string
- func (*RawReply) ProtoMessage()
- func (x *RawReply) ProtoReflect() protoreflect.Message
- func (x *RawReply) Reset()
- func (x *RawReply) String() string
- type StringValue
- type StringValueInput
- type TinyRep
Constants ¶
This section is empty.
Variables ¶
View Source
var File_cherry_protobuf_response_response_proto protoreflect.FileDescriptor
View Source
var ResponseOk = &TinyRep{Message: "OK"}
Functions ¶
This section is empty.
Types ¶
type AnyReply ¶
type AnyReply struct { Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Details *anypb.Any `protobuf:"bytes,3,opt,name=details,proto3" json:"details,omitempty"` // contains filtered or unexported fields }
func (*AnyReply) Descriptor
deprecated
func (*AnyReply) GetDetails ¶
func (*AnyReply) GetMessage ¶
func (*AnyReply) ProtoMessage ¶
func (*AnyReply) ProtoMessage()
func (*AnyReply) ProtoReflect ¶
func (x *AnyReply) ProtoReflect() protoreflect.Message
type CommonRep ¶
type CommonRep struct { Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Details string `protobuf:"bytes,3,opt,name=details,proto3" json:"details,omitempty"` // contains filtered or unexported fields }
返回数据为字符串,用于新建修改删除类的成功失败提示
func (*CommonRep) Descriptor
deprecated
func (*CommonRep) GetDetails ¶
func (*CommonRep) GetMessage ¶
func (*CommonRep) ProtoMessage ¶
func (*CommonRep) ProtoMessage()
func (*CommonRep) ProtoReflect ¶
func (x *CommonRep) ProtoReflect() protoreflect.Message
type HttpResponse ¶
type HttpResponse struct { Header []string `protobuf:"bytes,1,rep,name=Header,proto3" json:"Header,omitempty"` Body []byte `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` StatusCode uint32 `protobuf:"varint,3,opt,name=statusCode,proto3" json:"statusCode,omitempty"` // contains filtered or unexported fields }
func (*HttpResponse) Descriptor
deprecated
func (*HttpResponse) Descriptor() ([]byte, []int)
Deprecated: Use HttpResponse.ProtoReflect.Descriptor instead.
func (*HttpResponse) GetBody ¶
func (x *HttpResponse) GetBody() []byte
func (*HttpResponse) GetContentType ¶
func (x *HttpResponse) GetContentType() string
func (*HttpResponse) GetHeader ¶
func (x *HttpResponse) GetHeader() []string
func (*HttpResponse) GetStatusCode ¶
func (x *HttpResponse) GetStatusCode() uint32
func (*HttpResponse) ProtoMessage ¶
func (*HttpResponse) ProtoMessage()
func (*HttpResponse) ProtoReflect ¶
func (x *HttpResponse) ProtoReflect() protoreflect.Message
func (*HttpResponse) Reset ¶
func (x *HttpResponse) Reset()
func (*HttpResponse) Response ¶
func (x *HttpResponse) Response(w http.ResponseWriter)
func (*HttpResponse) String ¶
func (x *HttpResponse) String() string
type RawReply ¶
type RawReply struct { Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // 字节数组json Details *any1.RawJson `protobuf:"bytes,3,opt,name=details,proto3" json:"details,omitempty"` // contains filtered or unexported fields }
func (*RawReply) Descriptor
deprecated
func (*RawReply) GetDetails ¶
func (*RawReply) GetMessage ¶
func (*RawReply) ProtoMessage ¶
func (*RawReply) ProtoMessage()
func (*RawReply) ProtoReflect ¶
func (x *RawReply) ProtoReflect() protoreflect.Message
type StringValue ¶
type StringValue = wrapperspb.StringValue
type StringValueInput ¶
type StringValueInput = wrapperspb.StringValue
type TinyRep ¶
type TinyRep struct { Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*TinyRep) Descriptor
deprecated
func (*TinyRep) GetMessage ¶
func (*TinyRep) ProtoMessage ¶
func (*TinyRep) ProtoMessage()
func (*TinyRep) ProtoReflect ¶
func (x *TinyRep) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.