Documentation ¶
Index ¶
- Variables
- type PaginatorReply
- func (*PaginatorReply) Descriptor() ([]byte, []int)deprecated
- func (x *PaginatorReply) GetItemsCount() int64
- func (x *PaginatorReply) GetPagesCount() int64
- func (*PaginatorReply) ProtoMessage()
- func (x *PaginatorReply) ProtoReflect() protoreflect.Message
- func (x *PaginatorReply) Reset()
- func (x *PaginatorReply) String() string
- func (m *PaginatorReply) Validate() error
- func (m *PaginatorReply) ValidateAll() error
- type PaginatorReplyMultiError
- type PaginatorReplyValidationError
- func (e PaginatorReplyValidationError) Cause() error
- func (e PaginatorReplyValidationError) Error() string
- func (e PaginatorReplyValidationError) ErrorName() string
- func (e PaginatorReplyValidationError) Field() string
- func (e PaginatorReplyValidationError) Key() bool
- func (e PaginatorReplyValidationError) Reason() string
- type PaginatorReq
- func (*PaginatorReq) Descriptor() ([]byte, []int)deprecated
- func (x *PaginatorReq) GetCurrentPage() int64
- func (x *PaginatorReq) GetOrder() string
- func (x *PaginatorReq) GetPerPage() int64
- func (*PaginatorReq) ProtoMessage()
- func (x *PaginatorReq) ProtoReflect() protoreflect.Message
- func (x *PaginatorReq) Reset()
- func (x *PaginatorReq) String() string
- func (m *PaginatorReq) Validate() error
- func (m *PaginatorReq) ValidateAll() error
- type PaginatorReqMultiError
- type PaginatorReqValidationError
- func (e PaginatorReqValidationError) Cause() error
- func (e PaginatorReqValidationError) Error() string
- func (e PaginatorReqValidationError) ErrorName() string
- func (e PaginatorReqValidationError) Field() string
- func (e PaginatorReqValidationError) Key() bool
- func (e PaginatorReqValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_third_party_xkratos_api_paginator_paginator_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type PaginatorReply ¶
type PaginatorReply struct { ItemsCount int64 `protobuf:"varint,1,opt,name=items_count,json=itemsCount,proto3" json:"items_count,omitempty"` //总共多少条数据 PagesCount int64 `protobuf:"varint,2,opt,name=pages_count,json=pagesCount,proto3" json:"pages_count,omitempty"` //总共多少页 // contains filtered or unexported fields }
func (*PaginatorReply) Descriptor
deprecated
func (*PaginatorReply) Descriptor() ([]byte, []int)
Deprecated: Use PaginatorReply.ProtoReflect.Descriptor instead.
func (*PaginatorReply) GetItemsCount ¶
func (x *PaginatorReply) GetItemsCount() int64
func (*PaginatorReply) GetPagesCount ¶
func (x *PaginatorReply) GetPagesCount() int64
func (*PaginatorReply) ProtoMessage ¶
func (*PaginatorReply) ProtoMessage()
func (*PaginatorReply) ProtoReflect ¶
func (x *PaginatorReply) ProtoReflect() protoreflect.Message
func (*PaginatorReply) Reset ¶
func (x *PaginatorReply) Reset()
func (*PaginatorReply) String ¶
func (x *PaginatorReply) String() string
func (*PaginatorReply) Validate ¶
func (m *PaginatorReply) Validate() error
Validate checks the field values on PaginatorReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*PaginatorReply) ValidateAll ¶
func (m *PaginatorReply) ValidateAll() error
ValidateAll checks the field values on PaginatorReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PaginatorReplyMultiError, or nil if none found.
type PaginatorReplyMultiError ¶
type PaginatorReplyMultiError []error
PaginatorReplyMultiError is an error wrapping multiple validation errors returned by PaginatorReply.ValidateAll() if the designated constraints aren't met.
func (PaginatorReplyMultiError) AllErrors ¶
func (m PaginatorReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PaginatorReplyMultiError) Error ¶
func (m PaginatorReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PaginatorReplyValidationError ¶
type PaginatorReplyValidationError struct {
// contains filtered or unexported fields
}
PaginatorReplyValidationError is the validation error returned by PaginatorReply.Validate if the designated constraints aren't met.
func (PaginatorReplyValidationError) Cause ¶
func (e PaginatorReplyValidationError) Cause() error
Cause function returns cause value.
func (PaginatorReplyValidationError) Error ¶
func (e PaginatorReplyValidationError) Error() string
Error satisfies the builtin error interface
func (PaginatorReplyValidationError) ErrorName ¶
func (e PaginatorReplyValidationError) ErrorName() string
ErrorName returns error name.
func (PaginatorReplyValidationError) Field ¶
func (e PaginatorReplyValidationError) Field() string
Field function returns field value.
func (PaginatorReplyValidationError) Key ¶
func (e PaginatorReplyValidationError) Key() bool
Key function returns key value.
func (PaginatorReplyValidationError) Reason ¶
func (e PaginatorReplyValidationError) Reason() string
Reason function returns reason value.
type PaginatorReq ¶
type PaginatorReq struct { PerPage int64 `protobuf:"varint,1,opt,name=per_page,json=perPage,proto3" json:"per_page,omitempty"` //每页多少条记录 CurrentPage int64 `protobuf:"varint,2,opt,name=current_page,json=currentPage,proto3" json:"current_page,omitempty"` //当前第几页 Order string `protobuf:"bytes,3,opt,name=order,proto3" json:"order,omitempty"` //排序 // contains filtered or unexported fields }
func (*PaginatorReq) Descriptor
deprecated
func (*PaginatorReq) Descriptor() ([]byte, []int)
Deprecated: Use PaginatorReq.ProtoReflect.Descriptor instead.
func (*PaginatorReq) GetCurrentPage ¶
func (x *PaginatorReq) GetCurrentPage() int64
func (*PaginatorReq) GetOrder ¶
func (x *PaginatorReq) GetOrder() string
func (*PaginatorReq) GetPerPage ¶
func (x *PaginatorReq) GetPerPage() int64
func (*PaginatorReq) ProtoMessage ¶
func (*PaginatorReq) ProtoMessage()
func (*PaginatorReq) ProtoReflect ¶
func (x *PaginatorReq) ProtoReflect() protoreflect.Message
func (*PaginatorReq) Reset ¶
func (x *PaginatorReq) Reset()
func (*PaginatorReq) String ¶
func (x *PaginatorReq) String() string
func (*PaginatorReq) Validate ¶
func (m *PaginatorReq) Validate() error
Validate checks the field values on PaginatorReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*PaginatorReq) ValidateAll ¶
func (m *PaginatorReq) ValidateAll() error
ValidateAll checks the field values on PaginatorReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PaginatorReqMultiError, or nil if none found.
type PaginatorReqMultiError ¶
type PaginatorReqMultiError []error
PaginatorReqMultiError is an error wrapping multiple validation errors returned by PaginatorReq.ValidateAll() if the designated constraints aren't met.
func (PaginatorReqMultiError) AllErrors ¶
func (m PaginatorReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PaginatorReqMultiError) Error ¶
func (m PaginatorReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PaginatorReqValidationError ¶
type PaginatorReqValidationError struct {
// contains filtered or unexported fields
}
PaginatorReqValidationError is the validation error returned by PaginatorReq.Validate if the designated constraints aren't met.
func (PaginatorReqValidationError) Cause ¶
func (e PaginatorReqValidationError) Cause() error
Cause function returns cause value.
func (PaginatorReqValidationError) Error ¶
func (e PaginatorReqValidationError) Error() string
Error satisfies the builtin error interface
func (PaginatorReqValidationError) ErrorName ¶
func (e PaginatorReqValidationError) ErrorName() string
ErrorName returns error name.
func (PaginatorReqValidationError) Field ¶
func (e PaginatorReqValidationError) Field() string
Field function returns field value.
func (PaginatorReqValidationError) Key ¶
func (e PaginatorReqValidationError) Key() bool
Key function returns key value.
func (PaginatorReqValidationError) Reason ¶
func (e PaginatorReqValidationError) Reason() string
Reason function returns reason value.