feat: add service and model
This commit is contained in:
@@ -15,4 +15,12 @@ type Database interface {
|
||||
UpdateUser(*model.User) error
|
||||
// end: user dao funcs
|
||||
|
||||
// start: cage games funcs
|
||||
GetAllGames() ([]*model.Game, error)
|
||||
GetGameById(string) (*model.Game, error)
|
||||
CreateGame(*model.Game) error
|
||||
DeleteGame(string) error
|
||||
UpdateGame(*model.Game) error
|
||||
// end: games dao funcs
|
||||
|
||||
}
|
||||
|
||||
1
storage/dao/fake/database_postgresql_cages.go
Executable file
1
storage/dao/fake/database_postgresql_cages.go
Executable file
@@ -0,0 +1 @@
|
||||
package fake
|
||||
1
storage/dao/fake/database_postgresql_games.go
Executable file
1
storage/dao/fake/database_postgresql_games.go
Executable file
@@ -0,0 +1 @@
|
||||
package fake
|
||||
1
storage/dao/fake/database_postgresql_hamsters.go
Executable file
1
storage/dao/fake/database_postgresql_hamsters.go
Executable file
@@ -0,0 +1 @@
|
||||
package fake
|
||||
1
storage/dao/postgresql/database_postgresql_cages.go
Executable file
1
storage/dao/postgresql/database_postgresql_cages.go
Executable file
@@ -0,0 +1 @@
|
||||
package postgresql
|
||||
1
storage/dao/postgresql/database_postgresql_games.go
Executable file
1
storage/dao/postgresql/database_postgresql_games.go
Executable file
@@ -0,0 +1 @@
|
||||
package postgresql
|
||||
1
storage/dao/postgresql/database_postgresql_hamsters.go
Executable file
1
storage/dao/postgresql/database_postgresql_hamsters.go
Executable file
@@ -0,0 +1 @@
|
||||
package postgresql
|
||||
Reference in New Issue
Block a user