|
|
@@ -26,15 +26,15 @@ type QueryByWhereAndOrderByRequest struct {
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
- DatabaseID string `protobuf:"bytes,1,opt,name=DatabaseID,proto3" json:"DatabaseID,omitempty"`
|
|
|
- TablePrefixWithSchema string `protobuf:"bytes,2,opt,name=TablePrefixWithSchema,proto3" json:"TablePrefixWithSchema,omitempty"`
|
|
|
- Version string `protobuf:"bytes,3,opt,name=Version,proto3" json:"Version,omitempty"`
|
|
|
- Table string `protobuf:"bytes,4,opt,name=Table,proto3" json:"Table,omitempty"`
|
|
|
- Select []byte `protobuf:"bytes,5,opt,name=Select,proto3" json:"Select,omitempty"`
|
|
|
- Where []byte `protobuf:"bytes,6,opt,name=Where,proto3" json:"Where,omitempty"`
|
|
|
- OrderBy []string `protobuf:"bytes,7,rep,name=OrderBy,proto3" json:"OrderBy,omitempty"`
|
|
|
- PageNo int32 `protobuf:"varint,8,opt,name=PageNo,proto3" json:"PageNo,omitempty"`
|
|
|
- PageSize int32 `protobuf:"varint,9,opt,name=PageSize,proto3" json:"PageSize,omitempty"`
|
|
|
+ DatabaseID string `protobuf:"bytes,1,opt,name=DatabaseID,proto3" json:"DatabaseID,omitempty"`
|
|
|
+ TablePrefixWithSchema string `protobuf:"bytes,2,opt,name=TablePrefixWithSchema,proto3" json:"TablePrefixWithSchema,omitempty"`
|
|
|
+ Version string `protobuf:"bytes,3,opt,name=Version,proto3" json:"Version,omitempty"`
|
|
|
+ Table string `protobuf:"bytes,4,opt,name=Table,proto3" json:"Table,omitempty"`
|
|
|
+ Select []byte `protobuf:"bytes,5,opt,name=Select,proto3" json:"Select,omitempty"`
|
|
|
+ Where []byte `protobuf:"bytes,6,opt,name=Where,proto3" json:"Where,omitempty"`
|
|
|
+ OrderBy string `protobuf:"bytes,7,opt,name=OrderBy,proto3" json:"OrderBy,omitempty"`
|
|
|
+ PageNo int32 `protobuf:"varint,8,opt,name=PageNo,proto3" json:"PageNo,omitempty"`
|
|
|
+ PageSize int32 `protobuf:"varint,9,opt,name=PageSize,proto3" json:"PageSize,omitempty"`
|
|
|
}
|
|
|
|
|
|
func (x *QueryByWhereAndOrderByRequest) Reset() {
|
|
|
@@ -111,11 +111,11 @@ func (x *QueryByWhereAndOrderByRequest) GetWhere() []byte {
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
-func (x *QueryByWhereAndOrderByRequest) GetOrderBy() []string {
|
|
|
+func (x *QueryByWhereAndOrderByRequest) GetOrderBy() string {
|
|
|
if x != nil {
|
|
|
return x.OrderBy
|
|
|
}
|
|
|
- return nil
|
|
|
+ return ""
|
|
|
}
|
|
|
|
|
|
func (x *QueryByWhereAndOrderByRequest) GetPageNo() int32 {
|
|
|
@@ -143,7 +143,7 @@ type CommonQueryRequest struct {
|
|
|
Table string `protobuf:"bytes,4,opt,name=Table,proto3" json:"Table,omitempty"`
|
|
|
Select []byte `protobuf:"bytes,5,opt,name=Select,proto3" json:"Select,omitempty"`
|
|
|
Where []byte `protobuf:"bytes,6,opt,name=Where,proto3" json:"Where,omitempty"`
|
|
|
- OrderBy []string `protobuf:"bytes,7,rep,name=OrderBy,proto3" json:"OrderBy,omitempty"`
|
|
|
+ OrderBy string `protobuf:"bytes,7,opt,name=OrderBy,proto3" json:"OrderBy,omitempty"`
|
|
|
Or []byte `protobuf:"bytes,8,opt,name=Or,proto3" json:"Or,omitempty"`
|
|
|
GroupBy []string `protobuf:"bytes,9,rep,name=GroupBy,proto3" json:"GroupBy,omitempty"`
|
|
|
Joins []byte `protobuf:"bytes,10,opt,name=Joins,proto3" json:"Joins,omitempty"`
|
|
|
@@ -226,11 +226,11 @@ func (x *CommonQueryRequest) GetWhere() []byte {
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
-func (x *CommonQueryRequest) GetOrderBy() []string {
|
|
|
+func (x *CommonQueryRequest) GetOrderBy() string {
|
|
|
if x != nil {
|
|
|
return x.OrderBy
|
|
|
}
|
|
|
- return nil
|
|
|
+ return ""
|
|
|
}
|
|
|
|
|
|
func (x *CommonQueryRequest) GetOr() []byte {
|
|
|
@@ -575,7 +575,7 @@ var file_v1_request_query_proto_rawDesc = []byte{
|
|
|
0x65, 0x63, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x53, 0x65, 0x6c, 0x65, 0x63,
|
|
|
0x74, 0x12, 0x14, 0x0a, 0x05, 0x57, 0x68, 0x65, 0x72, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c,
|
|
|
0x52, 0x05, 0x57, 0x68, 0x65, 0x72, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x4f, 0x72, 0x64, 0x65, 0x72,
|
|
|
- 0x42, 0x79, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x42,
|
|
|
+ 0x42, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x42,
|
|
|
0x79, 0x12, 0x16, 0x0a, 0x06, 0x50, 0x61, 0x67, 0x65, 0x4e, 0x6f, 0x18, 0x08, 0x20, 0x01, 0x28,
|
|
|
0x05, 0x52, 0x06, 0x50, 0x61, 0x67, 0x65, 0x4e, 0x6f, 0x12, 0x1a, 0x0a, 0x08, 0x50, 0x61, 0x67,
|
|
|
0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x50, 0x61, 0x67,
|
|
|
@@ -593,7 +593,7 @@ var file_v1_request_query_proto_rawDesc = []byte{
|
|
|
0x6c, 0x65, 0x63, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x53, 0x65, 0x6c, 0x65,
|
|
|
0x63, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x57, 0x68, 0x65, 0x72, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28,
|
|
|
0x0c, 0x52, 0x05, 0x57, 0x68, 0x65, 0x72, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x4f, 0x72, 0x64, 0x65,
|
|
|
- 0x72, 0x42, 0x79, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x4f, 0x72, 0x64, 0x65, 0x72,
|
|
|
+ 0x72, 0x42, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x4f, 0x72, 0x64, 0x65, 0x72,
|
|
|
0x42, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x4f, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02,
|
|
|
0x4f, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x79, 0x18, 0x09, 0x20,
|
|
|
0x03, 0x28, 0x09, 0x52, 0x07, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x79, 0x12, 0x14, 0x0a, 0x05,
|