refactor: rename data repository

This commit is contained in:
Liangzhao Che 2023-06-01 18:07:58 +08:00
parent 94b2cf29a2
commit e0588bb842
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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)