Documentation ¶
Index ¶
- Variables
- type Meta
- type Request
- func (*Request) Descriptor() ([]byte, []int)deprecated
- func (x *Request) GetOrderDesc() string
- func (x *Request) GetOrderKey() string
- func (x *Request) GetPage() int
- func (x *Request) GetPageSize() int
- func (x *Request) GetQuery() *anypb.Any
- func (*Request) ProtoMessage()
- func (x *Request) ProtoReflect() protoreflect.Message
- func (x *Request) Reset()
- func (x *Request) String() string
- type Response
- func (*Response) Descriptor() ([]byte, []int)deprecated
- func (x *Response) GetCode() int32
- func (x *Response) GetData() *anypb.Any
- func (x *Response) GetMessage() string
- func (x *Response) GetMeta() *Meta
- func (*Response) ProtoMessage()
- func (x *Response) ProtoReflect() protoreflect.Message
- func (x *Response) Reset()
- func (x *Response) String() string
- type Responses
- func (*Responses) Descriptor() ([]byte, []int)deprecated
- func (x *Responses) GetCode() int32
- func (x *Responses) GetData() []*anypb.Any
- func (x *Responses) GetMessage() string
- func (x *Responses) GetMeta() *Meta
- func (*Responses) ProtoMessage()
- func (x *Responses) ProtoReflect() protoreflect.Message
- func (x *Responses) Reset()
- func (x *Responses) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_common_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Meta ¶
type Meta struct { Total int64 `protobuf:"varint,101,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*Meta) Descriptor
deprecated
func (*Meta) ProtoMessage ¶
func (*Meta) ProtoMessage()
func (*Meta) ProtoReflect ¶
func (x *Meta) ProtoReflect() protoreflect.Message
type Request ¶
type Request struct { Query *anypb.Any `protobuf:"bytes,101,opt,name=query,proto3" json:"query,omitempty"` Page int `protobuf:"varint,102,opt,name=page,proto3" json:"page,omitempty"` PageSize int `protobuf:"varint,103,opt,name=pageSize,proto3" json:"pageSize,omitempty"` OrderKey string `protobuf:"bytes,104,opt,name=orderKey,proto3" json:"orderKey,omitempty"` OrderDesc string `protobuf:"bytes,105,opt,name=orderDesc,proto3" json:"orderDesc,omitempty"` // contains filtered or unexported fields }
统一响应格式
func (*Request) Descriptor
deprecated
func (*Request) GetOrderDesc ¶
func (*Request) GetOrderKey ¶
func (*Request) GetPageSize ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
type Response ¶
type Response struct { Code int32 `protobuf:"varint,201,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,202,opt,name=msg,proto3" json:"msg,omitempty"` Data *anypb.Any `protobuf:"bytes,203,opt,name=data,proto3" json:"data,omitempty"` Meta *Meta `protobuf:"bytes,204,opt,name=meta,proto3" json:"meta,omitempty"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) GetMessage ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type Responses ¶
type Responses struct { Code int32 `protobuf:"varint,201,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,202,opt,name=message,proto3" json:"message,omitempty"` Data []*anypb.Any `protobuf:"bytes,203,rep,name=data,proto3" json:"data,omitempty"` Meta *Meta `protobuf:"bytes,204,opt,name=meta,proto3" json:"meta,omitempty"` // contains filtered or unexported fields }
func (*Responses) Descriptor
deprecated
func (*Responses) GetMessage ¶
func (*Responses) ProtoMessage ¶
func (*Responses) ProtoMessage()
func (*Responses) ProtoReflect ¶
func (x *Responses) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.