common

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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

Deprecated: Use Meta.ProtoReflect.Descriptor instead.

func (*Meta) GetTotal

func (x *Meta) GetTotal() int64

func (*Meta) ProtoMessage

func (*Meta) ProtoMessage()

func (*Meta) ProtoReflect

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

func (*Meta) Reset

func (x *Meta) Reset()

func (*Meta) String

func (x *Meta) String() string

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

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetOrderDesc

func (x *Request) GetOrderDesc() string

func (*Request) GetOrderKey

func (x *Request) GetOrderKey() string

func (*Request) GetPage

func (x *Request) GetPage() int

func (*Request) GetPageSize

func (x *Request) GetPageSize() int

func (*Request) GetQuery

func (x *Request) GetQuery() *anypb.Any

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

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

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

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) 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) GetMessage

func (x *Response) GetMessage() string

func (*Response) GetMeta

func (x *Response) GetMeta() *Meta

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

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

Deprecated: Use Responses.ProtoReflect.Descriptor instead.

func (*Responses) GetCode

func (x *Responses) GetCode() int32

func (*Responses) GetData

func (x *Responses) GetData() []*anypb.Any

func (*Responses) GetMessage

func (x *Responses) GetMessage() string

func (*Responses) GetMeta

func (x *Responses) GetMeta() *Meta

func (*Responses) ProtoMessage

func (*Responses) ProtoMessage()

func (*Responses) ProtoReflect

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

func (*Responses) Reset

func (x *Responses) Reset()

func (*Responses) String

func (x *Responses) String() string

Jump to

Keyboard shortcuts

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