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 RouteItem
- func (*RouteItem) Descriptor() ([]byte, []int)
- func (m *RouteItem) GetApp() string
- func (m *RouteItem) GetComment() string
- func (m *RouteItem) GetEndpoint() string
- func (m *RouteItem) GetHandler() string
- func (m *RouteItem) GetHttpMethod() string
- func (m *RouteItem) GetId() int64
- func (m *RouteItem) GetIsPublic() int32
- func (m *RouteItem) GetIsRawResponse() int32
- func (m *RouteItem) GetModuleName() string
- func (m *RouteItem) GetModuleVersion() int32
- func (m *RouteItem) GetOrigin() string
- func (m *RouteItem) GetPermissions() []string
- func (m *RouteItem) GetUrl() string
- func (m *RouteItem) Marshal() (dAtA []byte, err error)
- func (m *RouteItem) MarshalTo(dAtA []byte) (int, error)
- func (m *RouteItem) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RouteItem) ProtoMessage()
- func (m *RouteItem) Reset()
- func (m *RouteItem) Size() (n int)
- func (m *RouteItem) String() string
- func (m *RouteItem) Unmarshal(dAtA []byte) error
- func (m *RouteItem) XXX_DiscardUnknown()
- func (m *RouteItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RouteItem) XXX_Merge(src proto.Message)
- func (m *RouteItem) XXX_Size() int
- func (m *RouteItem) 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 ¶
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 ¶
func (*NextParam) GetDirection ¶
func (m *NextParam) GetDirection() SortDirection
func (*NextParam) GetPageSize ¶
func (*NextParam) MarshalToSizedBuffer ¶
func (*NextParam) ProtoMessage ¶
func (*NextParam) ProtoMessage()
func (*NextParam) XXX_DiscardUnknown ¶
func (m *NextParam) XXX_DiscardUnknown()
func (*NextParam) XXX_Marshal ¶
func (*NextParam) XXX_Unmarshal ¶
type RouteItem ¶
type RouteItem struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` App string `protobuf:"bytes,2,opt,name=app,proto3" json:"app,omitempty"` ModuleName string `protobuf:"bytes,3,opt,name=moduleName,proto3" json:"moduleName,omitempty"` ModuleVersion int32 `protobuf:"varint,4,opt,name=moduleVersion,proto3" json:"moduleVersion,omitempty"` Handler string `protobuf:"bytes,5,opt,name=handler,proto3" json:"handler,omitempty"` Endpoint string `protobuf:"bytes,6,opt,name=endpoint,proto3" json:"endpoint,omitempty"` HttpMethod string `protobuf:"bytes,7,opt,name=httpMethod,proto3" json:"httpMethod,omitempty"` Origin string `protobuf:"bytes,8,opt,name=origin,proto3" json:"origin,omitempty"` IsPublic int32 `protobuf:"varint,9,opt,name=isPublic,proto3" json:"isPublic,omitempty"` IsRawResponse int32 `protobuf:"varint,10,opt,name=isRawResponse,proto3" json:"isRawResponse,omitempty"` Permissions []string `protobuf:"bytes,11,rep,name=permissions,proto3" json:"permissions,omitempty"` Url string `protobuf:"bytes,12,opt,name=url,proto3" json:"url,omitempty"` Comment string `protobuf:"bytes,13,opt,name=comment,proto3" json:"comment,omitempty"` }
路由项
func (*RouteItem) Descriptor ¶
func (*RouteItem) GetComment ¶
func (*RouteItem) GetEndpoint ¶
func (*RouteItem) GetHandler ¶
func (*RouteItem) GetHttpMethod ¶
func (*RouteItem) GetIsPublic ¶
func (*RouteItem) GetIsRawResponse ¶
func (*RouteItem) GetModuleName ¶
func (*RouteItem) GetModuleVersion ¶
func (*RouteItem) GetPermissions ¶
func (*RouteItem) MarshalToSizedBuffer ¶
func (*RouteItem) ProtoMessage ¶
func (*RouteItem) ProtoMessage()
func (*RouteItem) XXX_DiscardUnknown ¶
func (m *RouteItem) XXX_DiscardUnknown()
func (*RouteItem) XXX_Marshal ¶
func (*RouteItem) XXX_Unmarshal ¶
type SortDirection ¶
type SortDirection int32
排序方向
const ( SortDirection_Asc SortDirection = 0 SortDirection_Desc SortDirection = 1 )
func (SortDirection) EnumDescriptor ¶
func (SortDirection) EnumDescriptor() ([]byte, []int)
func (SortDirection) String ¶
func (x SortDirection) String() string
Click to show internal directories.
Click to hide internal directories.