Kaynağa Gözat

添加table row接口

yjp 1 yıl önce
ebeveyn
işleme
d5708a7697
1 değiştirilmiş dosya ile 5 ekleme ve 0 silme
  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