diff --git a/internal/bill/repository.go b/internal/bill/repository.go index b6df9bc..d5f429d 100644 --- a/internal/bill/repository.go +++ b/internal/bill/repository.go @@ -5,52 +5,52 @@ import ( "gorm.io/gorm" ) -type databaseRepository struct { +type sqliteRepository struct { db *gorm.DB } func NewDatabaseRepository(db *gorm.DB) BillRepository { - return &databaseRepository{ + return &sqliteRepository{ db: db, } } -func (db *databaseRepository) GetBills(ctx context.Context) (*[]Bill, error) { +func (db *sqliteRepository) GetBills(ctx context.Context) (*[]Bill, error) { //TODO implement me panic("implement me") } -func (db *databaseRepository) GetBillByDay(ctx context.Context, year int, month int, day int) (*[]Bill, error) { +func (db *sqliteRepository) GetBillByDay(ctx context.Context, year int, month int, day int) (*[]Bill, error) { //TODO implement me panic("implement me") } -func (db *databaseRepository) GetBillByMonth(ctx context.Context, year int, month int) (*[]Bill, error) { +func (db *sqliteRepository) GetBillByMonth(ctx context.Context, year int, month int) (*[]Bill, error) { //TODO implement me panic("implement me") } -func (db *databaseRepository) GetBillByYear(ctx context.Context, year int) (*[]Bill, error) { +func (db *sqliteRepository) GetBillByYear(ctx context.Context, year int) (*[]Bill, error) { //TODO implement me panic("implement me") } -func (db *databaseRepository) GetBillByID(ctx context.Context, id int) (*Bill, error) { +func (db *sqliteRepository) GetBillByID(ctx context.Context, id int) (*Bill, error) { //TODO implement me panic("implement me") } -func (db *databaseRepository) CreateBill(ctx context.Context, bill *Bill) error { +func (db *sqliteRepository) CreateBill(ctx context.Context, bill *Bill) error { //TODO implement me panic("implement me") } -func (db *databaseRepository) UpdateBill(ctx context.Context, bill *Bill) error { +func (db *sqliteRepository) UpdateBill(ctx context.Context, bill *Bill) error { //TODO implement me panic("implement me") } -func (db *databaseRepository) DeleteBill(ctx context.Context, id int) error { +func (db *sqliteRepository) DeleteBill(ctx context.Context, id int) error { //TODO implement me panic("implement me") } diff --git a/internal/infrastructure/sqlit.go b/internal/infrastructure/sqlite.go similarity index 100% rename from internal/infrastructure/sqlit.go rename to internal/infrastructure/sqlite.go