Documentation
¶
Index ¶
- Variables
- type AnyResp
- func (*AnyResp) Descriptor() ([]byte, []int)deprecated
- func (x *AnyResp) GetCode() uint32
- func (x *AnyResp) GetData() *anypb.Any
- func (x *AnyResp) GetMsg() string
- func (*AnyResp) ProtoMessage()
- func (x *AnyResp) ProtoReflect() protoreflect.Message
- func (x *AnyResp) Reset()
- func (x *AnyResp) String() string
- type CommonResp
- type HttpResponse
- func (x *HttpResponse) CommonRespond(w httpx.ICommonResponseWriter) (int, error)
- func (*HttpResponse) Descriptor() ([]byte, []int)deprecated
- func (x *HttpResponse) GetBody() []byte
- func (x *HttpResponse) GetContentType() string
- func (x *HttpResponse) GetHeaders() map[string]string
- func (x *HttpResponse) GetStatus() 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) Respond(w http.ResponseWriter) (int, error)
- func (x *HttpResponse) String() string
- func (x *HttpResponse) UnmarshalGQL(v interface{}) error
- type RawResp
- func (*RawResp) Descriptor() ([]byte, []int)deprecated
- func (x *RawResp) GetCode() uint32
- func (x *RawResp) GetData() *any1.RawJson
- func (x *RawResp) GetMsg() string
- func (*RawResp) ProtoMessage()
- func (x *RawResp) ProtoReflect() protoreflect.Message
- func (x *RawResp) Reset()
- func (x *RawResp) String() string
- type RespData
- type StringValue
- type StringValueInput
Constants ¶
This section is empty.
Variables ¶
View Source
var File_hopeio_response_response_proto protoreflect.FileDescriptor
View Source
var RespOk = &CommonResp{}
Functions ¶
This section is empty.
Types ¶
type AnyResp ¶ added in v0.5.3
type AnyResp 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 (*AnyResp) Descriptor
deprecated
added in
v0.5.3
func (*AnyResp) ProtoMessage ¶ added in v0.5.3
func (*AnyResp) ProtoMessage()
func (*AnyResp) ProtoReflect ¶ added in v0.5.3
func (x *AnyResp) ProtoReflect() protoreflect.Message
type CommonResp ¶ added in v0.5.3
type CommonResp 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 (*CommonResp) Descriptor
deprecated
added in
v0.5.3
func (*CommonResp) Descriptor() ([]byte, []int)
Deprecated: Use CommonResp.ProtoReflect.Descriptor instead.
func (*CommonResp) GetCode ¶ added in v0.5.3
func (x *CommonResp) GetCode() uint32
func (*CommonResp) GetMsg ¶ added in v0.5.3
func (x *CommonResp) GetMsg() string
func (*CommonResp) ProtoMessage ¶ added in v0.5.3
func (*CommonResp) ProtoMessage()
func (*CommonResp) ProtoReflect ¶ added in v0.5.3
func (x *CommonResp) ProtoReflect() protoreflect.Message
func (*CommonResp) Reset ¶ added in v0.5.3
func (x *CommonResp) Reset()
func (*CommonResp) String ¶ added in v0.5.3
func (x *CommonResp) String() string
type HttpResponse ¶
type HttpResponse struct {
Headers map[string]string `` /* 155-byte string literal not displayed */
Body []byte `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
Status uint32 `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"`
// contains filtered or unexported fields
}
func (*HttpResponse) CommonRespond ¶ added in v0.5.3
func (x *HttpResponse) CommonRespond(w httpx.ICommonResponseWriter) (int, error)
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) GetHeaders ¶ added in v0.1.7
func (x *HttpResponse) GetHeaders() map[string]string
func (*HttpResponse) GetStatus ¶ added in v0.1.7
func (x *HttpResponse) GetStatus() 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) Respond ¶ added in v0.5.3
func (x *HttpResponse) Respond(w http.ResponseWriter) (int, error)
func (*HttpResponse) String ¶
func (x *HttpResponse) String() string
func (*HttpResponse) UnmarshalGQL ¶
func (x *HttpResponse) UnmarshalGQL(v interface{}) error
type RawResp ¶ added in v0.5.3
type RawResp 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 (*RawResp) Descriptor
deprecated
added in
v0.5.3
func (*RawResp) ProtoMessage ¶ added in v0.5.3
func (*RawResp) ProtoMessage()
func (*RawResp) ProtoReflect ¶ added in v0.5.3
func (x *RawResp) ProtoReflect() protoreflect.Message
type StringValue ¶
type StringValue = wrapperspb.StringValue
Click to show internal directories.
Click to hide internal directories.