Skip to content
This repository was archived by the owner on Jul 16, 2024. It is now read-only.

Commit e4f9d50

Browse files
authored
Merge pull request #33 from ahdark-services/refactor/database/repo
Use a unified method based on scope function to replace the conditional query method of all database repositories
2 parents a95f3b0 + 100e901 commit e4f9d50

31 files changed

+479
-894
lines changed

database/cmd/generate/main.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ func main() {
5050
&dao.PaymentType{},
5151
&dao.PaymentChannelPaymentGroupMany2Many{},
5252
&dao.PaymentGroup{},
53-
&dao.Setting{},
5453
&dao.Settlement{},
5554
&dao.UnifiedOrder{},
5655
&dao.UnifiedOrderAssociation{},

database/cmd/migrate/main.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ func databaseMigrate() error {
4040
&dao.PaymentType{},
4141
&dao.PaymentChannelPaymentGroupMany2Many{},
4242
&dao.PaymentGroup{},
43-
&dao.Setting{},
4443
&dao.Settlement{},
4544
&dao.UnifiedOrder{},
4645
&dao.UnifiedOrderAssociation{},

database/dal/.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
gen_test.db

database/dal/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
gen_test.db

database/dal/gen.go

Lines changed: 0 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)