feat: implement account service and db

This commit is contained in:
2025-04-21 20:58:08 +02:00
parent 434b44be28
commit af89aa8639
12 changed files with 365 additions and 464 deletions

View File

@@ -5,18 +5,12 @@ import (
"spend-sparrow/types"
"database/sql"
"errors"
"strings"
"time"
"github.com/google/uuid"
)
var (
ErrNotFound = errors.New("value not found")
ErrAlreadyExists = errors.New("row already exists")
)
type Auth interface {
InsertUser(user *types.User) error
UpdateUser(user *types.User) error