fixes on structuring

This commit is contained in:
Fran Jurmanović
2021-05-15 22:23:30 +02:00
parent e7a80796f7
commit cc98d0cf49
10 changed files with 125 additions and 60 deletions

View File

@@ -2,10 +2,6 @@ package common
import (
"log"
"time"
"wallet-api/pkg/models"
"github.com/google/uuid"
)
func CheckError(err error) {
@@ -13,13 +9,3 @@ func CheckError(err error) {
log.Fatalf("Error occured. %v", err)
}
}
func CreateDbModel() models.CommonModel {
date := time.Now()
dbModel := models.CommonModel{
Id: uuid.NewString(),
DateCreated: date,
DateUpdated: date,
}
return dbModel
}