Moving the domain models to a models package in expenses

This commit is contained in:
2025-08-07 18:02:28 +01:00
parent 86db133640
commit f0ca0051b6
15 changed files with 213 additions and 181 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
package pages
import (
mod "expenses/expenses/models"
"expenses/expenses"
"strconv"
"time"
@@ -138,7 +139,7 @@ func expenseFromForm(c *gin.Context) (*expenses.Expense, error) {
Type: expenses.Type{
TypeID: typID,
},
Category: expenses.Category{
Category: mod.Category{
CategoryID: catID,
},
Store: expenses.Store{