forked from ebhomengo/niki
update : standard structure of repository layer
This commit is contained in:
parent
6459adaff2
commit
20b3b646ab
|
|
@ -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
|
||||
}
|
||||
|
||||
func New(connMy *mysql.DB, connPos *mysql.DB) Repository {
|
||||
return Repository{}
|
||||
func New(connMy *mysql.DB) Repository {
|
||||
return Repository{
|
||||
dbMysql: connMy,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue