diff --git a/salesreportapp/repository/constructor.go b/salesreportapp/repository/constructor.go index 936c5f15..ac68461a 100644 --- a/salesreportapp/repository/constructor.go +++ b/salesreportapp/repository/constructor.go @@ -2,12 +2,13 @@ package salesreportrepository import "git.gocasts.ir/ebhomengo/niki/repository/mysql" -// abstract on db +// TODO :more abstraction on Repository Layer type Repository struct { - dbMysql *mysql.DB - dbPostgre *mysql.DB + dbMysql *mysql.DB } -func New(connMy *mysql.DB, connPos *mysql.DB) Repository { - return Repository{} +func New(connMy *mysql.DB) Repository { + return Repository{ + dbMysql: connMy, + } }