Documentation ¶
Index ¶
- Variables
- type ListParam
- func (*ListParam) Descriptor() ([]byte, []int)
- func (m *ListParam) GetPage() int64
- func (m *ListParam) GetPageSize() int64
- func (m *ListParam) Marshal() (dAtA []byte, err error)
- func (m *ListParam) MarshalTo(dAtA []byte) (int, error)
- func (m *ListParam) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ListParam) ProtoMessage()
- func (m *ListParam) Reset()
- func (m *ListParam) Size() (n int)
- func (m *ListParam) String() string
- func (m *ListParam) Unmarshal(dAtA []byte) error
- func (m *ListParam) XXX_DiscardUnknown()
- func (m *ListParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListParam) XXX_Merge(src proto.Message)
- func (m *ListParam) XXX_Size() int
- func (m *ListParam) XXX_Unmarshal(b []byte) error
- type NextParam
- func (*NextParam) Descriptor() ([]byte, []int)
- func (m *NextParam) GetDirection() SortDirection
- func (m *NextParam) GetLastPk() int64
- func (m *NextParam) GetPageSize() int64
- func (m *NextParam) Marshal() (dAtA []byte, err error)
- func (m *NextParam) MarshalTo(dAtA []byte) (int, error)
- func (m *NextParam) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*NextParam) ProtoMessage()
- func (m *NextParam) Reset()
- func (m *NextParam) Size() (n int)
- func (m *NextParam) String() string
- func (m *NextParam) Unmarshal(dAtA []byte) error
- func (m *NextParam) XXX_DiscardUnknown()
- func (m *NextParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NextParam) XXX_Merge(src proto.Message)
- func (m *NextParam) XXX_Size() int
- func (m *NextParam) XXX_Unmarshal(b []byte) error
- type SortDirection
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthSdk = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowSdk = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupSdk = fmt.Errorf("proto: unexpected end of group") )
View Source
var SortDirection_name = map[int32]string{
0: "Asc",
1: "Desc",
}
View Source
var SortDirection_value = map[string]int32{
"Asc": 0,
"Desc": 1,
}
Functions ¶
This section is empty.
Types ¶
type ListParam ¶
type ListParam struct { Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` PageSize int64 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"` }
按limit分页
func (*ListParam) Descriptor ¶
func (*ListParam) GetPageSize ¶
func (*ListParam) MarshalToSizedBuffer ¶
func (*ListParam) ProtoMessage ¶
func (*ListParam) ProtoMessage()
func (*ListParam) XXX_DiscardUnknown ¶
func (m *ListParam) XXX_DiscardUnknown()
func (*ListParam) XXX_Marshal ¶
func (*ListParam) XXX_Unmarshal ¶
type NextParam ¶ added in v1.0.7
type NextParam struct { LastPk int64 `protobuf:"varint,1,opt,name=lastPk,proto3" json:"lastPk,omitempty"` PageSize int64 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"` Direction SortDirection `protobuf:"varint,3,opt,name=direction,proto3,enum=hdsdk.protobuf.SortDirection" json:"direction,omitempty"` }
按last primary key分页
func (*NextParam) Descriptor ¶ added in v1.0.7
func (*NextParam) GetDirection ¶ added in v1.0.7
func (m *NextParam) GetDirection() SortDirection
func (*NextParam) GetPageSize ¶ added in v1.0.8
func (*NextParam) MarshalToSizedBuffer ¶ added in v1.0.7
func (*NextParam) ProtoMessage ¶ added in v1.0.7
func (*NextParam) ProtoMessage()
func (*NextParam) XXX_DiscardUnknown ¶ added in v1.0.7
func (m *NextParam) XXX_DiscardUnknown()
func (*NextParam) XXX_Marshal ¶ added in v1.0.7
func (*NextParam) XXX_Unmarshal ¶ added in v1.0.7
type SortDirection ¶ added in v1.0.7
type SortDirection int32
排序方向
const ( SortDirection_Asc SortDirection = 0 SortDirection_Desc SortDirection = 1 )
func (SortDirection) EnumDescriptor ¶ added in v1.0.7
func (SortDirection) EnumDescriptor() ([]byte, []int)
func (SortDirection) String ¶ added in v1.0.7
func (x SortDirection) String() string
Click to show internal directories.
Click to hide internal directories.