Documentation ¶
Index ¶
- Variables
- type PageInfo
- func (*PageInfo) Descriptor() ([]byte, []int)deprecated
- func (x *PageInfo) GetPageIndex() int64
- func (x *PageInfo) GetPageSize() int64
- func (x *PageInfo) GetTotal() int64
- func (*PageInfo) ProtoMessage()
- func (x *PageInfo) ProtoReflect() protoreflect.Message
- func (x *PageInfo) Reset()
- func (x *PageInfo) String() string
- func (m *PageInfo) Validate() error
- func (m *PageInfo) ValidateAll() error
- type PageInfoMultiError
- type PageInfoValidationError
Constants ¶
This section is empty.
Variables ¶
var File_base_v1_pageinfo_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type PageInfo ¶
type PageInfo struct { PageIndex int64 `protobuf:"varint,1,opt,name=pageIndex,proto3" json:"pageIndex,omitempty"` PageSize int64 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"` Total int64 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*PageInfo) Descriptor
deprecated
func (*PageInfo) GetPageIndex ¶
func (*PageInfo) GetPageSize ¶
func (*PageInfo) ProtoMessage ¶
func (*PageInfo) ProtoMessage()
func (*PageInfo) ProtoReflect ¶
func (x *PageInfo) ProtoReflect() protoreflect.Message
func (*PageInfo) Validate ¶
Validate checks the field values on PageInfo 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 (*PageInfo) ValidateAll ¶
ValidateAll checks the field values on PageInfo 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 PageInfoMultiError, or nil if none found.
type PageInfoMultiError ¶
type PageInfoMultiError []error
PageInfoMultiError is an error wrapping multiple validation errors returned by PageInfo.ValidateAll() if the designated constraints aren't met.
func (PageInfoMultiError) AllErrors ¶
func (m PageInfoMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PageInfoMultiError) Error ¶
func (m PageInfoMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PageInfoValidationError ¶
type PageInfoValidationError struct {
// contains filtered or unexported fields
}
PageInfoValidationError is the validation error returned by PageInfo.Validate if the designated constraints aren't met.
func (PageInfoValidationError) Cause ¶
func (e PageInfoValidationError) Cause() error
Cause function returns cause value.
func (PageInfoValidationError) Error ¶
func (e PageInfoValidationError) Error() string
Error satisfies the builtin error interface
func (PageInfoValidationError) ErrorName ¶
func (e PageInfoValidationError) ErrorName() string
ErrorName returns error name.
func (PageInfoValidationError) Field ¶
func (e PageInfoValidationError) Field() string
Field function returns field value.
func (PageInfoValidationError) Key ¶
func (e PageInfoValidationError) Key() bool
Key function returns key value.
func (PageInfoValidationError) Reason ¶
func (e PageInfoValidationError) Reason() string
Reason function returns reason value.