runners and fixes
This commit is contained in:
@@ -2,9 +2,10 @@ package mdb
|
||||
|
||||
import (
|
||||
"context"
|
||||
"git.nix13.pw/scuroneko/laniakea"
|
||||
"kurumibot/database"
|
||||
"time"
|
||||
|
||||
"git.nix13.pw/scuroneko/laniakea"
|
||||
)
|
||||
|
||||
type ConsoleLogEntry struct {
|
||||
|
||||
@@ -8,7 +8,6 @@ import (
|
||||
"time"
|
||||
|
||||
"git.nix13.pw/scuroneko/laniakea"
|
||||
|
||||
"github.com/shopspring/decimal"
|
||||
"github.com/vinovest/sqlx"
|
||||
)
|
||||
@@ -151,8 +150,9 @@ func (rep *UserRepository) Update(user *User) (*User, error) {
|
||||
return rep.GetById(user.ID)
|
||||
}
|
||||
|
||||
func GetAllUsers() ([]*User, error) {
|
||||
func (rep *UserRepository) GetAll() ([]*User, error) {
|
||||
users := make([]*User, 0)
|
||||
|
||||
return users, nil
|
||||
}
|
||||
|
||||
|
||||
@@ -2,8 +2,8 @@ package psql
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"git.nix13.pw/scuroneko/laniakea"
|
||||
|
||||
"git.nix13.pw/scuroneko/laniakea"
|
||||
"github.com/shopspring/decimal"
|
||||
"github.com/vinovest/sqlx"
|
||||
)
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package psql
|
||||
|
||||
import (
|
||||
"git.nix13.pw/scuroneko/laniakea"
|
||||
"kurumibot/database"
|
||||
|
||||
"git.nix13.pw/scuroneko/laniakea"
|
||||
"github.com/shopspring/decimal"
|
||||
"github.com/vinovest/sqlx"
|
||||
)
|
||||
|
||||
@@ -3,8 +3,8 @@ package red
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"git.nix13.pw/scuroneko/laniakea"
|
||||
|
||||
"git.nix13.pw/scuroneko/laniakea"
|
||||
"github.com/google/uuid"
|
||||
"github.com/redis/go-redis/v9"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user