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