code refactor

This commit is contained in:
MaysWind
2024-10-07 23:54:50 +08:00
parent a6e765f51c
commit ae26f00a36
5 changed files with 413 additions and 383 deletions
@@ -29,8 +29,8 @@ func GetTransactionDataImporter(fileType string) (base.TransactionDataImporter,
return feidee.FeideeMymoneyTransactionDataCsvImporter, nil
} else if fileType == "feidee_mymoney_xls" {
return feidee.FeideeMymoneyTransactionDataXlsImporter, nil
} else if fileType == "alipay_csv" {
return alipay.AlipayTransactionDataCsvImporter, nil
} else if fileType == "alipay_web_csv" {
return alipay.AlipayWebTransactionDataCsvImporter, nil
} else {
return nil, errs.ErrImportFileTypeNotSupported
}