소스 검색

添加table row接口

yjp 1 년 전
부모
커밋
d5708a7697
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  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