Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataConverter ¶
type DataConverter interface { // ToExportedContent returns the exported data ToExportedContent(uid int64, timezone *time.Location, transactions []*models.Transaction, accountMap map[int64]*models.Account, categoryMap map[int64]*models.TransactionCategory, tagMap map[int64]*models.TransactionTag, allTagIndexs map[int64][]int64) ([]byte, error) }
DataConverter defines the structure of data exporter
type EzBookKeepingCSVFileExporter ¶
type EzBookKeepingCSVFileExporter struct {
DataConverter
}
EzBookKeepingCSVFileExporter defines the structure of csv file exporter
func (*EzBookKeepingCSVFileExporter) ToExportedContent ¶
func (e *EzBookKeepingCSVFileExporter) ToExportedContent(uid int64, timezone *time.Location, transactions []*models.Transaction, accountMap map[int64]*models.Account, categoryMap map[int64]*models.TransactionCategory, tagMap map[int64]*models.TransactionTag, allTagIndexs map[int64][]int64) ([]byte, error)
ToExportedContent returns the exported csv data
Click to show internal directories.
Click to hide internal directories.