File tree Expand file tree Collapse file tree 6 files changed +12
-12
lines changed
Expand file tree Collapse file tree 6 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ func GetAccountTransactions(c *gin.Context) {
6262func CreateAccount (c * gin.Context ) {
6363 var data models.Account
6464
65- if status , err := bindData (c , data ); err != nil {
65+ if status , err := bindData (c , & data ); err != nil {
6666 c .JSON (status , gin.H {"error" : err .Error ()})
6767 return
6868 }
@@ -132,7 +132,7 @@ func UpdateAccount(c *gin.Context) {
132132 }
133133
134134 var data models.Account
135- if status , err := bindData (c , data ); err != nil {
135+ if status , err := bindData (c , & data ); err != nil {
136136 c .JSON (status , gin.H {"error" : err .Error ()})
137137 return
138138 }
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ func RegisterAllocationRoutes(r *gin.RouterGroup) {
3838func CreateAllocation (c * gin.Context ) {
3939 var data models.Allocation
4040
41- if status , err := bindData (c , data ); err != nil {
41+ if status , err := bindData (c , & data ); err != nil {
4242 c .JSON (status , gin.H {"error" : err .Error ()})
4343 return
4444 }
@@ -102,7 +102,7 @@ func UpdateAllocation(c *gin.Context) {
102102 }
103103
104104 var data models.Allocation
105- if status , err := bindData (c , data ); err != nil {
105+ if status , err := bindData (c , & data ); err != nil {
106106 c .JSON (status , gin.H {"error" : err .Error ()})
107107 return
108108 }
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ func RegisterBudgetRoutes(r *gin.RouterGroup) {
4141func CreateBudget (c * gin.Context ) {
4242 var data models.Budget
4343
44- if status , err := bindData (c , data ); err != nil {
44+ if status , err := bindData (c , & data ); err != nil {
4545 c .JSON (status , gin.H {"error" : err .Error ()})
4646 return
4747 }
@@ -95,7 +95,7 @@ func UpdateBudget(c *gin.Context) {
9595 }
9696
9797 var data models.Budget
98- if status , err := bindData (c , data ); err != nil {
98+ if status , err := bindData (c , & data ); err != nil {
9999 c .JSON (status , gin.H {"error" : err .Error ()})
100100 return
101101 }
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ func RegisterCategoryRoutes(r *gin.RouterGroup) {
3939func CreateCategory (c * gin.Context ) {
4040 var data models.Category
4141
42- if status , err := bindData (c , data ); err != nil {
42+ if status , err := bindData (c , & data ); err != nil {
4343 c .JSON (status , gin.H {"error" : err .Error ()})
4444 return
4545 }
@@ -93,7 +93,7 @@ func UpdateCategory(c *gin.Context) {
9393 }
9494
9595 var data models.Category
96- if status , err := bindData (c , data ); err != nil {
96+ if status , err := bindData (c , & data ); err != nil {
9797 c .JSON (status , gin.H {"error" : err .Error ()})
9898 return
9999 }
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ func RegisterEnvelopeRoutes(r *gin.RouterGroup) {
3939func CreateEnvelope (c * gin.Context ) {
4040 var data models.Envelope
4141
42- if status , err := bindData (c , data ); err != nil {
42+ if status , err := bindData (c , & data ); err != nil {
4343 c .JSON (status , gin.H {"error" : err .Error ()})
4444 return
4545 }
@@ -93,7 +93,7 @@ func UpdateEnvelope(c *gin.Context) {
9393 }
9494
9595 var data models.Envelope
96- if status , err := bindData (c , data ); err != nil {
96+ if status , err := bindData (c , & data ); err != nil {
9797 c .JSON (status , gin.H {"error" : err .Error ()})
9898 return
9999 }
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ func RegisterTransactionRoutes(r *gin.RouterGroup) {
3838func CreateTransaction (c * gin.Context ) {
3939 var data models.Transaction
4040
41- if status , err := bindData (c , data ); err != nil {
41+ if status , err := bindData (c , & data ); err != nil {
4242 c .JSON (status , gin.H {"error" : err .Error ()})
4343 return
4444 }
@@ -96,7 +96,7 @@ func UpdateTransaction(c *gin.Context) {
9696 }
9797
9898 var data models.Transaction
99- if status , err := bindData (c , data ); err != nil {
99+ if status , err := bindData (c , & data ); err != nil {
100100 c .JSON (status , gin.H {"error" : err .Error ()})
101101 return
102102 }
You can’t perform that action at this time.
0 commit comments