Преглед изворни кода

添加ports的request和response

yjp пре 1 година
родитељ
комит
d9e4993390
1 измењених фајлова са 2 додато и 17 уклоњено
  1. 2 17
      ports/client_query_response.go

+ 2 - 17
ports/client_query_response.go

@@ -2,32 +2,17 @@ package ports
 
 type QueryResponse struct {
 	Statement  string
-	Infos      []*InfoData
+	Infos      []map[string]any
 	TotalCount int64
 	PageNo     int32
 }
 
 type QueryByKeysResponse struct {
 	Statement string
-	Info      *InfoData
+	Info      map[string]any
 }
 
 type CountResponse struct {
 	Statement string
 	Count     int64
 }
-
-type InfoData struct {
-	Columns []*Column
-}
-
-type Column struct {
-	Name  string
-	Value *ColumnValue
-}
-
-type ColumnValue struct {
-	Kind  int32
-	Type  string
-	Value any
-}