Selaa lähdekoodia

扩充处理的类型

yjp 1 vuosi sitten
vanhempi
commit
bcbd73b026
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  1. 4 0
      dpsv1/client.go

+ 4 - 0
dpsv1/client.go

@@ -807,6 +807,8 @@ func (c *Client) formTableRow(tableRow map[string]any) (*request.TableRow, error
 			typedValue.TypedValue = &request.ColumnValue_Uint32Value{Uint32Value: uint32(value.(int32))}
 		case "int64":
 			typedValue.TypedValue = &request.ColumnValue_Uint64Value{Uint64Value: uint64(value.(int64))}
+		case "uint":
+			typedValue.TypedValue = &request.ColumnValue_Uint64Value{Uint64Value: uint64(value.(uint))}
 		case "uint8":
 			typedValue.TypedValue = &request.ColumnValue_Uint32Value{Uint32Value: uint32(value.(uint8))}
 		case "uint16":
@@ -854,6 +856,8 @@ func (c *Client) infoDataToInfoMap(infoData *response.InfoData) (map[string]any,
 			retInfoMap[column.Name] = int(column.Value.GetUint32Value())
 		case "int64":
 			retInfoMap[column.Name] = int64(column.Value.GetUint64Value())
+		case "uint":
+			retInfoMap[column.Name] = int(column.Value.GetUint64Value())
 		case "uint8":
 			retInfoMap[column.Name] = int(column.Value.GetUint32Value())
 		case "uint16":