code refactor

This commit is contained in:
MaysWind
2021-03-21 19:04:06 +08:00
parent 1decdd2222
commit 1acb36913a
3 changed files with 178 additions and 151 deletions
+9
View File
@@ -0,0 +1,9 @@
package exporters
import "github.com/mayswind/lab/pkg/models"
// DataExporter defines the structure of data exporter
type DataExporter interface {
// GetOutputContent returns the exported data
GetOutputContent(uid int64, transactions []*models.Transaction, accountMap map[int64]*models.Account, categoryMap map[int64]*models.TransactionCategory, tagMap map[int64]*models.TransactionTag, allTagIndexs map[int64][]int64) ([]byte, error)
}