add transaction basic api

This commit is contained in:
MaysWind
2020-12-07 01:06:57 +08:00
parent 33814af667
commit 128d064df4
13 changed files with 1026 additions and 2 deletions
+8
View File
@@ -83,6 +83,14 @@ func updateAllDatabaseTablesStructure() error {
log.BootInfof("[database.updateAllDatabaseTablesStructure] account table maintained successfully")
}
err = datastore.Container.UserDataStore.SyncStructs(new(models.Transaction))
if err != nil {
return err
} else {
log.BootInfof("[database.updateAllDatabaseTablesStructure] transaction table maintained successfully")
}
err = datastore.Container.UserDataStore.SyncStructs(new(models.TransactionCategory))
if err != nil {