response

package
v0.0.50 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2024 License: MIT Imports: 14 Imported by: 4

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use AnyReply.ProtoReflect.Descriptor instead.

func (*AnyReply) GetCode

func (x *AnyReply) GetCode() uint32

func (*AnyReply) GetData added in v0.0.24

func (x *AnyReply) GetData() *anypb.Any

func (*AnyReply) GetMsg added in v0.0.24

func (x *AnyReply) GetMsg() string

func (*AnyReply) ProtoMessage

func (*AnyReply) ProtoMessage()

func (*AnyReply) ProtoReflect

func (x *AnyReply) ProtoReflect() protoreflect.Message

func (*AnyReply) Reset

func (x *AnyReply) Reset()

func (*AnyReply) String

func (x *AnyReply) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use CommonRep.ProtoReflect.Descriptor instead.

func (*CommonRep) GetCode

func (x *CommonRep) GetCode() uint32

func (*CommonRep) GetData added in v0.0.24

func (x *CommonRep) GetData() string

func (*CommonRep) GetMsg added in v0.0.24

func (x *CommonRep) GetMsg() string

func (*CommonRep) ProtoMessage

func (*CommonRep) ProtoMessage()

func (*CommonRep) ProtoReflect

func (x *CommonRep) ProtoReflect() protoreflect.Message

func (*CommonRep) Reset

func (x *CommonRep) Reset()

func (*CommonRep) String

func (x *CommonRep) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use RawReply.ProtoReflect.Descriptor instead.

func (*RawReply) GetCode

func (x *RawReply) GetCode() uint32

func (*RawReply) GetData added in v0.0.24

func (x *RawReply) GetData() *any1.RawJson

func (*RawReply) GetMsg added in v0.0.24

func (x *RawReply) GetMsg() string

func (*RawReply) ProtoMessage

func (*RawReply) ProtoMessage()

func (*RawReply) ProtoReflect

func (x *RawReply) ProtoReflect() protoreflect.Message

func (*RawReply) Reset

func (x *RawReply) Reset()

func (*RawReply) String

func (x *RawReply) String() string

type Reply

type Reply struct {
	Code uint32
	Msg  string
	Data proto.Message
}

type StringValue

type StringValue = wrapperspb.StringValue

type StringValueInput

type StringValueInput = wrapperspb.StringValue

graphql compatible

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) Descriptor() ([]byte, []int)

Deprecated: Use TinyRep.ProtoReflect.Descriptor instead.

func (*TinyRep) GetCode

func (x *TinyRep) GetCode() uint32

func (*TinyRep) GetMsg added in v0.0.24

func (x *TinyRep) GetMsg() string

func (*TinyRep) ProtoMessage

func (*TinyRep) ProtoMessage()

func (*TinyRep) ProtoReflect

func (x *TinyRep) ProtoReflect() protoreflect.Message

func (*TinyRep) Reset

func (x *TinyRep) Reset()

func (*TinyRep) String

func (x *TinyRep) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL