code refactor

This commit is contained in:
MaysWind
2024-09-11 01:40:42 +08:00
parent d915de8ff9
commit cd6e7c81e5
3 changed files with 22 additions and 2 deletions
+8
View File
@@ -1,5 +1,7 @@
package converters
import "time"
// ImportedDataTable defines the structure of imported data table
type ImportedDataTable interface {
// DataRowCount returns the total count of data row
@@ -19,6 +21,12 @@ type ImportedDataRow interface {
// GetData returns the data in the specified column index
GetData(columnIndex int) string
// GetTime returns the time in the specified column index
GetTime(columnIndex int, timezoneOffset int16) (time.Time, error)
// GetTimezoneOffset returns the time zone offset in the specified column index
GetTimezoneOffset(columnIndex int) (*time.Location, error)
}
// ImportedDataRowIterator defines the structure of imported data row iterator