response

package
v0.7.25 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2026 License: MIT Imports: 13 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_hopeio_response_response_proto protoreflect.FileDescriptor
View Source
var RespOk = &ErrResp{}

Functions

This section is empty.

Types

type CommonResp added in v0.5.3

type CommonResp struct {
	Code int32      `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 (*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() int32

func (*CommonResp) GetData added in v0.7.0

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

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 ErrResp added in v0.7.0

type ErrResp struct {
	Code int32  `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 (*ErrResp) Descriptor deprecated added in v0.7.0

func (*ErrResp) Descriptor() ([]byte, []int)

Deprecated: Use ErrResp.ProtoReflect.Descriptor instead.

func (*ErrResp) ErrResp added in v0.7.5

func (x *ErrResp) ErrResp() *errors.ErrResp

func (*ErrResp) Error added in v0.7.5

func (x *ErrResp) Error() string

func (*ErrResp) GetCode added in v0.7.0

func (x *ErrResp) GetCode() int32

func (*ErrResp) GetMsg added in v0.7.0

func (x *ErrResp) GetMsg() string

func (*ErrResp) ProtoMessage added in v0.7.0

func (*ErrResp) ProtoMessage()

func (*ErrResp) ProtoReflect added in v0.7.0

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

func (*ErrResp) Reset added in v0.7.0

func (x *ErrResp) Reset()

func (*ErrResp) String added in v0.7.0

func (x *ErrResp) String() string

type HttpResponse

type HttpResponse struct {
	Headers map[string]string `` /* 141-byte string literal not displayed */
	Body    []byte            `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
	Status  int32             `protobuf:"varint,3,opt,name=status,proto3" json:"status,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) 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() int32

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(ctx context.Context, w http.ResponseWriter) (int, error)

func (*HttpResponse) ServeHTTP added in v0.7.13

func (x *HttpResponse) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*HttpResponse) String

func (x *HttpResponse) String() string

type ListResp added in v0.7.5

type ListResp struct {
	List  []*anypb.Any `protobuf:"bytes,3,rep,name=list,proto3" json:"list,omitempty"`
	Total uint32       `protobuf:"varint,4,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*ListResp) Descriptor deprecated added in v0.7.5

func (*ListResp) Descriptor() ([]byte, []int)

Deprecated: Use ListResp.ProtoReflect.Descriptor instead.

func (*ListResp) GetList added in v0.7.5

func (x *ListResp) GetList() []*anypb.Any

func (*ListResp) GetTotal added in v0.7.5

func (x *ListResp) GetTotal() uint32

func (*ListResp) ProtoMessage added in v0.7.5

func (*ListResp) ProtoMessage()

func (*ListResp) ProtoReflect added in v0.7.5

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

func (*ListResp) Reset added in v0.7.5

func (x *ListResp) Reset()

func (*ListResp) String added in v0.7.5

func (x *ListResp) String() string

type RawResp added in v0.5.3

type RawResp struct {
	Code int32  `protobuf:"varint,1,opt,name=code,proto3" json:"code"`
	Msg  string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	Data []byte `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) Descriptor() ([]byte, []int)

Deprecated: Use RawResp.ProtoReflect.Descriptor instead.

func (*RawResp) GetCode added in v0.5.3

func (x *RawResp) GetCode() int32

func (*RawResp) GetData added in v0.5.3

func (x *RawResp) GetData() []byte

func (*RawResp) GetMsg added in v0.5.3

func (x *RawResp) GetMsg() string

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

func (*RawResp) Reset added in v0.5.3

func (x *RawResp) Reset()

func (*RawResp) String added in v0.5.3

func (x *RawResp) String() string

type StringValue

type StringValue = wrapperspb.StringValue

type StringValueInput

type StringValueInput = wrapperspb.StringValue

graphql compatible

Jump to

Keyboard shortcuts

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