Jelajahi Sumber

添加table row接口

yjp 1 tahun lalu
induk
melakukan
d5708a7697
1 mengubah file dengan 5 tambahan dan 0 penghapusan
  1. 5 0
      client/table_row.go

+ 5 - 0
client/table_row.go

@@ -17,6 +17,11 @@ func NewTableRow() *TableRow {
 	return &TableRow{row: make(map[string]any)}
 }
 
+func (tableRow *TableRow) AddColumnValue(columnName string, value any) *TableRow {
+	tableRow.row[columnName] = value
+	return tableRow
+}
+
 func (tableRow *TableRow) AddColumnValueTime(columnName string, value time.Time) *TableRow {
 	tableRow.row[columnName] = value
 	return tableRow