Documentation ¶
Index ¶
- Variables
- type PagingRequest
- func (*PagingRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PagingRequest) GetFieldMask() *fieldmaskpb.FieldMask
- func (x *PagingRequest) GetNoPaging() bool
- func (x *PagingRequest) GetOrQuery() string
- func (x *PagingRequest) GetOrderBy() []string
- func (x *PagingRequest) GetPage() int32
- func (x *PagingRequest) GetPageSize() int32
- func (x *PagingRequest) GetQuery() string
- func (*PagingRequest) ProtoMessage()
- func (x *PagingRequest) ProtoReflect() protoreflect.Message
- func (x *PagingRequest) Reset()
- func (x *PagingRequest) String() string
- type PagingResponse
- func (*PagingResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PagingResponse) GetItems() []*anypb.Any
- func (x *PagingResponse) GetTotal() int32
- func (*PagingResponse) ProtoMessage()
- func (x *PagingResponse) ProtoReflect() protoreflect.Message
- func (x *PagingResponse) Reset()
- func (x *PagingResponse) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_pagination_v1_pagination_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type PagingRequest ¶
type PagingRequest struct { // 当前页码 Page *int32 `protobuf:"varint,1,opt,name=page,proto3,oneof" json:"page,omitempty"` // 每页的行数 PageSize *int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3,oneof" json:"page_size,omitempty"` // 与过滤参数 Query *string `protobuf:"bytes,3,opt,name=query,proto3,oneof" json:"query,omitempty"` // 或过滤参数 OrQuery *string `protobuf:"bytes,4,opt,name=or_query,json=or,proto3,oneof" json:"or_query,omitempty"` // 排序条件 OrderBy []string `protobuf:"bytes,5,rep,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` // 是否不分页 NoPaging *bool `protobuf:"varint,6,opt,name=no_paging,json=nopaging,proto3,oneof" json:"no_paging,omitempty"` // 字段掩码 FieldMask *fieldmaskpb.FieldMask `protobuf:"bytes,7,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"` // contains filtered or unexported fields }
分页通用请求
func (*PagingRequest) Descriptor
deprecated
func (*PagingRequest) Descriptor() ([]byte, []int)
Deprecated: Use PagingRequest.ProtoReflect.Descriptor instead.
func (*PagingRequest) GetFieldMask ¶
func (x *PagingRequest) GetFieldMask() *fieldmaskpb.FieldMask
func (*PagingRequest) GetNoPaging ¶
func (x *PagingRequest) GetNoPaging() bool
func (*PagingRequest) GetOrQuery ¶
func (x *PagingRequest) GetOrQuery() string
func (*PagingRequest) GetOrderBy ¶
func (x *PagingRequest) GetOrderBy() []string
func (*PagingRequest) GetPage ¶
func (x *PagingRequest) GetPage() int32
func (*PagingRequest) GetPageSize ¶
func (x *PagingRequest) GetPageSize() int32
func (*PagingRequest) GetQuery ¶
func (x *PagingRequest) GetQuery() string
func (*PagingRequest) ProtoMessage ¶
func (*PagingRequest) ProtoMessage()
func (*PagingRequest) ProtoReflect ¶
func (x *PagingRequest) ProtoReflect() protoreflect.Message
func (*PagingRequest) Reset ¶
func (x *PagingRequest) Reset()
func (*PagingRequest) String ¶
func (x *PagingRequest) String() string
type PagingResponse ¶
type PagingResponse struct { // 总数 Total int32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` // 分页数据 Items []*anypb.Any `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"` // contains filtered or unexported fields }
分页通用结果
func (*PagingResponse) Descriptor
deprecated
func (*PagingResponse) Descriptor() ([]byte, []int)
Deprecated: Use PagingResponse.ProtoReflect.Descriptor instead.
func (*PagingResponse) GetItems ¶
func (x *PagingResponse) GetItems() []*anypb.Any
func (*PagingResponse) GetTotal ¶
func (x *PagingResponse) GetTotal() int32
func (*PagingResponse) ProtoMessage ¶
func (*PagingResponse) ProtoMessage()
func (*PagingResponse) ProtoReflect ¶
func (x *PagingResponse) ProtoReflect() protoreflect.Message
func (*PagingResponse) Reset ¶
func (x *PagingResponse) Reset()
func (*PagingResponse) String ¶
func (x *PagingResponse) String() string
Click to show internal directories.
Click to hide internal directories.