pb

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_nio_response_response_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Response

type Response struct {
	Code  int32      `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	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"`   // 特定的应答结构
	Error string     `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"` // 程序报错信息(仅内部使用)
	// contains filtered or unexported fields
}

func (*Response) Descriptor deprecated

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

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetCode

func (x *Response) GetCode() int32

func (*Response) GetData

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

func (*Response) GetError

func (x *Response) GetError() string

func (*Response) GetMsg

func (x *Response) GetMsg() string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

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

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

Jump to

Keyboard shortcuts

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