Documentation ¶
Index ¶
- Variables
- type AnyReply
- func (*AnyReply) Descriptor() ([]byte, []int)deprecated
- func (x *AnyReply) GetCode() uint32
- func (x *AnyReply) GetData() *anypb.Any
- func (x *AnyReply) GetMsg() 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) GetData() string
- func (x *CommonRep) GetMsg() string
- func (*CommonRep) ProtoMessage()
- func (x *CommonRep) ProtoReflect() protoreflect.Message
- func (x *CommonRep) Reset()
- func (x *CommonRep) String() string
- 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 (x *HttpResponse) MarshalGQL(w io.Writer)
- func (x HttpResponse) MarshalProto(w io.Writer)
- 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
- func (x *HttpResponse) UnmarshalGQL(v interface{}) error
- type RawReply
- func (*RawReply) Descriptor() ([]byte, []int)deprecated
- func (x *RawReply) GetCode() uint32
- func (x *RawReply) GetData() *any1.RawJson
- func (x *RawReply) GetMsg() string
- func (*RawReply) ProtoMessage()
- func (x *RawReply) ProtoReflect() protoreflect.Message
- func (x *RawReply) Reset()
- func (x *RawReply) String() string
- type Reply
- type StringValue
- type StringValueInput
- type TinyRep
Constants ¶
This section is empty.
Variables ¶
View Source
var File_hopeio_response_response_proto protoreflect.FileDescriptor
View Source
var ResponseOk = &TinyRep{}
Functions ¶
This section is empty.
Types ¶
type AnyReply ¶
type AnyReply struct { Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Data *anypb.Any `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*AnyReply) Descriptor
deprecated
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"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Data string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
返回数据为字符串,用于新建修改删除类的成功失败提示
func (*CommonRep) Descriptor
deprecated
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) MarshalGQL ¶
func (x *HttpResponse) MarshalGQL(w io.Writer)
func (HttpResponse) MarshalProto ¶
func (x HttpResponse) MarshalProto(w io.Writer)
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
func (*HttpResponse) UnmarshalGQL ¶
func (x *HttpResponse) UnmarshalGQL(v interface{}) error
type RawReply ¶
type RawReply struct { Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` // 字节数组json Data *any1.RawJson `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*RawReply) Descriptor
deprecated
func (*RawReply) ProtoMessage ¶
func (*RawReply) ProtoMessage()
func (*RawReply) ProtoReflect ¶
func (x *RawReply) ProtoReflect() protoreflect.Message
type StringValue ¶
type StringValue = wrapperspb.StringValue
type TinyRep ¶
type TinyRep struct { Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*TinyRep) Descriptor
deprecated
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.