Changed account handle to user handler
This commit is contained in:
parent
3833353d18
commit
46d5f27409
@ -16,7 +16,7 @@ package database
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"git.supernets.org/perp/gopay/internal/config"
|
"git.supernets.org/perp/gopay/internal/config"
|
||||||
"git.supernets.org/perp/gopay/internal/database/account"
|
"git.supernets.org/perp/gopay/internal/database/user"
|
||||||
_ "github.com/mattn/go-sqlite3"
|
_ "github.com/mattn/go-sqlite3"
|
||||||
|
|
||||||
//_ "github.com/jackc/pgx/v5/stdlib"
|
//_ "github.com/jackc/pgx/v5/stdlib"
|
||||||
@ -26,7 +26,7 @@ import (
|
|||||||
|
|
||||||
// Database handler
|
// Database handler
|
||||||
type Database struct {
|
type Database struct {
|
||||||
Account *account.Account
|
User *user.User
|
||||||
}
|
}
|
||||||
|
|
||||||
// Return a new Database
|
// Return a new Database
|
||||||
@ -43,7 +43,7 @@ func New(cfg *config.Database) *Database {
|
|||||||
|
|
||||||
// Create database
|
// Create database
|
||||||
database := &Database{
|
database := &Database{
|
||||||
Account: account.New(engine),
|
User: user.New(engine),
|
||||||
}
|
}
|
||||||
|
|
||||||
return database
|
return database
|
||||||
|
Loading…
Reference in New Issue
Block a user