refactor: rename data repository
This commit is contained in:
parent
94b2cf29a2
commit
e0588bb842
|
@ -9,7 +9,7 @@ type sqliteRepository struct {
|
||||||
db *gorm.DB
|
db *gorm.DB
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewDatabaseRepository(db *gorm.DB) BillRepository {
|
func NewBillRepository(db *gorm.DB) BillRepository {
|
||||||
return &sqliteRepository{
|
return &sqliteRepository{
|
||||||
db: db,
|
db: db,
|
||||||
}
|
}
|
||||||
|
|
|
@ -54,7 +54,7 @@ func Run() {
|
||||||
// Create repositories.
|
// Create repositories.
|
||||||
//cityRepository := city.NewCityRepository(mariadb)
|
//cityRepository := city.NewCityRepository(mariadb)
|
||||||
//userRepository := user.NewUserRepository(mariadb)
|
//userRepository := user.NewUserRepository(mariadb)
|
||||||
billRepository := bill.NewDatabaseRepository(sqlite)
|
billRepository := bill.NewBillRepository(sqlite)
|
||||||
|
|
||||||
// Create all of our services.
|
// Create all of our services.
|
||||||
//cityService := city.NewCityService(cityRepository)
|
//cityService := city.NewCityService(cityRepository)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user