update : standard structure of repository layer

This commit is contained in:
mosayyebnezhad 2026-04-08 07:42:04 +03:30
parent 6459adaff2
commit 20b3b646ab
1 changed files with 6 additions and 5 deletions

View File

@ -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,
}
}