From b4cce25059eda0af319e4905d66e85b0a1b268bb Mon Sep 17 00:00:00 2001 From: Viktor Patchev Date: Wed, 22 Jan 2020 10:40:54 +0100 Subject: [PATCH] Resolved structure variable types --- BankAccount/pkg/entities/transactionhistory.go | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/BankAccount/pkg/entities/transactionhistory.go b/BankAccount/pkg/entities/transactionhistory.go index f59cf5f..0cfbca7 100644 --- a/BankAccount/pkg/entities/transactionhistory.go +++ b/BankAccount/pkg/entities/transactionhistory.go @@ -1,10 +1,14 @@ package entities +import ( + "time" +) + type TransactionHistory struct { - Id int `db: "id"` - UserId int `db: "user_id"` - AccountId int `db:"account_id"` - Amount float64 `db: "amount"` - Action string `db: "action"` - CreatedAt string `db: "created_at"` + Id int `db: "id"` + UserId int `db: "user_id"` + AccountId int `db:"account_id"` + Amount float64 `db: "amount"` + Action string `db: "action"` + CreatedAt time.Time `db: "created_at"` }